Unverified Commit 7e08466e authored by alexpott's avatar alexpott

Issue #3041983 by yogeshmpawar, idebr, pifagor, klausi: Fix unused imports and...

Issue #3041983 by yogeshmpawar, idebr, pifagor, klausi: Fix unused imports and update Coder to 8.3.4
parent 3c5675d1
......@@ -3382,11 +3382,11 @@
},
{
"name": "drupal/coder",
"version": "8.3.2",
"version": "8.3.4",
"source": {
"type": "git",
"url": "https://git.drupal.org/project/coder.git",
"reference": "44c80c21074df43572652f35bec4f184f9eae5e7"
"reference": "0a274321f4930f186d9f246783f0b4d743501cf8"
},
"require": {
"ext-mbstring": "*",
......@@ -3415,7 +3415,7 @@
"phpcs",
"standards"
],
"time": "2019-04-14T17:56:07+00:00"
"time": "2019-05-24T11:44:05+00:00"
},
{
"name": "fabpot/goutte",
......
......@@ -13,7 +13,6 @@
use Drupal\Component\Utility\OpCodeCache;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Extension\ExtensionDiscovery;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\Site\Settings;
/**
......
......@@ -416,7 +416,7 @@ public function initialized($id) {
/**
* Resolves arguments that represent services or variables to the real values.
*
* @param array|\stdClass $arguments
* @param array|object $arguments
* The arguments to resolve.
*
* @return array
......
......@@ -292,7 +292,7 @@ protected function dumpMethodCalls(array $calls) {
* collection needed to be resolved or not. This is used for optimizing
* deep arrays that don't need to be traversed.
*
* @return \stdClass|array
* @return object|array
* The collection in a suitable format.
*/
protected function dumpCollection($collection, &$resolve = FALSE) {
......@@ -355,7 +355,7 @@ protected function dumpCallable($callable) {
* (optional) Whether the service will be shared with others.
* By default this parameter is FALSE.
*
* @return \stdClass
* @return object
* A very lightweight private service value object.
*/
protected function getPrivateServiceCall($id, Definition $definition, $shared = FALSE) {
......@@ -381,7 +381,7 @@ protected function getPrivateServiceCall($id, Definition $definition, $shared =
* @return mixed
* The dumped value in a suitable format.
*
* @throws RuntimeException
* @throws \Symfony\Component\DependencyInjection\Exception\RuntimeException
* When trying to dump object or resource.
*/
protected function dumpValue($value) {
......@@ -435,7 +435,7 @@ protected function dumpValue($value) {
* (optional) The reference object to process; needed to get the invalid
* behavior value.
*
* @return string|\stdClass
* @return string|object
* A suitable representation of the service reference.
*/
protected function getReferenceCall($id, Reference $reference = NULL) {
......@@ -468,7 +468,7 @@ protected function getReferenceCall($id, Reference $reference = NULL) {
* @param int $invalid_behavior
* (optional) The invalid behavior of the service.
*
* @return string|\stdClass
* @return string|object
* A suitable representation of the service reference.
*/
protected function getServiceCall($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
......@@ -485,7 +485,7 @@ protected function getServiceCall($id, $invalid_behavior = ContainerInterface::E
* @param string $name
* The name of the parameter to get a reference for.
*
* @return string|\stdClass
* @return string|object
* A suitable representation of the parameter reference.
*/
protected function getParameterCall($name) {
......
......@@ -164,7 +164,7 @@ public function word($length) {
* @param int $size
* The number of random keys to add to the object.
*
* @return \stdClass
* @return object
* The generated object, with the specified number of random keys. Each key
* has a random string value.
*/
......
......@@ -128,7 +128,7 @@ protected function getAll($prefix = '') {
*
* Checks that the item is either permanent or did not expire.
*
* @param \stdClass $cache
* @param object $cache
* An item loaded from self::get() or self::getMultiple().
* @param bool $allow_invalid
* If TRUE, a cache item may be returned even if it is expired or has been
......
......@@ -237,7 +237,7 @@ public function removeBin() {
*
* @param string $cidhash
* The hashed version of the original cache ID after being normalized.
* @param \stdClass $item
* @param object $item
* The cache item to store.
*/
protected function writeItem($cidhash, \stdClass $item) {
......
......@@ -242,7 +242,7 @@ protected function doDelete($entities) {
/**
* Implements Drupal\Core\Entity\EntityStorageInterface::save().
*
* @throws EntityMalformedException
* @throws \Drupal\Core\Entity\EntityMalformedException
* When attempting to save a configuration entity that has no ID.
*/
public function save(EntityInterface $entity) {
......
......@@ -108,7 +108,7 @@ public function isLatestRevision();
*
* @param EntityStorageInterface $storage
* The entity storage object.
* @param \stdClass $record
* @param object $record
* The revision object.
*/
public function preSaveRevision(EntityStorageInterface $storage, \stdClass $record);
......
......@@ -1060,7 +1060,7 @@ protected function saveToSharedTables(ContentEntityInterface $entity, $table_nam
* @param string $table_name
* (optional) The table name to map records to. Defaults to the base table.
*
* @return \stdClass
* @return object
* The record to store.
*/
protected function mapToStorageRecord(ContentEntityInterface $entity, $table_name = NULL) {
......@@ -1145,7 +1145,7 @@ protected function isColumnSerial($table_name, $schema_name) {
* @param string $table_name
* (optional) The table name to map records to. Defaults to the data table.
*
* @return \stdClass
* @return object
* The record to store.
*/
protected function mapToDataStorageRecord(EntityInterface $entity, $table_name = NULL) {
......
......@@ -4,7 +4,6 @@
use Drupal\Component\Serialization\SerializationInterface;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Query\Merge;
/**
* Defines a default key/value store implementation for expiring items.
......
......@@ -167,9 +167,9 @@ public function getPathFromRoute($name, $parameters = []) {
* The url path, without any base path, without the query string, not URL
* encoded.
*
* @throws MissingMandatoryParametersException
* @throws \Symfony\Component\Routing\Exception\MissingMandatoryParametersException
* When some parameters are missing that are mandatory for the route.
* @throws InvalidParameterException
* @throws \Symfony\Component\Routing\Exception\InvalidParameterException
* When a parameter value for a placeholder is not correct because it does
* not match the requirement.
*/
......
......@@ -28,7 +28,7 @@ class PharExtensionInterceptor implements Assertable {
* @return bool
* TRUE if the phar file is allowed to execute.
*
* @throws Exception
* @throws \TYPO3\PharStreamWrapper\Exception
* Thrown when the file is not allowed to execute.
*/
public function assert($path, $command) {
......
......@@ -347,7 +347,7 @@ protected function lastVisit($nid, AccountInterface $account) {
* @param int $tid
* The forum tid.
*
* @return \stdClass
* @return object
* The last post for the given forum.
*/
protected function getLastPost($tid) {
......@@ -388,7 +388,7 @@ protected function getLastPost($tid) {
* @param int $tid
* The forum tid.
*
* @return \stdClass|null
* @return object|null
* Statistics for the given forum if statistics exist, else NULL.
*/
protected function getForumStatistics($tid) {
......
......@@ -7,7 +7,6 @@
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\MigrateMessageInterface;
use Drupal\migrate\Plugin\MigrateIdMapInterface;
use Drupal\migrate\Plugin\Migration;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row;
......
......@@ -6,7 +6,6 @@
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Config\Config;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Query\SelectExtender;
use Drupal\Core\Database\StatementInterface;
use Drupal\Core\DependencyInjection\DeprecatedServicePropertyTrait;
......
......@@ -7,7 +7,6 @@
use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity;
use Drupal\Core\Database\Query\SelectInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\State\StateInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......
......@@ -6,7 +6,6 @@
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\Entity\Vocabulary;
/**
* Tests load, save and delete for taxonomy terms.
......
......@@ -10,7 +10,7 @@ interface UpdateProcessorInterface {
/**
* Claims an item in the update fetch queue for processing.
*
* @return bool|\stdClass
* @return bool|object
* On success we return an item object. If the queue is unable to claim an
* item it returns false.
*
......@@ -71,7 +71,7 @@ public function numberOfQueueItems();
/**
* Deletes a finished item from the update fetch queue.
*
* @param \stdClass $item
* @param object $item
* The item returned by \Drupal\Core\Queue\QueueInterface::claimItem().
*
* @see \Drupal\Core\Queue\QueueInterface::deleteItem()
......
......@@ -129,7 +129,7 @@ public function adminLabel($short = FALSE);
* @param bool $force_int
* Enforce a numeric check.
*
* @return \stdClass
* @return object
* A stdClass object containing value and operator properties.
*/
public static function breakString($str, $force_int = FALSE);
......
......@@ -7,7 +7,6 @@
use Drupal\KernelTests\KernelTestBase;
use Drupal\views\Tests\ViewResultAssertionTrait;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\ViewsData;
/**
* Defines a base class for Views kernel testing.
......
......@@ -231,13 +231,13 @@ public function testThemeTableResponsivePriority() {
*/
public function testThemeTableHeaderRenderArray() {
$header = [
[
[
'data' => [
'#markup' => 'one',
],
],
'two',
[
[
'data' => [
'#type' => 'html_tag',
'#tag' => 'b',
......@@ -271,13 +271,13 @@ public function testThemeTableRowRenderArray() {
'1-three',
],
[
[
[
'data' => [
'#markup' => '2-one',
],
],
'2-two',
[
[
'data' => [
'#type' => 'html_tag',
'#tag' => 'b',
......
......@@ -93,7 +93,7 @@ class DependencySerializationTestDummy implements ContainerAwareInterface {
/**
* Constructs a new TestClass object.
*
* @param \stdClass $service
* @param object $service
* A test service.
*/
public function __construct(\stdClass $service) {
......
......@@ -110,7 +110,7 @@ public function testAccessWithDifferentRouteParameters() {
/**
* Wrap any object with a route match, and return that.
*
* @param \stdClass $object
* @param object $object
* Any object, including prophesized mocks based on interfaces.
* @return \Drupal\Core\Routing\RouteMatchInterface
* A prophesized RouteMatchInterface.
......
......@@ -100,7 +100,7 @@ protected function randomMachineName($length = 8) {
* @param int $size
* The number of random keys to add to the object.
*
* @return \stdClass
* @return object
* The generated object, with the specified number of random keys. Each key
* has a random string value.
*
......
......@@ -101,9 +101,9 @@ protected function getTestFiles($type, $size = NULL) {
*
* Callback for uasort() within \TestFileCreationTrait::getTestFiles().
*
* @param \stdClass $file1
* @param object $file1
* The first file.
* @param \stdClass $file2
* @param object $file2
* The second class.
*
* @return int
......
......@@ -423,7 +423,7 @@ public function assertEscaped($raw) {
* @param string|object $text
* Text value. Any non-string value will be cast to string.
*
* @throws ExpectationException
* @throws \Behat\Mink\Exception\ExpectationException
*/
public function responseContains($text) {
parent::responseContains((string) $text);
......@@ -435,7 +435,7 @@ public function responseContains($text) {
* @param string|object $text
* Text value. Any non-string value will be cast to string.
*
* @throws ExpectationException
* @throws \Behat\Mink\Exception\ExpectationException
*/
public function responseNotContains($text) {
parent::responseNotContains((string) $text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment