From 01777faf6eb7de8c9bf0aa47a44bbdcb267e4c45 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sat, 30 Jul 2016 17:57:19 -0700 Subject: [PATCH] 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 --- src/Mustache/Autoloader.php | 3 +- src/Mustache/Cache.php | 3 +- src/Mustache/Cache/AbstractCache.php | 3 +- src/Mustache/Cache/FilesystemCache.php | 7 ++- src/Mustache/Cache/NoopCache.php | 3 +- src/Mustache/Compiler.php | 7 ++- src/Mustache/Context.php | 7 ++- src/Mustache/Engine.php | 7 ++- src/Mustache/Exception.php | 3 +- .../Exception/InvalidArgumentException.php | 3 +- src/Mustache/Exception/LogicException.php | 3 +- src/Mustache/Exception/RuntimeException.php | 3 +- src/Mustache/Exception/SyntaxException.php | 3 +- .../Exception/UnknownFilterException.php | 3 +- .../Exception/UnknownHelperException.php | 3 +- .../Exception/UnknownTemplateException.php | 3 +- src/Mustache/HelperCollection.php | 7 ++- src/Mustache/LambdaHelper.php | 11 ++-- src/Mustache/Loader.php | 5 +- src/Mustache/Loader/ArrayLoader.php | 5 +- src/Mustache/Loader/CascadingLoader.php | 5 +- src/Mustache/Loader/FilesystemLoader.php | 9 +-- src/Mustache/Loader/InlineLoader.php | 7 ++- src/Mustache/Loader/MutableLoader.php | 3 +- src/Mustache/Loader/StringLoader.php | 3 +- src/Mustache/Logger.php | 3 +- src/Mustache/Logger/AbstractLogger.php | 3 +- src/Mustache/Logger/StreamLogger.php | 15 ++--- src/Mustache/Parser.php | 13 +++-- src/Mustache/Template.php | 3 +- src/Mustache/Tokenizer.php | 5 +- test/Mustache/Test/AutoloaderTest.php | 3 +- .../Mustache/Test/Cache/AbstractCacheTest.php | 3 +- .../Test/Cache/FilesystemCacheTest.php | 3 +- test/Mustache/Test/CompilerTest.php | 3 +- test/Mustache/Test/ContextTest.php | 3 +- test/Mustache/Test/EngineTest.php | 3 +- .../Test/Exception/SyntaxExceptionTest.php | 3 +- .../Exception/UnknownFilterExceptionTest.php | 3 +- .../Exception/UnknownHelperExceptionTest.php | 3 +- .../UnknownTemplateExceptionTest.php | 3 +- .../Functional/ClosureQuirksTest.php | 7 ++- .../Test/FiveThree/Functional/EngineTest.php | 3 +- .../Test/FiveThree/Functional/FiltersTest.php | 55 ++++++++++++++----- .../Functional/HigherOrderSectionsTest.php | 3 +- .../FiveThree/Functional/LambdaHelperTest.php | 3 +- .../FiveThree/Functional/MustacheSpecTest.php | 3 +- .../Functional/PartialLambdaIndentTest.php | 3 +- .../Functional/StrictCallablesTest.php | 11 +++- test/Mustache/Test/Functional/CallTest.php | 3 +- .../Mustache/Test/Functional/ExamplesTest.php | 3 +- .../Functional/HigherOrderSectionsTest.php | 3 +- .../Test/Functional/InheritanceTest.php | 9 +++ .../Test/Functional/MustacheInjectionTest.php | 3 +- .../Test/Functional/MustacheSpecTest.php | 3 +- .../Functional/NestedPartialIndentTest.php | 3 +- .../Test/Functional/ObjectSectionTest.php | 3 +- test/Mustache/Test/FunctionalTestCase.php | 3 +- test/Mustache/Test/HelperCollectionTest.php | 3 +- test/Mustache/Test/Loader/ArrayLoaderTest.php | 3 +- .../Test/Loader/CascadingLoaderTest.php | 3 +- .../Test/Loader/FilesystemLoaderTest.php | 3 +- .../Mustache/Test/Loader/StringLoaderTest.php | 3 +- .../Test/Logger/AbstractLoggerTest.php | 3 +- .../Mustache/Test/Logger/StreamLoggerTest.php | 3 +- test/Mustache/Test/ParserTest.php | 3 +- test/Mustache/Test/SpecTestCase.php | 3 +- test/Mustache/Test/TemplateTest.php | 3 +- test/Mustache/Test/TokenizerTest.php | 3 +- test/bootstrap.php | 3 +- test/fixtures/autoloader/Mustache/Bar.php | 3 +- test/fixtures/autoloader/Mustache/Foo.php | 3 +- test/fixtures/autoloader/NonMustacheClass.php | 3 +- test/fixtures/examples/blocks/Blocks.php | 9 +++ .../examples/child_context/ChildContext.php | 9 +++ test/fixtures/examples/comments/Comments.php | 9 +++ test/fixtures/examples/complex/complex.php | 9 +++ .../examples/delimiters/Delimiters.php | 9 +++ .../examples/dot_notation/DotNotation.php | 9 +++ .../examples/double_section/DoubleSection.php | 9 +++ test/fixtures/examples/escaped/Escaped.php | 9 +++ test/fixtures/examples/filters/Filters.php | 9 +++ .../GrandParentContext.php | 9 +++ test/fixtures/examples/i18n/I18n.php | 9 +++ .../implicit_iterator/ImplicitIterator.php | 9 +++ .../InvertedDoubleSection.php | 9 +++ .../inverted_section/InvertedSection.php | 9 +++ .../nested_partials/NestedPartials.php | 9 +++ test/fixtures/examples/partials/Partials.php | 9 +++ .../recursive_partials/RecursivePartials.php | 9 +++ .../SectionIteratorObjects.php | 9 +++ .../SectionMagicObjects.php | 9 +++ .../section_objects/SectionObjects.php | 9 +++ test/fixtures/examples/sections/Sections.php | 9 +++ .../sections_nested/SectionsNested.php | 9 +++ test/fixtures/examples/simple/Simple.php | 9 +++ .../fixtures/examples/unescaped/Unescaped.php | 9 +++ test/fixtures/examples/utf8/UTF8.php | 9 +++ .../examples/utf8_unescaped/UTF8Unescaped.php | 9 +++ .../examples/whitespace/Whitespace.php | 9 +++ 100 files changed, 477 insertions(+), 123 deletions(-) diff --git a/src/Mustache/Autoloader.php b/src/Mustache/Autoloader.php index b33bc24..ac80674 100644 --- a/src/Mustache/Autoloader.php +++ b/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. */ diff --git a/src/Mustache/Cache.php b/src/Mustache/Cache.php index 5df8a23..1e0c98b 100644 --- a/src/Mustache/Cache.php +++ b/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. * diff --git a/src/Mustache/Cache/AbstractCache.php b/src/Mustache/Cache/AbstractCache.php index cf1c041..96b8a3f 100644 --- a/src/Mustache/Cache/AbstractCache.php +++ b/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. * diff --git a/src/Mustache/Cache/FilesystemCache.php b/src/Mustache/Cache/FilesystemCache.php index 5b56222..b1cd765 100644 --- a/src/Mustache/Cache/FilesystemCache.php +++ b/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) { diff --git a/src/Mustache/Cache/NoopCache.php b/src/Mustache/Cache/NoopCache.php index 7a4b55b..302d82a 100644 --- a/src/Mustache/Cache/NoopCache.php +++ b/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. * diff --git a/src/Mustache/Compiler.php b/src/Mustache/Compiler.php index 7e82bfa..3003769 100644 --- a/src/Mustache/Compiler.php +++ b/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) { diff --git a/src/Mustache/Context.php b/src/Mustache/Context.php index e660b54..0a4999c 100644 --- a/src/Mustache/Context.php +++ b/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) { diff --git a/src/Mustache/Engine.php b/src/Mustache/Engine.php index fe11912..4f4092a 100644 --- a/src/Mustache/Engine.php +++ b/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 */ diff --git a/src/Mustache/Exception.php b/src/Mustache/Exception.php index 7c04792..0998b9d 100644 --- a/src/Mustache/Exception.php +++ b/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. */ diff --git a/src/Mustache/Exception/InvalidArgumentException.php b/src/Mustache/Exception/InvalidArgumentException.php index c6084b8..8feb383 100644 --- a/src/Mustache/Exception/InvalidArgumentException.php +++ b/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. */ diff --git a/src/Mustache/Exception/LogicException.php b/src/Mustache/Exception/LogicException.php index 4bfda5f..2297022 100644 --- a/src/Mustache/Exception/LogicException.php +++ b/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. */ diff --git a/src/Mustache/Exception/RuntimeException.php b/src/Mustache/Exception/RuntimeException.php index 5eb90dd..3d7a8d1 100644 --- a/src/Mustache/Exception/RuntimeException.php +++ b/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. */ diff --git a/src/Mustache/Exception/SyntaxException.php b/src/Mustache/Exception/SyntaxException.php index 5475ed5..296a5d9 100644 --- a/src/Mustache/Exception/SyntaxException.php +++ b/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. */ diff --git a/src/Mustache/Exception/UnknownFilterException.php b/src/Mustache/Exception/UnknownFilterException.php index f0a7012..6a453ec 100644 --- a/src/Mustache/Exception/UnknownFilterException.php +++ b/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. */ diff --git a/src/Mustache/Exception/UnknownHelperException.php b/src/Mustache/Exception/UnknownHelperException.php index 9d8c2c4..f236c1c 100644 --- a/src/Mustache/Exception/UnknownHelperException.php +++ b/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. */ diff --git a/src/Mustache/Exception/UnknownTemplateException.php b/src/Mustache/Exception/UnknownTemplateException.php index bfd945b..61e4427 100644 --- a/src/Mustache/Exception/UnknownTemplateException.php +++ b/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. */ diff --git a/src/Mustache/HelperCollection.php b/src/Mustache/HelperCollection.php index 0a92428..25ee8c2 100644 --- a/src/Mustache/HelperCollection.php +++ b/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 */ diff --git a/src/Mustache/LambdaHelper.php b/src/Mustache/LambdaHelper.php index cb8e966..d846abc 100644 --- a/src/Mustache/LambdaHelper.php +++ b/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 */ diff --git a/src/Mustache/Loader.php b/src/Mustache/Loader.php index 1b075d0..3398dab 100644 --- a/src/Mustache/Loader.php +++ b/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 * diff --git a/src/Mustache/Loader/ArrayLoader.php b/src/Mustache/Loader/ArrayLoader.php index 90cecca..3e3a214 100644 --- a/src/Mustache/Loader/ArrayLoader.php +++ b/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 * diff --git a/src/Mustache/Loader/CascadingLoader.php b/src/Mustache/Loader/CascadingLoader.php index 09a376c..943c39b 100644 --- a/src/Mustache/Loader/CascadingLoader.php +++ b/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 * diff --git a/src/Mustache/Loader/FilesystemLoader.php b/src/Mustache/Loader/FilesystemLoader.php index e2aab78..1cfaea2 100644 --- a/src/Mustache/Loader/FilesystemLoader.php +++ b/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 * diff --git a/src/Mustache/Loader/InlineLoader.php b/src/Mustache/Loader/InlineLoader.php index 2970937..5b01089 100644 --- a/src/Mustache/Loader/InlineLoader.php +++ b/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 * diff --git a/src/Mustache/Loader/MutableLoader.php b/src/Mustache/Loader/MutableLoader.php index 4855c16..5d1b047 100644 --- a/src/Mustache/Loader/MutableLoader.php +++ b/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. */ diff --git a/src/Mustache/Loader/StringLoader.php b/src/Mustache/Loader/StringLoader.php index 99fb38e..fa6d7b5 100644 --- a/src/Mustache/Loader/StringLoader.php +++ b/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. * diff --git a/src/Mustache/Logger.php b/src/Mustache/Logger.php index 93c27f6..dcf3eb2 100644 --- a/src/Mustache/Logger.php +++ b/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. * diff --git a/src/Mustache/Logger/AbstractLogger.php b/src/Mustache/Logger/AbstractLogger.php index 1c27db9..bef68b3 100644 --- a/src/Mustache/Logger/AbstractLogger.php +++ b/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. * diff --git a/src/Mustache/Logger/StreamLogger.php b/src/Mustache/Logger/StreamLogger.php index 88f3000..992e706 100644 --- a/src/Mustache/Logger/StreamLogger.php +++ b/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 * diff --git a/src/Mustache/Parser.php b/src/Mustache/Parser.php index 7d3559b..5d3ed9e 100644 --- a/src/Mustache/Parser.php +++ b/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 diff --git a/src/Mustache/Template.php b/src/Mustache/Template.php index f2d198f..5087a70 100644 --- a/src/Mustache/Template.php +++ b/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. * diff --git a/src/Mustache/Tokenizer.php b/src/Mustache/Tokenizer.php index a71df2c..5643632 100644 --- a/src/Mustache/Tokenizer.php +++ b/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) diff --git a/test/Mustache/Test/AutoloaderTest.php b/test/Mustache/Test/AutoloaderTest.php index ebe42df..35bde97 100644 --- a/test/Mustache/Test/AutoloaderTest.php +++ b/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 */ diff --git a/test/Mustache/Test/Cache/AbstractCacheTest.php b/test/Mustache/Test/Cache/AbstractCacheTest.php index 77fc18a..e0c7ada 100644 --- a/test/Mustache/Test/Cache/AbstractCacheTest.php +++ b/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() diff --git a/test/Mustache/Test/Cache/FilesystemCacheTest.php b/test/Mustache/Test/Cache/FilesystemCacheTest.php index f3fead5..b0990dc 100644 --- a/test/Mustache/Test/Cache/FilesystemCacheTest.php +++ b/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 */ diff --git a/test/Mustache/Test/CompilerTest.php b/test/Mustache/Test/CompilerTest.php index e11bd98..a636096 100644 --- a/test/Mustache/Test/CompilerTest.php +++ b/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 */ diff --git a/test/Mustache/Test/ContextTest.php b/test/Mustache/Test/ContextTest.php index 5d700fd..52f316c 100644 --- a/test/Mustache/Test/ContextTest.php +++ b/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 */ diff --git a/test/Mustache/Test/EngineTest.php b/test/Mustache/Test/EngineTest.php index 3da748b..35f3a8b 100644 --- a/test/Mustache/Test/EngineTest.php +++ b/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 */ diff --git a/test/Mustache/Test/Exception/SyntaxExceptionTest.php b/test/Mustache/Test/Exception/SyntaxExceptionTest.php index e87b7d5..b4040a9 100644 --- a/test/Mustache/Test/Exception/SyntaxExceptionTest.php +++ b/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() diff --git a/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php b/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php index b31dcbb..d8bd44a 100644 --- a/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php +++ b/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() diff --git a/test/Mustache/Test/Exception/UnknownHelperExceptionTest.php b/test/Mustache/Test/Exception/UnknownHelperExceptionTest.php index 342c3a0..9d3de69 100644 --- a/test/Mustache/Test/Exception/UnknownHelperExceptionTest.php +++ b/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() diff --git a/test/Mustache/Test/Exception/UnknownTemplateExceptionTest.php b/test/Mustache/Test/Exception/UnknownTemplateExceptionTest.php index b5848d5..572fd2e 100644 --- a/test/Mustache/Test/Exception/UnknownTemplateExceptionTest.php +++ b/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() diff --git a/test/Mustache/Test/FiveThree/Functional/ClosureQuirksTest.php b/test/Mustache/Test/FiveThree/Functional/ClosureQuirksTest.php index a6f8353..43bf429 100644 --- a/test/Mustache/Test/FiveThree/Functional/ClosureQuirksTest.php +++ b/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'; + }))); } } diff --git a/test/Mustache/Test/FiveThree/Functional/EngineTest.php b/test/Mustache/Test/FiveThree/Functional/EngineTest.php index 09e256b..236d130 100644 --- a/test/Mustache/Test/FiveThree/Functional/EngineTest.php +++ b/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 diff --git a/test/Mustache/Test/FiveThree/Functional/FiltersTest.php b/test/Mustache/Test/FiveThree/Functional/FiltersTest.php index c9d1549..648f482 100644 --- a/test/Mustache/Test/FiveThree/Functional/FiltersTest.php +++ b/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'; + })), ); } } diff --git a/test/Mustache/Test/FiveThree/Functional/HigherOrderSectionsTest.php b/test/Mustache/Test/FiveThree/Functional/HigherOrderSectionsTest.php index 8abd209..81878d6 100644 --- a/test/Mustache/Test/FiveThree/Functional/HigherOrderSectionsTest.php +++ b/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 diff --git a/test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php b/test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php index 48f2465..ed5f304 100644 --- a/test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php +++ b/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 diff --git a/test/Mustache/Test/FiveThree/Functional/MustacheSpecTest.php b/test/Mustache/Test/FiveThree/Functional/MustacheSpecTest.php index 6db379f..da4397c 100644 --- a/test/Mustache/Test/FiveThree/Functional/MustacheSpecTest.php +++ b/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. * diff --git a/test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php b/test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php index e9aff7e..b7e5a14 100644 --- a/test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php +++ b/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 diff --git a/test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php b/test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php index 8fe64d8..5a11231 100644 --- a/test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php +++ b/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', ), diff --git a/test/Mustache/Test/Functional/CallTest.php b/test/Mustache/Test/Functional/CallTest.php index 4c5cbac..24ff16e 100644 --- a/test/Mustache/Test/Functional/CallTest.php +++ b/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 diff --git a/test/Mustache/Test/Functional/ExamplesTest.php b/test/Mustache/Test/Functional/ExamplesTest.php index e33384a..9339e43 100644 --- a/test/Mustache/Test/Functional/ExamplesTest.php +++ b/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 diff --git a/test/Mustache/Test/Functional/HigherOrderSectionsTest.php b/test/Mustache/Test/Functional/HigherOrderSectionsTest.php index 956d8cd..5b7527f 100644 --- a/test/Mustache/Test/Functional/HigherOrderSectionsTest.php +++ b/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 diff --git a/test/Mustache/Test/Functional/InheritanceTest.php b/test/Mustache/Test/Functional/InheritanceTest.php index 0b26b77..b39555f 100644 --- a/test/Mustache/Test/Functional/InheritanceTest.php +++ b/test/Mustache/Test/Functional/InheritanceTest.php @@ -1,5 +1,14 @@ "Shark"'; diff --git a/test/fixtures/examples/filters/Filters.php b/test/fixtures/examples/filters/Filters.php index 1899ab4..fb7c3f5 100644 --- a/test/fixtures/examples/filters/Filters.php +++ b/test/fixtures/examples/filters/Filters.php @@ -1,5 +1,14 @@ Shark'; diff --git a/test/fixtures/examples/utf8/UTF8.php b/test/fixtures/examples/utf8/UTF8.php index e5a7877..8c14941 100644 --- a/test/fixtures/examples/utf8/UTF8.php +++ b/test/fixtures/examples/utf8/UTF8.php @@ -1,5 +1,14 @@