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