Code style updates.
This commit is contained in:
+1
-4
@@ -819,10 +819,7 @@ class Mustache {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function _getPartial($tag_name) {
|
protected function _getPartial($tag_name) {
|
||||||
if (
|
if ((is_array($this->_partials) || $this->_partials instanceof ArrayAccess) && isset($this->_partials[$tag_name])) {
|
||||||
(is_array($this->_partials) || $this->_partials instanceof ArrayAccess)
|
|
||||||
&& isset($this->_partials[$tag_name])
|
|
||||||
) {
|
|
||||||
return $this->_partials[$tag_name];
|
return $this->_partials[$tag_name];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,15 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A commandline script to create an example and the needed files
|
* A commandline script to create an example and the needed files:
|
||||||
* use like this:
|
*
|
||||||
* $ bin/create_example.php my_new_example
|
* $ bin/create_example.php my_new_example
|
||||||
*
|
*
|
||||||
* and the folder my_new_example will be created in the examples/ folder containing 3 files
|
* ... and the folder my_new_example will be created in the examples/ folder containing 3 files:
|
||||||
*
|
*
|
||||||
|
* my_new_example/my_new_example.mustache
|
||||||
|
* my_new_example/my_new_example.txt
|
||||||
|
* my_new_example/MyNewExample.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// some constants
|
// some constants
|
||||||
|
|||||||
Reference in New Issue
Block a user