Completed
Pull Request — 8.x-3.x (#670)
by Philipp
02:17
created
src/GraphQL/Cache/CacheableValue.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
    *
30 30
    * @param mixed $value
31 31
    *   The actual value to be wrapped.
32
-   * @param array $dependencies
32
+   * @param CacheableMetadata[] $dependencies
33 33
    *   An array of cache dependencies.
34 34
    */
35 35
   public function __construct($value, array $dependencies = []) {
Please login to merge, or discard this patch.
graphql_core/src/Plugin/GraphQL/Fields/Routing/InternalUrl/Alias.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Routing\InternalUrl;
4 4
 
5 5
 use Drupal\Core\DependencyInjection\DependencySerializationTrait;
6
-use Drupal\Core\Language\LanguageManagerInterface;
7 6
 use Drupal\Core\Path\AliasManagerInterface;
8 7
 use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
9 8
 use Drupal\Core\Url;
Please login to merge, or discard this patch.
graphql_core/src/Plugin/GraphQL/Fields/EntityQuery/EntityQueryEntities.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Drupal\graphql_core\Plugin\GraphQL\Fields\EntityQuery;
4 4
 
5 5
 use Drupal\Core\DependencyInjection\DependencySerializationTrait;
6
-use Drupal\Core\Entity\ContentEntityInterface;
7 6
 use Drupal\Core\Entity\EntityInterface;
8 7
 use Drupal\Core\Entity\EntityRepositoryInterface;
9 8
 use Drupal\Core\Entity\EntityTypeManagerInterface;
Please login to merge, or discard this patch.
graphql_core/src/Plugin/GraphQL/Mutations/Entity/CreateEntityBase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
    * @param \GraphQL\Type\Definition\ResolveInfo $info
108 108
    *   The resolve info object.
109 109
    *
110
-   * @return mixed
110
+   * @return EntityCrudOutputWrapper|null
111 111
    *   The output for the created entity.
112 112
    */
113 113
   protected function resolveOutput(EntityInterface $entity, array $args, ResolveInfo $info) {
Please login to merge, or discard this patch.
graphql_core/src/Plugin/GraphQL/Fields/Entity/EntityQueryExclusive.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Entity;
4 4
 
5
-use Drupal\Core\DependencyInjection\DependencySerializationTrait;
6 5
 use Drupal\Core\Entity\ContentEntityInterface;
7 6
 use Drupal\Core\Entity\Query\QueryInterface;
8 7
 use Drupal\graphql\GraphQL\Execution\ResolveContext;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
   /**
66 66
    * Apply the specified bundle filtering mode to the query.
67 67
    *
68
-   * @param \Drupal\Core\Entity\Query\QueryInterface $query
68
+   * @param QueryInterface|null $query
69 69
    *   The entity query object.
70 70
    * @param \Drupal\Core\Entity\ContentEntityInterface $value
71 71
    *   The parent entity object.
Please login to merge, or discard this patch.
graphql.module 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Drupal\Core\Cache\Cache;
4 3
 use Drupal\Core\Url;
5 4
 use Drupal\graphql\Utility\StringHelper;
6 5
 
Please login to merge, or discard this patch.
modules/graphql_core/src/Plugin/GraphQL/Fields/EntityFieldBase.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Drupal\Component\Render\MarkupInterface;
6 6
 use Drupal\Core\Entity\ContentEntityInterface;
7
-use Drupal\Core\Entity\Entity;
8
-use Drupal\Core\Entity\EntityInterface;
9 7
 use Drupal\Core\Field\FieldItemInterface;
10 8
 use Drupal\graphql\GraphQL\Execution\ResolveContext;
11 9
 use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
Please login to merge, or discard this patch.
modules/graphql_core/src/Plugin/GraphQL/Fields/Routing/RouteEntity.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,9 @@
 block discarded – undo
11 11
 use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
12 12
 use Drupal\Core\TypedData\TranslatableInterface;
13 13
 use Drupal\Core\Url;
14
-use Drupal\graphql\GraphQL\Buffers\SubRequestBuffer;
15 14
 use Drupal\graphql\GraphQL\Cache\CacheableValue;
16 15
 use Drupal\graphql\GraphQL\Execution\ResolveContext;
17 16
 use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
18
-use Symfony\Component\CssSelector\Parser\Tokenizer\TokenizerEscaping;
19 17
 use Symfony\Component\DependencyInjection\ContainerInterface;
20 18
 use GraphQL\Type\Definition\ResolveInfo;
21 19
 
Please login to merge, or discard this patch.
src/GraphQL/Execution/QueryProcessor.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
    * @param \GraphQL\Server\OperationParams $params
290 290
    * @param \GraphQL\Language\AST\DocumentNode $document
291 291
    *
292
-   * @return \GraphQL\Executor\Promise\Promise|mixed
292
+   * @return \GraphQL\Executor\Promise\Promise
293 293
    */
294 294
   protected function executeCacheableOperation(PromiseAdapter $adapter, ServerConfig $config, OperationParams $params, DocumentNode $document) {
295 295
     $contextCacheId = 'ccid:' . $this->cacheIdentifier($params, $document, new CacheableMetadata());
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
    * @param \GraphQL\Server\ServerConfig $config
420 420
    * @param \GraphQL\Server\OperationParams $params
421 421
    * @param \GraphQL\Language\AST\DocumentNode $document
422
-   * @param $operation
422
+   * @param string $operation
423 423
    *
424 424
    * @return mixed
425 425
    */
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
    * @param \GraphQL\Server\ServerConfig $config
437 437
    * @param \GraphQL\Server\OperationParams $params
438 438
    * @param \GraphQL\Language\AST\DocumentNode $document
439
-   * @param $operation
439
+   * @param string $operation
440 440
    *
441 441
    * @return mixed
442 442
    */
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
    * @param \GraphQL\Server\ServerConfig $config
454 454
    * @param \GraphQL\Server\OperationParams $params
455 455
    * @param \GraphQL\Language\AST\DocumentNode $document
456
-   * @param $operation
456
+   * @param string $operation
457 457
    *
458 458
    * @return array
459 459
    */
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,13 +2,10 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace Drupal\graphql\GraphQL\Execution;
4 4
 
5
-use Drupal\Core\Cache\CacheableDependencyInterface;
6 5
 use Drupal\Core\Cache\CacheableMetadata;
7 6
 use Drupal\Core\Cache\CacheBackendInterface;
8 7
 use Drupal\Core\Cache\Context\CacheContextsManager;
9
-use Drupal\Core\Session\AccountProxyInterface;
10 8
 use Drupal\graphql\Plugin\SchemaPluginManager;
11
-use Drupal\graphql\GraphQL\QueryProvider\QueryProviderInterface;
12 9
 use Drupal\graphql\GraphQL\Cache\CacheableRequestError;
13 10
 use GraphQL\Error\Error;
14 11
 use GraphQL\Error\FormattedError;
@@ -26,7 +23,6 @@  discard block
 block discarded – undo
26 23
 use GraphQL\Utils\AST;
27 24
 use GraphQL\Utils\TypeInfo;
28 25
 use GraphQL\Utils\Utils;
29
-use GraphQL\Validator\DocumentValidator;
30 26
 use GraphQL\Validator\Rules\AbstractValidationRule;
31 27
 use GraphQL\Validator\ValidationContext;
32 28
 
Please login to merge, or discard this patch.