Code style updates.

This commit is contained in:
Justin Hileman
2012-01-08 16:29:58 -08:00
parent e5f3a059ab
commit 236ba060ca
2 changed files with 54 additions and 54 deletions
+1 -4
View File
@@ -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];
} }
+6 -3
View File
@@ -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