浏览代码

Various style cleanups.

 * a bunch of small changes, courtesy of styleci
 * update dates in file headers
 * add file headers to files that are missing them
Justin Hileman 9 年之前
父节点
当前提交
01777faf6e
共有 100 个文件被更改,包括 477 次插入123 次删除
  1. 2 1
      src/Mustache/Autoloader.php
  2. 2 1
      src/Mustache/Cache.php
  3. 2 1
      src/Mustache/Cache/AbstractCache.php
  4. 4 3
      src/Mustache/Cache/FilesystemCache.php
  5. 2 1
      src/Mustache/Cache/NoopCache.php
  6. 4 3
      src/Mustache/Compiler.php
  7. 4 3
      src/Mustache/Context.php
  8. 4 3
      src/Mustache/Engine.php
  9. 2 1
      src/Mustache/Exception.php
  10. 2 1
      src/Mustache/Exception/InvalidArgumentException.php
  11. 2 1
      src/Mustache/Exception/LogicException.php
  12. 2 1
      src/Mustache/Exception/RuntimeException.php
  13. 2 1
      src/Mustache/Exception/SyntaxException.php
  14. 2 1
      src/Mustache/Exception/UnknownFilterException.php
  15. 2 1
      src/Mustache/Exception/UnknownHelperException.php
  16. 2 1
      src/Mustache/Exception/UnknownTemplateException.php
  17. 4 3
      src/Mustache/HelperCollection.php
  18. 6 5
      src/Mustache/LambdaHelper.php
  19. 3 2
      src/Mustache/Loader.php
  20. 3 2
      src/Mustache/Loader/ArrayLoader.php
  21. 3 2
      src/Mustache/Loader/CascadingLoader.php
  22. 5 4
      src/Mustache/Loader/FilesystemLoader.php
  23. 4 3
      src/Mustache/Loader/InlineLoader.php
  24. 2 1
      src/Mustache/Loader/MutableLoader.php
  25. 2 1
      src/Mustache/Loader/StringLoader.php
  26. 2 1
      src/Mustache/Logger.php
  27. 2 1
      src/Mustache/Logger/AbstractLogger.php
  28. 8 7
      src/Mustache/Logger/StreamLogger.php
  29. 7 6
      src/Mustache/Parser.php
  30. 2 1
      src/Mustache/Template.php
  31. 3 2
      src/Mustache/Tokenizer.php
  32. 2 1
      test/Mustache/Test/AutoloaderTest.php
  33. 2 1
      test/Mustache/Test/Cache/AbstractCacheTest.php
  34. 2 1
      test/Mustache/Test/Cache/FilesystemCacheTest.php
  35. 2 1
      test/Mustache/Test/CompilerTest.php
  36. 2 1
      test/Mustache/Test/ContextTest.php
  37. 2 1
      test/Mustache/Test/EngineTest.php
  38. 2 1
      test/Mustache/Test/Exception/SyntaxExceptionTest.php
  39. 2 1
      test/Mustache/Test/Exception/UnknownFilterExceptionTest.php
  40. 2 1
      test/Mustache/Test/Exception/UnknownHelperExceptionTest.php
  41. 2 1
      test/Mustache/Test/Exception/UnknownTemplateExceptionTest.php
  42. 5 2
      test/Mustache/Test/FiveThree/Functional/ClosureQuirksTest.php
  43. 2 1
      test/Mustache/Test/FiveThree/Functional/EngineTest.php
  44. 40 15
      test/Mustache/Test/FiveThree/Functional/FiltersTest.php
  45. 2 1
      test/Mustache/Test/FiveThree/Functional/HigherOrderSectionsTest.php
  46. 2 1
      test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php
  47. 2 1
      test/Mustache/Test/FiveThree/Functional/MustacheSpecTest.php
  48. 2 1
      test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php
  49. 8 3
      test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php
  50. 2 1
      test/Mustache/Test/Functional/CallTest.php
  51. 2 1
      test/Mustache/Test/Functional/ExamplesTest.php
  52. 2 1
      test/Mustache/Test/Functional/HigherOrderSectionsTest.php
  53. 9 0
      test/Mustache/Test/Functional/InheritanceTest.php
  54. 2 1
      test/Mustache/Test/Functional/MustacheInjectionTest.php
  55. 2 1
      test/Mustache/Test/Functional/MustacheSpecTest.php
  56. 2 1
      test/Mustache/Test/Functional/NestedPartialIndentTest.php
  57. 2 1
      test/Mustache/Test/Functional/ObjectSectionTest.php
  58. 2 1
      test/Mustache/Test/FunctionalTestCase.php
  59. 2 1
      test/Mustache/Test/HelperCollectionTest.php
  60. 2 1
      test/Mustache/Test/Loader/ArrayLoaderTest.php
  61. 2 1
      test/Mustache/Test/Loader/CascadingLoaderTest.php
  62. 2 1
      test/Mustache/Test/Loader/FilesystemLoaderTest.php
  63. 2 1
      test/Mustache/Test/Loader/StringLoaderTest.php
  64. 2 1
      test/Mustache/Test/Logger/AbstractLoggerTest.php
  65. 2 1
      test/Mustache/Test/Logger/StreamLoggerTest.php
  66. 2 1
      test/Mustache/Test/ParserTest.php
  67. 2 1
      test/Mustache/Test/SpecTestCase.php
  68. 2 1
      test/Mustache/Test/TemplateTest.php
  69. 2 1
      test/Mustache/Test/TokenizerTest.php
  70. 2 1
      test/bootstrap.php
  71. 2 1
      test/fixtures/autoloader/Mustache/Bar.php
  72. 2 1
      test/fixtures/autoloader/Mustache/Foo.php
  73. 2 1
      test/fixtures/autoloader/NonMustacheClass.php
  74. 9 0
      test/fixtures/examples/blocks/Blocks.php
  75. 9 0
      test/fixtures/examples/child_context/ChildContext.php
  76. 9 0
      test/fixtures/examples/comments/Comments.php
  77. 9 0
      test/fixtures/examples/complex/complex.php
  78. 9 0
      test/fixtures/examples/delimiters/Delimiters.php
  79. 9 0
      test/fixtures/examples/dot_notation/DotNotation.php
  80. 9 0
      test/fixtures/examples/double_section/DoubleSection.php
  81. 9 0
      test/fixtures/examples/escaped/Escaped.php
  82. 9 0
      test/fixtures/examples/filters/Filters.php
  83. 9 0
      test/fixtures/examples/grand_parent_context/GrandParentContext.php
  84. 9 0
      test/fixtures/examples/i18n/I18n.php
  85. 9 0
      test/fixtures/examples/implicit_iterator/ImplicitIterator.php
  86. 9 0
      test/fixtures/examples/inverted_double_section/InvertedDoubleSection.php
  87. 9 0
      test/fixtures/examples/inverted_section/InvertedSection.php
  88. 9 0
      test/fixtures/examples/nested_partials/NestedPartials.php
  89. 9 0
      test/fixtures/examples/partials/Partials.php
  90. 9 0
      test/fixtures/examples/recursive_partials/RecursivePartials.php
  91. 9 0
      test/fixtures/examples/section_iterator_objects/SectionIteratorObjects.php
  92. 9 0
      test/fixtures/examples/section_magic_objects/SectionMagicObjects.php
  93. 9 0
      test/fixtures/examples/section_objects/SectionObjects.php
  94. 9 0
      test/fixtures/examples/sections/Sections.php
  95. 9 0
      test/fixtures/examples/sections_nested/SectionsNested.php
  96. 9 0
      test/fixtures/examples/simple/Simple.php
  97. 9 0
      test/fixtures/examples/unescaped/Unescaped.php
  98. 9 0
      test/fixtures/examples/utf8/UTF8.php
  99. 9 0
      test/fixtures/examples/utf8_unescaped/UTF8Unescaped.php
  100. 9 0
      test/fixtures/examples/whitespace/Whitespace.php

+ 2 - 1
src/Mustache/Autoloader.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache class autoloader.
  */

+ 2 - 1
src/Mustache/Cache.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Cache interface.
  *

+ 2 - 1
src/Mustache/Cache/AbstractCache.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Abstract Mustache Cache class.
  *

+ 4 - 3
src/Mustache/Cache/FilesystemCache.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Cache filesystem implementation.
  *
@@ -27,8 +28,8 @@ class Mustache_Cache_FilesystemCache extends Mustache_Cache_AbstractCache
     /**
      * Filesystem cache constructor.
      *
-     * @param string $baseDir  Directory for compiled templates.
-     * @param int    $fileMode Override default permissions for cache files. Defaults to using the system-defined umask.
+     * @param string $baseDir  Directory for compiled templates
+     * @param int    $fileMode Override default permissions for cache files. Defaults to using the system-defined umask
      */
     public function __construct($baseDir, $fileMode = null)
     {

+ 2 - 1
src/Mustache/Cache/NoopCache.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Cache in-memory implementation.
  *

+ 4 - 3
src/Mustache/Compiler.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Compiler class.
  *
@@ -75,7 +76,7 @@ class Mustache_Compiler
     /**
      * Helper function for walking the Mustache token parse tree.
      *
-     * @throws Mustache_Exception_SyntaxException upon encountering unknown token types.
+     * @throws Mustache_Exception_SyntaxException upon encountering unknown token types
      *
      * @param array $tree  Parse tree of Mustache tokens
      * @param int   $level (default: 0)
@@ -493,7 +494,7 @@ class Mustache_Compiler
      *
      * @param array $node
      *
-     * @return bool True if $node is a block arg token.
+     * @return bool True if $node is a block arg token
      */
     private static function onlyBlockArgs(array $node)
     {

+ 4 - 3
src/Mustache/Context.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Template rendering Context.
  */
@@ -150,7 +151,7 @@ class Mustache_Context
      *
      * @see Mustache_Context::findDot
      *
-     * @throws Mustache_Exception_InvalidArgumentException if given an invalid anchored dot $id.
+     * @throws Mustache_Exception_InvalidArgumentException if given an invalid anchored dot $id
      *
      * @param string $id Dotted variable selector
      *
@@ -182,7 +183,7 @@ class Mustache_Context
      *
      * @param string $id
      *
-     * @return mixed Variable value, or '' if not found.
+     * @return mixed Variable value, or '' if not found
      */
     public function findInBlock($id)
     {

+ 4 - 3
src/Mustache/Engine.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * A Mustache implementation in PHP.
  *
@@ -126,7 +127,7 @@ class Mustache_Engine
      *         'pragmas' => [Mustache_Engine::PRAGMA_FILTERS],
      *     );
      *
-     * @throws Mustache_Exception_InvalidArgumentException If `escape` option is not callable.
+     * @throws Mustache_Exception_InvalidArgumentException If `escape` option is not callable
      *
      * @param array $options (default: array())
      */
@@ -429,7 +430,7 @@ class Mustache_Engine
     /**
      * Set the Mustache Logger instance.
      *
-     * @throws Mustache_Exception_InvalidArgumentException If logger is not an instance of Mustache_Logger or Psr\Log\LoggerInterface.
+     * @throws Mustache_Exception_InvalidArgumentException If logger is not an instance of Mustache_Logger or Psr\Log\LoggerInterface
      *
      * @param Mustache_Logger|Psr\Log\LoggerInterface $logger
      */

+ 2 - 1
src/Mustache/Exception.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * A Mustache Exception interface.
  */

+ 2 - 1
src/Mustache/Exception/InvalidArgumentException.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Invalid argument exception.
  */

+ 2 - 1
src/Mustache/Exception/LogicException.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Logic exception.
  */

+ 2 - 1
src/Mustache/Exception/RuntimeException.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Runtime exception.
  */

+ 2 - 1
src/Mustache/Exception/SyntaxException.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache syntax exception.
  */

+ 2 - 1
src/Mustache/Exception/UnknownFilterException.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Unknown filter exception.
  */

+ 2 - 1
src/Mustache/Exception/UnknownHelperException.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Unknown helper exception.
  */

+ 2 - 1
src/Mustache/Exception/UnknownTemplateException.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Unknown template exception.
  */

+ 4 - 3
src/Mustache/HelperCollection.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * A collection of helpers for a Mustache instance.
  */
@@ -81,7 +82,7 @@ class Mustache_HelperCollection
     /**
      * Get a helper by name.
      *
-     * @throws Mustache_Exception_UnknownHelperException If helper does not exist.
+     * @throws Mustache_Exception_UnknownHelperException If helper does not exist
      *
      * @param string $name
      *
@@ -137,7 +138,7 @@ class Mustache_HelperCollection
     /**
      * Check whether a given helper is present in the collection.
      *
-     * @throws Mustache_Exception_UnknownHelperException if the requested helper is not present.
+     * @throws Mustache_Exception_UnknownHelperException if the requested helper is not present
      *
      * @param string $name
      */

+ 6 - 5
src/Mustache/LambdaHelper.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Lambda Helper.
  *
@@ -25,8 +26,8 @@ class Mustache_LambdaHelper
     /**
      * Mustache Lambda Helper constructor.
      *
-     * @param Mustache_Engine  $mustache Mustache engine instance.
-     * @param Mustache_Context $context  Rendering context.
+     * @param Mustache_Engine  $mustache Mustache engine instance
+     * @param Mustache_Context $context  Rendering context
      * @param string           $delims   Optional custom delimiters, in the format `{{= <% %> =}}`. (default: null)
      */
     public function __construct(Mustache_Engine $mustache, Mustache_Context $context, $delims = null)
@@ -41,7 +42,7 @@ class Mustache_LambdaHelper
      *
      * @param string $string
      *
-     * @return string Rendered template.
+     * @return string Rendered template
      */
     public function render($string)
     {
@@ -65,7 +66,7 @@ class Mustache_LambdaHelper
     /**
      * Get a Lambda Helper with custom delimiters.
      *
-     * @param string $delims Custom delimiters, in the format `{{= <% %> =}}`.
+     * @param string $delims Custom delimiters, in the format `{{= <% %> =}}`
      *
      * @return Mustache_LambdaHelper
      */

+ 3 - 2
src/Mustache/Loader.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Template Loader interface.
  */
@@ -17,7 +18,7 @@ interface Mustache_Loader
     /**
      * Load a Template by name.
      *
-     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found.
+     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found
      *
      * @param string $name
      *

+ 3 - 2
src/Mustache/Loader/ArrayLoader.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Template array Loader implementation.
  *
@@ -41,7 +42,7 @@ class Mustache_Loader_ArrayLoader implements Mustache_Loader, Mustache_Loader_Mu
     /**
      * Load a Template.
      *
-     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found.
+     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found
      *
      * @param string $name
      *

+ 3 - 2
src/Mustache/Loader/CascadingLoader.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * A Mustache Template cascading loader implementation, which delegates to other
  * Loader instances.
@@ -48,7 +49,7 @@ class Mustache_Loader_CascadingLoader implements Mustache_Loader
     /**
      * Load a Template by name.
      *
-     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found.
+     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found
      *
      * @param string $name
      *

+ 5 - 4
src/Mustache/Loader/FilesystemLoader.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Template filesystem Loader implementation.
  *
@@ -40,9 +41,9 @@ class Mustache_Loader_FilesystemLoader implements Mustache_Loader
      *         'extension' => '.ms',
      *     );
      *
-     * @throws Mustache_Exception_RuntimeException if $baseDir does not exist.
+     * @throws Mustache_Exception_RuntimeException if $baseDir does not exist
      *
-     * @param string $baseDir Base directory containing Mustache template files.
+     * @param string $baseDir Base directory containing Mustache template files
      * @param array  $options Array of Loader options (default: array())
      */
     public function __construct($baseDir, array $options = array())
@@ -88,7 +89,7 @@ class Mustache_Loader_FilesystemLoader implements Mustache_Loader
     /**
      * Helper function for loading a Mustache file by name.
      *
-     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found.
+     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found
      *
      * @param string $name
      *

+ 4 - 3
src/Mustache/Loader/InlineLoader.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * A Mustache Template loader for inline templates.
  *
@@ -68,7 +69,7 @@ class Mustache_Loader_InlineLoader implements Mustache_Loader
      * @param string $fileName The file to parse for inline templates
      * @param int    $offset   A string offset for the start of the templates.
      *                         This usually coincides with the `__halt_compiler`
-     *                         call, and the `__COMPILER_HALT_OFFSET__`.
+     *                         call, and the `__COMPILER_HALT_OFFSET__`
      */
     public function __construct($fileName, $offset)
     {
@@ -87,7 +88,7 @@ class Mustache_Loader_InlineLoader implements Mustache_Loader
     /**
      * Load a Template by name.
      *
-     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found.
+     * @throws Mustache_Exception_UnknownTemplateException If a template file is not found
      *
      * @param string $name
      *

+ 2 - 1
src/Mustache/Loader/MutableLoader.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Template mutable Loader interface.
  */

+ 2 - 1
src/Mustache/Loader/StringLoader.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Template string Loader implementation.
  *

+ 2 - 1
src/Mustache/Logger.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Describes a Mustache logger instance.
  *

+ 2 - 1
src/Mustache/Logger/AbstractLogger.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * This is a simple Logger implementation that other Loggers can inherit from.
  *

+ 8 - 7
src/Mustache/Logger/StreamLogger.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * A Mustache Stream Logger.
  *
@@ -36,7 +37,7 @@ class Mustache_Logger_StreamLogger extends Mustache_Logger_AbstractLogger
     protected $url    = null;
 
     /**
-     * @throws InvalidArgumentException if the logging level is unknown.
+     * @throws InvalidArgumentException if the logging level is unknown
      *
      * @param resource|string $stream Resource instance or URL
      * @param int             $level  The minimum logging level at which this handler will be triggered
@@ -65,7 +66,7 @@ class Mustache_Logger_StreamLogger extends Mustache_Logger_AbstractLogger
     /**
      * Set the minimum logging level.
      *
-     * @throws Mustache_Exception_InvalidArgumentException if the logging level is unknown.
+     * @throws Mustache_Exception_InvalidArgumentException if the logging level is unknown
      *
      * @param int $level The minimum logging level which will be written
      */
@@ -91,7 +92,7 @@ class Mustache_Logger_StreamLogger extends Mustache_Logger_AbstractLogger
     /**
      * Logs with an arbitrary level.
      *
-     * @throws Mustache_Exception_InvalidArgumentException if the logging level is unknown.
+     * @throws Mustache_Exception_InvalidArgumentException if the logging level is unknown
      *
      * @param mixed  $level
      * @param string $message
@@ -111,8 +112,8 @@ class Mustache_Logger_StreamLogger extends Mustache_Logger_AbstractLogger
     /**
      * Write a record to the log.
      *
-     * @throws Mustache_Exception_LogicException   If neither a stream resource nor url is present.
-     * @throws Mustache_Exception_RuntimeException If the stream url cannot be opened.
+     * @throws Mustache_Exception_LogicException   If neither a stream resource nor url is present
+     * @throws Mustache_Exception_RuntimeException If the stream url cannot be opened
      *
      * @param int    $level   The logging level
      * @param string $message The log message
@@ -139,7 +140,7 @@ class Mustache_Logger_StreamLogger extends Mustache_Logger_AbstractLogger
     /**
      * Gets the name of the logging level.
      *
-     * @throws InvalidArgumentException if the logging level is unknown.
+     * @throws InvalidArgumentException if the logging level is unknown
      *
      * @param int $level
      *

+ 7 - 6
src/Mustache/Parser.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Parser class.
  *
@@ -63,7 +64,7 @@ class Mustache_Parser
     /**
      * Helper method for recursively building a parse tree.
      *
-     * @throws Mustache_Exception_SyntaxException when nesting errors or mismatched section tags are encountered.
+     * @throws Mustache_Exception_SyntaxException when nesting errors or mismatched section tags are encountered
      *
      * @param array &$tokens Set of Mustache tokens
      * @param array $parent  Parent token (default: null)
@@ -195,10 +196,10 @@ class Mustache_Parser
      *
      * Returns a whitespace token for indenting partials, if applicable.
      *
-     * @param array $nodes  Parsed nodes.
-     * @param array $tokens Tokens to be parsed.
+     * @param array $nodes  Parsed nodes
+     * @param array $tokens Tokens to be parsed
      *
-     * @return array|null Resulting indent token, if any.
+     * @return array|null Resulting indent token, if any
      */
     private function clearStandaloneLines(array &$nodes, array &$tokens)
     {
@@ -268,7 +269,7 @@ class Mustache_Parser
     /**
      * Check whether a token is allowed inside a parent tag.
      *
-     * @throws Mustache_Exception_SyntaxException if an invalid token is found inside a parent tag.
+     * @throws Mustache_Exception_SyntaxException if an invalid token is found inside a parent tag
      *
      * @param array|null $parent
      * @param array      $token

+ 2 - 1
src/Mustache/Template.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Abstract Mustache Template class.
  *

+ 3 - 2
src/Mustache/Tokenizer.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * Mustache Tokenizer class.
  *
@@ -80,7 +81,7 @@ class Mustache_Tokenizer
     /**
      * Scan and tokenize template source.
      *
-     * @throws Mustache_Exception_SyntaxException when mismatched section tags are encountered.
+     * @throws Mustache_Exception_SyntaxException when mismatched section tags are encountered
      *
      * @param string $text       Mustache template source to tokenize
      * @param string $delimiters Optionally, pass initial opening and closing delimiters (default: null)

+ 2 - 1
test/Mustache/Test/AutoloaderTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/Cache/AbstractCacheTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 class Mustache_Test_Cache_AbstractCacheTest extends PHPUnit_Framework_TestCase
 {
     public function testGetSetLogger()

+ 2 - 1
test/Mustache/Test/Cache/FilesystemCacheTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group functional
  */

+ 2 - 1
test/Mustache/Test/CompilerTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/ContextTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/EngineTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/Exception/SyntaxExceptionTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 class Mustache_Test_Exception_SyntaxExceptionTest extends PHPUnit_Framework_TestCase
 {
     public function testInstance()

+ 2 - 1
test/Mustache/Test/Exception/UnknownFilterExceptionTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 class Mustache_Test_Exception_UnknownFilterExceptionTest extends PHPUnit_Framework_TestCase
 {
     public function testInstance()

+ 2 - 1
test/Mustache/Test/Exception/UnknownHelperExceptionTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 class Mustache_Test_Exception_UnknownHelperExceptionTest extends PHPUnit_Framework_TestCase
 {
     public function testInstance()

+ 2 - 1
test/Mustache/Test/Exception/UnknownTemplateExceptionTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 class Mustache_Test_Exception_UnknownTemplateExceptionTest extends PHPUnit_Framework_TestCase
 {
     public function testInstance()

+ 5 - 2
test/Mustache/Test/FiveThree/Functional/ClosureQuirksTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group lambdas
  * @group functional
@@ -25,6 +26,8 @@ class Mustache_Test_FiveThree_Functional_ClosureQuirksTest extends PHPUnit_Frame
     public function testClosuresDontLikeItWhenYouTouchTheirProperties()
     {
         $tpl = $this->mustache->loadTemplate('{{ foo.bar }}');
-        $this->assertEquals('', $tpl->render(array('foo' => function () { return 'FOO'; })));
+        $this->assertEquals('', $tpl->render(array('foo' => function () {
+            return 'FOO';
+        })));
     }
 }

+ 2 - 1
test/Mustache/Test/FiveThree/Functional/EngineTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group pragmas
  * @group functional

+ 40 - 15
test/Mustache/Test/FiveThree/Functional/FiltersTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group filters
  * @group functional
@@ -35,11 +36,11 @@ class Mustache_Test_FiveThree_Functional_FiltersTest extends PHPUnit_Framework_T
     {
         $helpers = array(
             'longdate' => function (\DateTime $value) {
-                    return $value->format('Y-m-d h:m:s');
-                },
+                return $value->format('Y-m-d h:m:s');
+            },
             'echo' => function ($value) {
-                    return array($value, $value, $value);
-                },
+                return array($value, $value, $value);
+            },
         );
 
         return array(
@@ -143,21 +144,45 @@ EOS;
             array('{{% FILTERS }}{{ foo | bar }}',       array('foo' => 'FOO')),
             array('{{% FILTERS }}{{ foo | bar }}',       array('foo' => 'FOO', 'bar' => 'BAR')),
             array('{{% FILTERS }}{{ foo | bar }}',       array('foo' => 'FOO', 'bar' => array(1, 2))),
-            array('{{% FILTERS }}{{ foo | bar | baz }}', array('foo' => 'FOO', 'bar' => function () { return 'BAR'; })),
-            array('{{% FILTERS }}{{ foo | bar | baz }}', array('foo' => 'FOO', 'baz' => function () { return 'BAZ'; })),
-            array('{{% FILTERS }}{{ foo | bar | baz }}', array('bar' => function () { return 'BAR'; })),
-            array('{{% FILTERS }}{{ foo | bar | baz }}', array('baz' => function () { return 'BAZ'; })),
-            array('{{% FILTERS }}{{ foo | bar.baz }}',   array('foo' => 'FOO', 'bar' => function () { return 'BAR'; }, 'baz' => function () { return 'BAZ'; })),
+            array('{{% FILTERS }}{{ foo | bar | baz }}', array('foo' => 'FOO', 'bar' => function () {
+                return 'BAR';
+            })),
+            array('{{% FILTERS }}{{ foo | bar | baz }}', array('foo' => 'FOO', 'baz' => function () {
+                return 'BAZ';
+            })),
+            array('{{% FILTERS }}{{ foo | bar | baz }}', array('bar' => function () {
+                return 'BAR';
+            })),
+            array('{{% FILTERS }}{{ foo | bar | baz }}', array('baz' => function () {
+                return 'BAZ';
+            })),
+            array('{{% FILTERS }}{{ foo | bar.baz }}',   array('foo' => 'FOO', 'bar' => function () {
+                return 'BAR';
+            }, 'baz' => function () {
+                return 'BAZ';
+            })),
 
             array('{{% FILTERS }}{{# foo | bar }}{{ . }}{{/ foo | bar }}',             array()),
             array('{{% FILTERS }}{{# foo | bar }}{{ . }}{{/ foo | bar }}',             array('foo' => 'FOO')),
             array('{{% FILTERS }}{{# foo | bar }}{{ . }}{{/ foo | bar }}',             array('foo' => 'FOO', 'bar' => 'BAR')),
             array('{{% FILTERS }}{{# foo | bar }}{{ . }}{{/ foo | bar }}',             array('foo' => 'FOO', 'bar' => array(1, 2))),
-            array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('foo' => 'FOO', 'bar' => function () { return 'BAR'; })),
-            array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('foo' => 'FOO', 'baz' => function () { return 'BAZ'; })),
-            array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('bar' => function () { return 'BAR'; })),
-            array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('baz' => function () { return 'BAZ'; })),
-            array('{{% FILTERS }}{{# foo | bar.baz }}{{ . }}{{/ foo | bar.baz }}',     array('foo' => 'FOO', 'bar' => function () { return 'BAR'; }, 'baz' => function () { return 'BAZ'; })),
+            array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('foo' => 'FOO', 'bar' => function () {
+                return 'BAR';
+            })),
+            array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('foo' => 'FOO', 'baz' => function () {
+                return 'BAZ';
+            })),
+            array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('bar' => function () {
+                return 'BAR';
+            })),
+            array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('baz' => function () {
+                return 'BAZ';
+            })),
+            array('{{% FILTERS }}{{# foo | bar.baz }}{{ . }}{{/ foo | bar.baz }}',     array('foo' => 'FOO', 'bar' => function () {
+                return 'BAR';
+            }, 'baz' => function () {
+                return 'BAZ';
+            })),
         );
     }
 }

+ 2 - 1
test/Mustache/Test/FiveThree/Functional/HigherOrderSectionsTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group lambdas
  * @group functional

+ 2 - 1
test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group lambdas
  * @group functional

+ 2 - 1
test/Mustache/Test/FiveThree/Functional/MustacheSpecTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * A PHPUnit test case wrapping the Mustache Spec.
  *

+ 2 - 1
test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group lambdas
  * @group functional

+ 8 - 3
test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group lambdas
  * @group functional
@@ -52,7 +53,9 @@ class Mustache_Test_FiveThree_Functional_StrictCallablesTest extends PHPUnit_Fra
             ),
             array(
                 false,
-                function () { return 'Yoshi'; },
+                function () {
+                    return 'Yoshi';
+                },
                 $lambda,
                 'YOSHI',
             ),
@@ -80,7 +83,9 @@ class Mustache_Test_FiveThree_Functional_StrictCallablesTest extends PHPUnit_Fra
             // Strict interpolation lambdas
             array(
                 true,
-                function () { return 'Yoshi'; },
+                function () {
+                    return 'Yoshi';
+                },
                 $lambda,
                 'YOSHI',
             ),

+ 2 - 1
test/Mustache/Test/Functional/CallTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group magic_methods
  * @group functional

+ 2 - 1
test/Mustache/Test/Functional/ExamplesTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group examples
  * @group functional

+ 2 - 1
test/Mustache/Test/Functional/HigherOrderSectionsTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group lambdas
  * @group functional

+ 9 - 0
test/Mustache/Test/Functional/InheritanceTest.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 /**
  * @group inheritance
  * @group functional

+ 2 - 1
test/Mustache/Test/Functional/MustacheInjectionTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group mustache_injection
  * @group functional

+ 2 - 1
test/Mustache/Test/Functional/MustacheSpecTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * A PHPUnit test case wrapping the Mustache Spec.
  *

+ 2 - 1
test/Mustache/Test/Functional/NestedPartialIndentTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group functional
  * @group partials

+ 2 - 1
test/Mustache/Test/Functional/ObjectSectionTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group sections
  * @group functional

+ 2 - 1
test/Mustache/Test/FunctionalTestCase.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 abstract class Mustache_Test_FunctionalTestCase extends PHPUnit_Framework_TestCase
 {
     protected static $tempDir;

+ 2 - 1
test/Mustache/Test/HelperCollectionTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 class Mustache_Test_HelperCollectionTest extends PHPUnit_Framework_TestCase
 {
     public function testConstructor()

+ 2 - 1
test/Mustache/Test/Loader/ArrayLoaderTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/Loader/CascadingLoaderTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/Loader/FilesystemLoaderTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/Loader/StringLoaderTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/Logger/AbstractLoggerTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/Logger/StreamLoggerTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/ParserTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/SpecTestCase.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 abstract class Mustache_Test_SpecTestCase extends PHPUnit_Framework_TestCase
 {
     protected static $mustache;

+ 2 - 1
test/Mustache/Test/TemplateTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/Mustache/Test/TokenizerTest.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 /**
  * @group unit
  */

+ 2 - 1
test/bootstrap.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 require dirname(__FILE__) . '/../src/Mustache/Autoloader.php';
 Mustache_Autoloader::register();
 Mustache_Autoloader::register(dirname(__FILE__) . '/../test');

+ 2 - 1
test/fixtures/autoloader/Mustache/Bar.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 class Mustache_Bar
 {
     // nada

+ 2 - 1
test/fixtures/autoloader/Mustache/Foo.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 class Mustache_Foo
 {
     // nada

+ 2 - 1
test/fixtures/autoloader/NonMustacheClass.php

@@ -3,12 +3,13 @@
 /*
  * This file is part of Mustache.php.
  *
- * (c) 2010-2015 Justin Hileman
+ * (c) 2010-2016 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+
 class NonMustacheClass
 {
     // noop

+ 9 - 0
test/fixtures/examples/blocks/Blocks.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Blocks
 {
     public $items = array(1, 2, 3);

+ 9 - 0
test/fixtures/examples/child_context/ChildContext.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class ChildContext
 {
     public $parent = array(

+ 9 - 0
test/fixtures/examples/comments/Comments.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Comments
 {
     public function title()

+ 9 - 0
test/fixtures/examples/complex/complex.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Complex
 {
     public $header = 'Colors';

+ 9 - 0
test/fixtures/examples/delimiters/Delimiters.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Delimiters
 {
     public $start = 'It worked the first time.';

+ 9 - 0
test/fixtures/examples/dot_notation/DotNotation.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class DotNotation
 {
     public $person = array(

+ 9 - 0
test/fixtures/examples/double_section/DoubleSection.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class DoubleSection
 {
     public function t()

+ 9 - 0
test/fixtures/examples/escaped/Escaped.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Escaped
 {
     public $title = '"Bear" > "Shark"';

+ 9 - 0
test/fixtures/examples/filters/Filters.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Filters
 {
     public $states = array(

+ 9 - 0
test/fixtures/examples/grand_parent_context/GrandParentContext.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class GrandParentContext
 {
     public $grand_parent_id = 'grand_parent1';

+ 9 - 0
test/fixtures/examples/i18n/I18n.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class I18n
 {
     // Variable to be interpolated

+ 9 - 0
test/fixtures/examples/implicit_iterator/ImplicitIterator.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class ImplicitIterator
 {
     public $data = array('Donkey Kong', 'Luigi', 'Mario', 'Peach', 'Yoshi');

+ 9 - 0
test/fixtures/examples/inverted_double_section/InvertedDoubleSection.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class InvertedDoubleSection
 {
     public $t = false;

+ 9 - 0
test/fixtures/examples/inverted_section/InvertedSection.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class InvertedSection
 {
     public $repo = array();

+ 9 - 0
test/fixtures/examples/nested_partials/NestedPartials.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class NestedPartials
 {
     public $val = 'FOURTH!';

+ 9 - 0
test/fixtures/examples/partials/Partials.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Partials
 {
     public $page = array(

+ 9 - 0
test/fixtures/examples/recursive_partials/RecursivePartials.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class RecursivePartials
 {
     public $name  = 'George';

+ 9 - 0
test/fixtures/examples/section_iterator_objects/SectionIteratorObjects.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class SectionIteratorObjects
 {
     public $start = 'It worked the first time.';

+ 9 - 0
test/fixtures/examples/section_magic_objects/SectionMagicObjects.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class SectionMagicObjects
 {
     public $start = 'It worked the first time.';

+ 9 - 0
test/fixtures/examples/section_objects/SectionObjects.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class SectionObjects
 {
     public $start = 'It worked the first time.';

+ 9 - 0
test/fixtures/examples/sections/Sections.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Sections
 {
     public $start = 'It worked the first time.';

+ 9 - 0
test/fixtures/examples/sections_nested/SectionsNested.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class SectionsNested
 {
     public $name = 'Little Mac';

+ 9 - 0
test/fixtures/examples/simple/Simple.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Simple
 {
     public $name = 'Chris';

+ 9 - 0
test/fixtures/examples/unescaped/Unescaped.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class Unescaped
 {
     public $title = 'Bear > Shark';

+ 9 - 0
test/fixtures/examples/utf8/UTF8.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class UTF8
 {
     public $test = '中文又来啦';

+ 9 - 0
test/fixtures/examples/utf8_unescaped/UTF8Unescaped.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 class UTF8Unescaped
 {
     public $test = '中文又来啦';

+ 9 - 0
test/fixtures/examples/whitespace/Whitespace.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2010-2016 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 /**
  * Whitespace test for tag names.
  *