Loading core/includes/theme.inc +1 −1 Original line number Diff line number Diff line Loading @@ -1784,7 +1784,7 @@ function template_preprocess_pager(&$variables) { $route_name = $variables['pager']['#route_name']; $route_parameters = isset($variables['pager']['#route_parameters']) ? $variables['pager']['#route_parameters'] : []; /* @var $pager_manager \Drupal\Core\Pager\PagerManagerInterface */ /** @var \Drupal\Core\Pager\PagerManagerInterface $pager_manager */ $pager_manager = \Drupal::service('pager.manager'); $pager = $pager_manager->getPager($element); Loading core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php +1 −1 Original line number Diff line number Diff line Loading @@ -141,7 +141,7 @@ public function getDefinitions() { $finder = MockFileFinder::create($fileinfo->getPathName()); $parser = new StaticReflectionParser($class, $finder, TRUE); /** @var $annotation \Drupal\Component\Annotation\AnnotationInterface */ /** @var \Drupal\Component\Annotation\AnnotationInterface $annotation */ if ($annotation = $reader->getClassAnnotation($parser->getReflectionClass(), $this->pluginDefinitionAnnotationName)) { $this->prepareAnnotationDefinition($annotation, $class); Loading core/lib/Drupal/Core/Datetime/Element/Datetime.php +2 −2 Original line number Diff line number Diff line Loading @@ -28,11 +28,11 @@ public function getInfo() { // Date formats cannot be loaded during install or update. if (!defined('MAINTENANCE_MODE')) { if ($date_format_entity = DateFormat::load('html_date')) { /** @var $date_format_entity \Drupal\Core\Datetime\DateFormatInterface */ /** @var \Drupal\Core\Datetime\DateFormatInterface $date_format_entity */ $date_format = $date_format_entity->getPattern(); } if ($time_format_entity = DateFormat::load('html_time')) { /** @var $time_format_entity \Drupal\Core\Datetime\DateFormatInterface */ /** @var \Drupal\Core\Datetime\DateFormatInterface $time_format_entity */ $time_format = $time_format_entity->getPattern(); } } Loading core/lib/Drupal/Core/DrupalKernel.php +1 −1 Original line number Diff line number Diff line Loading @@ -1223,7 +1223,7 @@ protected function compileContainer() { $path = 'core/lib/Drupal/' . $parent_directory; $parent_namespace = 'Drupal\\' . $parent_directory; foreach (new \DirectoryIterator($this->root . '/' . $path) as $component) { /** @var $component \DirectoryIterator */ /** @var \DirectoryIterator $component */ $pathname = $component->getPathname(); if (!$component->isDot() && $component->isDir() && ( is_dir($pathname . '/Plugin') || Loading core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ public function access(EntityInterface $entity, $operation, AccountInterface $ac // individual revisions to have specific access control and be cached // separately. if ($entity instanceof RevisionableInterface) { /** @var $entity \Drupal\Core\Entity\RevisionableInterface */ /** @var \Drupal\Core\Entity\RevisionableInterface $entity */ $cid .= ':' . $entity->getRevisionId(); } Loading Loading
core/includes/theme.inc +1 −1 Original line number Diff line number Diff line Loading @@ -1784,7 +1784,7 @@ function template_preprocess_pager(&$variables) { $route_name = $variables['pager']['#route_name']; $route_parameters = isset($variables['pager']['#route_parameters']) ? $variables['pager']['#route_parameters'] : []; /* @var $pager_manager \Drupal\Core\Pager\PagerManagerInterface */ /** @var \Drupal\Core\Pager\PagerManagerInterface $pager_manager */ $pager_manager = \Drupal::service('pager.manager'); $pager = $pager_manager->getPager($element); Loading
core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php +1 −1 Original line number Diff line number Diff line Loading @@ -141,7 +141,7 @@ public function getDefinitions() { $finder = MockFileFinder::create($fileinfo->getPathName()); $parser = new StaticReflectionParser($class, $finder, TRUE); /** @var $annotation \Drupal\Component\Annotation\AnnotationInterface */ /** @var \Drupal\Component\Annotation\AnnotationInterface $annotation */ if ($annotation = $reader->getClassAnnotation($parser->getReflectionClass(), $this->pluginDefinitionAnnotationName)) { $this->prepareAnnotationDefinition($annotation, $class); Loading
core/lib/Drupal/Core/Datetime/Element/Datetime.php +2 −2 Original line number Diff line number Diff line Loading @@ -28,11 +28,11 @@ public function getInfo() { // Date formats cannot be loaded during install or update. if (!defined('MAINTENANCE_MODE')) { if ($date_format_entity = DateFormat::load('html_date')) { /** @var $date_format_entity \Drupal\Core\Datetime\DateFormatInterface */ /** @var \Drupal\Core\Datetime\DateFormatInterface $date_format_entity */ $date_format = $date_format_entity->getPattern(); } if ($time_format_entity = DateFormat::load('html_time')) { /** @var $time_format_entity \Drupal\Core\Datetime\DateFormatInterface */ /** @var \Drupal\Core\Datetime\DateFormatInterface $time_format_entity */ $time_format = $time_format_entity->getPattern(); } } Loading
core/lib/Drupal/Core/DrupalKernel.php +1 −1 Original line number Diff line number Diff line Loading @@ -1223,7 +1223,7 @@ protected function compileContainer() { $path = 'core/lib/Drupal/' . $parent_directory; $parent_namespace = 'Drupal\\' . $parent_directory; foreach (new \DirectoryIterator($this->root . '/' . $path) as $component) { /** @var $component \DirectoryIterator */ /** @var \DirectoryIterator $component */ $pathname = $component->getPathname(); if (!$component->isDot() && $component->isDir() && ( is_dir($pathname . '/Plugin') || Loading
core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ public function access(EntityInterface $entity, $operation, AccountInterface $ac // individual revisions to have specific access control and be cached // separately. if ($entity instanceof RevisionableInterface) { /** @var $entity \Drupal\Core\Entity\RevisionableInterface */ /** @var \Drupal\Core\Entity\RevisionableInterface $entity */ $cid .= ':' . $entity->getRevisionId(); } Loading