diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterTwigExtensionsPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterTwigExtensionsPass.php index 09876b0..5b4a7fa 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterTwigExtensionsPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterTwigExtensionsPass.php @@ -23,7 +23,8 @@ public function process(ContainerBuilder $container) { $definition = $container->getDefinition('twig'); foreach ($container->findTaggedServiceIds('twig.extension') as $id => $attributes) { - // We must assume that the class value has been correcly filled, even if the service is created by a factory + // We must assume that the class value has been correcly filled, + // even if the service is created by a factory. $class = $container->getDefinition($id)->getClass(); $refClass = new ReflectionClass($class); diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/TwigExtensionTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/TwigExtensionTest.php index 010825e..e488f00 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/TwigExtensionTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/TwigExtensionTest.php @@ -41,8 +41,8 @@ function testTwigExtensionLoaded() { $twigService = \Drupal::service('twig'); $ext = $twigService->getExtension('twig_extension_test.test_extension'); $this->assertEqual( - get_class($ext), - 'Drupal\twig_extension_test\TwigExtension\TestExtension', + get_class($ext), + 'Drupal\twig_extension_test\TwigExtension\TestExtension', 'TestExtension loaded successfully.' ); } @@ -57,11 +57,11 @@ function testTwigExtensionFilter() { $this->drupalGet('twig-extension-test/filter'); $this->assertNoText( - 'If you are seeing this, the theme is still using phptemplate and the test has failed.', + 'If you are seeing this, the theme is still using phptemplate and the test has failed.', 'Success: Using Twig template.' ); $this->assertText( - 'Every plant is not a mineral.', + 'Every plant is not a mineral.', 'Success: String filtered.' ); } @@ -76,15 +76,15 @@ function testTwigExtensionFunction() { $out = $this->drupalGet('twig-extension-test/function'); $this->assertNoText( - 'If you are seeing this, the theme is still using phptemplate and the test has failed.', + 'If you are seeing this, the theme is still using phptemplate and the test has failed.', 'Success: Using Twig template.' ); $this->assertText( - 'THE QUICK BROWN BOX JUMPS OVER THE LAZY DOG 123.', + 'THE QUICK BROWN BOX JUMPS OVER THE LAZY DOG 123.', 'Success: Text converted to uppercase.' ); $this->assertText( - 'the quick brown box jumps over the lazy dog 123.', + 'the quick brown box jumps over the lazy dog 123.', 'Success: Text converted to lowercase.' ); $this->assertNoText( diff --git a/core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.filter.tpl.php b/core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.filter.tpl.php index 153ec2b..c8bb4e8 100644 --- a/core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.filter.tpl.php +++ b/core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.filter.tpl.php @@ -1,3 +1,3 @@

If you are seeing this, the theme is still using phptemplate and the test has failed. -

\ No newline at end of file +

diff --git a/core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.function.tpl.php b/core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.function.tpl.php index 153ec2b..c8bb4e8 100644 --- a/core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.function.tpl.php +++ b/core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.function.tpl.php @@ -1,3 +1,3 @@

If you are seeing this, the theme is still using phptemplate and the test has failed. -

\ No newline at end of file +

diff --git a/core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module b/core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module index bbbf2a0..ae3723a 100644 --- a/core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module +++ b/core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module @@ -6,7 +6,7 @@ function twig_extension_test_theme($existing, $type, $theme, $path) { return array( 'twig_extension_test_filter' => array( - 'variables' => array('message' => NULL), + 'variables' => array('message' => NULL), 'template' => 'twig_extension_test.filter', ), 'twig_extension_test_function' => array(