commit 3da5d0120acfc08d662d8876d69d141eba748d7e Author: Joel Pittet Date: Sun May 17 14:47:39 2015 -0700 nit picks cleaned up diff --git a/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php index 09fd776..2c14cdc 100644 --- a/core/lib/Drupal/Core/Theme/Registry.php +++ b/core/lib/Drupal/Core/Theme/Registry.php @@ -138,7 +138,7 @@ class Registry implements DestructableInterface { protected $themeManager; /** - * User functions grouped by the word before first underscore. + * User functions grouped by the word before the first underscore. * * @var array */ @@ -151,7 +151,6 @@ class Registry implements DestructableInterface { */ protected $seenFunctions = []; - /** * Constructs a \Drupal\Core\Theme\Registry object. * @@ -703,7 +702,7 @@ public function destruct() { } /** - * Get all user functions grouped by word before first underscore. + * Get all user functions grouped by the word before the first underscore. * * @return array * Functions grouped by the first prefix. @@ -730,7 +729,6 @@ public function getPrefixGroupedUserFunctions() { return $this->groupedFunctions; } - /** * Wraps drupal_get_path(). * diff --git a/core/modules/system/src/Tests/Theme/ThemeTest.php b/core/modules/system/src/Tests/Theme/ThemeTest.php index 880103a..21fe257 100644 --- a/core/modules/system/src/Tests/Theme/ThemeTest.php +++ b/core/modules/system/src/Tests/Theme/ThemeTest.php @@ -303,7 +303,7 @@ function testSuggestionPreprocessForDefaults() { drupal_theme_rebuild(); for ($i = 0; $i < 2; $i++) { $this->drupalGet('theme-test/preprocess-suggestions'); - $items = $this->CssSelect('.suggestion'); + $items = $this->cssSelect('.suggestion'); $expected_values = [ 'Suggestion', 'Kitten', @@ -315,4 +315,5 @@ function testSuggestionPreprocessForDefaults() { } } } + } diff --git a/core/modules/system/tests/modules/theme_test/theme_test.module b/core/modules/system/tests/modules/theme_test/theme_test.module index d7cbec4..929067e 100644 --- a/core/modules/system/tests/modules/theme_test/theme_test.module +++ b/core/modules/system/tests/modules/theme_test/theme_test.module @@ -55,12 +55,12 @@ function theme_test_theme($existing, $type, $theme, $path) { $info['test_theme_not_existing_function'] = array( 'function' => 'test_theme_not_existing_function', ); - $items['theme_test_preprocess_suggestions'] = array( + $items['theme_test_preprocess_suggestions'] = [ 'variables' => [ 'foo' => '', 'bar' => '', ], - ); + ]; return $items; }