diff --git a/core/modules/file/file.module b/core/modules/file/file.module index 0d55152..67f9bd8 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -1680,9 +1680,9 @@ function file_permission() { /** * Formats human-readable version of file status. * - * @param $choice + * @param int $choice * integer Status code. - * @return + * @return string * string Text-represented file status. */ function _views_file_status($choice = NULL) { diff --git a/core/modules/file/lib/Drupal/file/Tests/FileListingTest.php b/core/modules/file/lib/Drupal/file/Tests/FileListingTest.php index 4fc8072..b533ddd 100644 --- a/core/modules/file/lib/Drupal/file/Tests/FileListingTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/FileListingTest.php @@ -2,7 +2,7 @@ /** * @file - * Contains of Drupal\file\Tests\FileListingTest. + * Contains of \Drupal\file\Tests\FileListingTest. */ namespace Drupal\file\Tests; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/EntityLabel.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/EntityLabel.php index d5fe3c4..14f98d0 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/EntityLabel.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/EntityLabel.php @@ -36,7 +36,7 @@ class EntityLabel extends FieldPluginBase { protected $entityManager; /** - * Constructs entity label field class. + * Constructs a EntityLabel object. * * @param array $configuration * A configuration array containing information about the plugin instance. @@ -44,7 +44,7 @@ class EntityLabel extends FieldPluginBase { * The plugin_id for the plugin instance. * @param array $plugin_definition * The plugin implementation definition. - * @param $manager \Drupal\Core\Entity\EntityManager + * @param \Drupal\Core\Entity\EntityManager $manager * EntityManager that is stored internally and used to load nodes. */ public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityManager $manager) { @@ -57,11 +57,16 @@ public function __construct(array $configuration, $plugin_id, array $plugin_defi * {@inheritdoc} */ public static function create(ContainerInterface $container, array $configuration, $plugin_id, array $plugin_definition) { - return new static($configuration, $plugin_id, $plugin_definition, $container->get('plugin.manager.entity')); + return new static( + $configuration, + $plugin_id, + $plugin_definition, + $container->get('plugin.manager.entity') + ); } /** - * @inheritdoc. + * {@inheritdoc} */ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) { parent::init($view, $display, $options); @@ -69,7 +74,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o } /** - * @inheritdoc. + * {@inheritdoc} */ protected function defineOptions() { $options = parent::defineOptions(); @@ -78,7 +83,7 @@ protected function defineOptions() { } /** - * @inheritdoc. + * {@inheritdoc} */ public function buildOptionsForm(&$form, &$form_state) { $form['link_to_entity'] = array( @@ -91,9 +96,9 @@ public function buildOptionsForm(&$form, &$form_state) { } /** - * @inheritdoc. + * {@inheritdoc} */ - function render($values) { + public function render($values) { $entity = $this->loadedReferencers[$this->getValue($values, $this->definition['entity type field'])][$this->getValue($values)]; if (empty($entity)) { @@ -110,9 +115,9 @@ function render($values) { } /** - * @inheritdoc. + * {@inheritdoc} */ - function preRender(&$values) { + public function preRender(&$values) { parent::preRender($values); $loads = array();