Loading core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class AnnotatedClassDiscovery implements DiscoveryInterface { /** * The namespaces within which to find plugin classes. * * @var string[] * @var array<string, list<string>> */ protected $pluginNamespaces; Loading Loading @@ -60,7 +60,7 @@ class AnnotatedClassDiscovery implements DiscoveryInterface { /** * Constructs a new instance. * * @param string[] $plugin_namespaces * @param array<string, list<string>> $plugin_namespaces * (optional) An array of namespace that may contain plugin implementations. * Defaults to an empty array. * @param string $plugin_definition_annotation_name Loading core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ class AttributeClassDiscovery implements DiscoveryInterface { /** * Constructs a new instance. * * @param string[] $pluginNamespaces * @param array<string, list<string>> $pluginNamespaces * (optional) An array of namespace that may contain plugin implementations. * Defaults to an empty array. * @param string $pluginDefinitionAttributeName Loading core/modules/update/tests/src/Functional/UpdateTestTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ protected function mockInstalledExtensionsInfo(array $installed_extensions): voi /** * Sets default information about installed extensions. * * @param string[] $default_info * @param array<string, string|int> $default_info * The *.info.yml key-value pairs to be mocked across all * extensions. Hence, these can be seen as default/fallback values. */ Loading core/modules/views/src/Plugin/views/area/Result.php +8 −8 Original line number Diff line number Diff line Loading @@ -103,17 +103,17 @@ public function render($empty = FALSE) { $current_record_count = ($end - $start) + $start_offset; // Get the search information. $replacements = []; $replacements['@start'] = $start; $replacements['@end'] = $end; $replacements['@total'] = $total; $replacements['@start'] = (string) $start; $replacements['@end'] = (string) $end; $replacements['@total'] = (string) $total; $replacements['@label'] = $label; $replacements['@per_page'] = $per_page; $replacements['@current_page'] = $current_page; $replacements['@current_record_count'] = $current_record_count; $replacements['@page_count'] = $page_count; $replacements['@per_page'] = (string) $per_page; $replacements['@current_page'] = (string) $current_page; $replacements['@current_record_count'] = (string) $current_record_count; $replacements['@page_count'] = (string) $page_count; // Send the output. if (!empty($total) || !empty($this->options['empty'])) { $output .= str_replace(array_keys($replacements), array_values($replacements), $format); $output .= str_replace(array_keys($replacements), $replacements, $format); // Return as render array. return [ '#markup' => $output, Loading core/tests/Drupal/FunctionalTests/Core/Recipe/RecipeTestTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ protected function applyRecipe(string $path, int $expected_exit_code = 0, array /** * Runs the `core/scripts/drupal` script with the given arguments. * * @param string[] $arguments * @param array<string|int> $arguments * The arguments and options to pass to the script. * @param int $timeout * (optional) How long the command should run before timing out, in seconds. Loading Loading
core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class AnnotatedClassDiscovery implements DiscoveryInterface { /** * The namespaces within which to find plugin classes. * * @var string[] * @var array<string, list<string>> */ protected $pluginNamespaces; Loading Loading @@ -60,7 +60,7 @@ class AnnotatedClassDiscovery implements DiscoveryInterface { /** * Constructs a new instance. * * @param string[] $plugin_namespaces * @param array<string, list<string>> $plugin_namespaces * (optional) An array of namespace that may contain plugin implementations. * Defaults to an empty array. * @param string $plugin_definition_annotation_name Loading
core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ class AttributeClassDiscovery implements DiscoveryInterface { /** * Constructs a new instance. * * @param string[] $pluginNamespaces * @param array<string, list<string>> $pluginNamespaces * (optional) An array of namespace that may contain plugin implementations. * Defaults to an empty array. * @param string $pluginDefinitionAttributeName Loading
core/modules/update/tests/src/Functional/UpdateTestTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ protected function mockInstalledExtensionsInfo(array $installed_extensions): voi /** * Sets default information about installed extensions. * * @param string[] $default_info * @param array<string, string|int> $default_info * The *.info.yml key-value pairs to be mocked across all * extensions. Hence, these can be seen as default/fallback values. */ Loading
core/modules/views/src/Plugin/views/area/Result.php +8 −8 Original line number Diff line number Diff line Loading @@ -103,17 +103,17 @@ public function render($empty = FALSE) { $current_record_count = ($end - $start) + $start_offset; // Get the search information. $replacements = []; $replacements['@start'] = $start; $replacements['@end'] = $end; $replacements['@total'] = $total; $replacements['@start'] = (string) $start; $replacements['@end'] = (string) $end; $replacements['@total'] = (string) $total; $replacements['@label'] = $label; $replacements['@per_page'] = $per_page; $replacements['@current_page'] = $current_page; $replacements['@current_record_count'] = $current_record_count; $replacements['@page_count'] = $page_count; $replacements['@per_page'] = (string) $per_page; $replacements['@current_page'] = (string) $current_page; $replacements['@current_record_count'] = (string) $current_record_count; $replacements['@page_count'] = (string) $page_count; // Send the output. if (!empty($total) || !empty($this->options['empty'])) { $output .= str_replace(array_keys($replacements), array_values($replacements), $format); $output .= str_replace(array_keys($replacements), $replacements, $format); // Return as render array. return [ '#markup' => $output, Loading
core/tests/Drupal/FunctionalTests/Core/Recipe/RecipeTestTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ protected function applyRecipe(string $path, int $expected_exit_code = 0, array /** * Runs the `core/scripts/drupal` script with the given arguments. * * @param string[] $arguments * @param array<string|int> $arguments * The arguments and options to pass to the script. * @param int $timeout * (optional) How long the command should run before timing out, in seconds. Loading