diff --git a/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php b/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php index cdd6b65..fd8248e 100644 --- a/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php +++ b/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php @@ -290,9 +290,7 @@ protected function invokeHook($hook, EntityInterface $entity) { protected function mapToStorageRecord(EntityInterface $entity) { $record = new \stdClass(); foreach ($this->entityInfo['schema_fields_sql']['base_table'] as $name) { - if (isset($entity->$name->value)) { - $record->$name = $entity->$name->value; - } + $record->$name = $entity->$name->value; } return $record; } diff --git a/core/lib/Drupal/Core/Entity/Field/Type/UriItem.php b/core/lib/Drupal/Core/Entity/Field/Type/UriItem.php index 82257d4..e5b84d4 100644 --- a/core/lib/Drupal/Core/Entity/Field/Type/UriItem.php +++ b/core/lib/Drupal/Core/Entity/Field/Type/UriItem.php @@ -2,7 +2,7 @@ /** * @file - * Contains Drupal\Core\Entity\Field\Type\UriItem. + * Contains \Drupal\Core\Entity\Field\Type\UriItem. */ namespace Drupal\Core\Entity\Field\Type; diff --git a/core/modules/aggregator/aggregator.admin.inc b/core/modules/aggregator/aggregator.admin.inc index 7bc6309..7238deb 100644 --- a/core/modules/aggregator/aggregator.admin.inc +++ b/core/modules/aggregator/aggregator.admin.inc @@ -111,7 +111,7 @@ function aggregator_feed_add() { /** * Page callback: Presents the aggregator feed edit form. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * The aggregator feed to edit. * * @return array @@ -127,7 +127,7 @@ function aggregator_feed_edit(Feed $feed) { /** * Page callback: Deletes a feed. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * A feed object describing the feed to be cleared. * * @see aggregator_admin_remove_feed_submit() @@ -322,7 +322,7 @@ function _aggregator_parse_opml($opml) { /** * Page callback: Refreshes a feed, then redirects to the overview page. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * An object describing the feed to be refreshed. * * @see aggregator_menu() diff --git a/core/modules/aggregator/aggregator.module b/core/modules/aggregator/aggregator.module index 906c139..d429f20 100644 --- a/core/modules/aggregator/aggregator.module +++ b/core/modules/aggregator/aggregator.module @@ -397,7 +397,7 @@ function aggregator_save_category($edit) { /** * Removes all items from a feed. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * An object describing the feed to be cleared. */ function aggregator_remove(Feed $feed) { @@ -442,7 +442,7 @@ function _aggregator_get_variables() { /** * Checks a news feed for new items. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * An object describing the feed to be refreshed. */ function aggregator_refresh(Feed $feed) { @@ -513,7 +513,7 @@ function aggregator_refresh(Feed $feed) { * @param int $fid * The feed id. * - * @return Drupal\aggregator\Plugin\Core\Entity\Feed + * @return \Drupal\aggregator\Plugin\Core\Entity\Feed * An object describing the feed. */ function aggregator_feed_load($fid) { diff --git a/core/modules/aggregator/aggregator.pages.inc b/core/modules/aggregator/aggregator.pages.inc index cd6fe02..d037401 100644 --- a/core/modules/aggregator/aggregator.pages.inc +++ b/core/modules/aggregator/aggregator.pages.inc @@ -26,7 +26,7 @@ function aggregator_page_last() { /** * Page callback: Displays all the items captured from the particular feed. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * The feed for which to display all items. * * @return string diff --git a/core/modules/aggregator/aggregator.parser.inc b/core/modules/aggregator/aggregator.parser.inc index 3bb6201..3b906e8 100644 --- a/core/modules/aggregator/aggregator.parser.inc +++ b/core/modules/aggregator/aggregator.parser.inc @@ -55,7 +55,7 @@ function aggregator_aggregator_parse(Feed $feed) { * * @param string $data * The feed data. - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * An object describing the feed to be parsed. * * @return diff --git a/core/modules/aggregator/aggregator.processor.inc b/core/modules/aggregator/aggregator.processor.inc index 83e76d5..c02654c 100644 --- a/core/modules/aggregator/aggregator.processor.inc +++ b/core/modules/aggregator/aggregator.processor.inc @@ -162,7 +162,7 @@ function _aggregator_characters($length) { /** * Expires items from a feed depending on expiration settings. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * Object describing feed. */ function aggregator_expire(Feed $feed) { diff --git a/core/modules/aggregator/lib/Drupal/aggregator/FeedFormController.php b/core/modules/aggregator/lib/Drupal/aggregator/FeedFormController.php index e7a7534..12a156b 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/FeedFormController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/FeedFormController.php @@ -2,7 +2,7 @@ /** * @file - * Definition of Drupal\aggregator\FeedFormController. + * Contains \Drupal\aggregator\FeedFormController. */ namespace Drupal\aggregator; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/FeedRenderController.php b/core/modules/aggregator/lib/Drupal/aggregator/FeedRenderController.php index 93bcedc..47de47b 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/FeedRenderController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/FeedRenderController.php @@ -2,7 +2,7 @@ /** * @file - * Contains Drupal\aggregator\FeedRenderController. + * Contains \Drupal\aggregator\FeedRenderController. */ namespace Drupal\aggregator; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageController.php b/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageController.php index 346c7fc..7e14cf9 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageController.php @@ -2,7 +2,7 @@ /** * @file - * Contains Drupal\aggregator\FeedStorageController. + * Contains \Drupal\aggregator\FeedStorageController. */ namespace Drupal\aggregator; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/ItemRenderController.php b/core/modules/aggregator/lib/Drupal/aggregator/ItemRenderController.php index 5030111..af11005 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/ItemRenderController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/ItemRenderController.php @@ -2,7 +2,7 @@ /** * @file - * Contains Drupal\aggregator\ItemRenderController. + * Contains \Drupal\aggregator\ItemRenderController. */ namespace Drupal\aggregator; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php b/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php index 43973f9..87479ed 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php @@ -2,7 +2,7 @@ /** * @file - * Contains Drupal\aggregator\ItemStorageController. + * Contains \Drupal\aggregator\ItemStorageController. */ namespace Drupal\aggregator; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Feed.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Feed.php index 3cf8bf5..c53558e 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Feed.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Feed.php @@ -2,7 +2,7 @@ /** * @file - * Contains Drupal\aggregator\Plugin\Core\Entity\Feed. + * Contains \Drupal\aggregator\Plugin\Core\Entity\Feed. */ namespace Drupal\aggregator\Plugin\Core\Entity; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php index 31ac227..cc780bd 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php @@ -2,7 +2,7 @@ /** * @file - * Contains Drupal\aggregator\Plugin\Core\Entity\Item. + * Contains \Drupal\aggregator\Plugin\Core\Entity\Item. */ namespace Drupal\aggregator\Plugin\Core\Entity; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/FetcherInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/FetcherInterface.php index ce0a1fb..120f596 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/FetcherInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/FetcherInterface.php @@ -23,7 +23,7 @@ /** * Downloads feed data. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * A feed object representing the resource to be downloaded. * $feed->url->value contains the link to the feed. * Download the data at the URL and expose it diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php b/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php index 4a1a7ae..d5fc747 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php @@ -44,7 +44,7 @@ function setUp() { * (optional) If given, feed will be created with this URL, otherwise * /rss.xml will be used. Defaults to NULL. * - * @return Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @return \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * Full feed object if possible. * * @see getFeedEditArray() @@ -62,7 +62,7 @@ function createFeed($feed_url = NULL) { /** * Deletes an aggregator feed. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * Feed object representing the feed. */ function deleteFeed(Feed $feed) { @@ -105,7 +105,7 @@ function getFeedEditArray($feed_url = NULL) { * @param array $values * (optional) Default values to initialize object properties with. * - * @return Drupal\aggregator\Plugin\Core\Entity\Feed + * @return \Drupal\aggregator\Plugin\Core\Entity\Feed * A feed object. */ function getFeedEditObject($feed_url = NULL, array $values = array()) { @@ -142,7 +142,7 @@ function getDefaultFeedItemCount() { * This method simulates a click to * admin/config/services/aggregator/update/$fid. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * Feed object representing the feed. * @param $expected_count * Expected number of feed items. @@ -174,7 +174,7 @@ function updateFeedItems(Feed $feed, $expected_count) { /** * Confirms an item removal from a feed. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * Feed object representing the feed. */ function removeFeedItems(Feed $feed) { @@ -185,7 +185,7 @@ function removeFeedItems(Feed $feed) { /** * Adds and removes feed items and ensure that the count is zero. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * Feed object representing the feed. * @param int $expected_count * Expected number of feed items. @@ -202,7 +202,7 @@ function updateAndRemove(Feed $feed, $expected_count) { /** * Pulls feed categories from {aggregator_category_feed} table. * - * @param Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed * Feed object representing the feed. */ function getFeedCategories(Feed $feed) {