Completed
Pull Request — 8.x-3.x (#456)
by Philipp
03:01
created
modules/graphql_core/src/Plugin/GraphQL/Fields/Entity/EntityAccess.php 1 patch
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\Access\AccessibleInterface;
6 5
 use Drupal\Core\Entity\EntityInterface;
7 6
 use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
8 7
 use Youshido\GraphQL\Execution\ResolveInfo;
Please login to merge, or discard this patch.
modules/graphql_core/src/Plugin/GraphQL/Fields/Entity/EntityField.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Entity;
4 4
 
5 5
 use Drupal\Core\Entity\FieldableEntityInterface;
6
-use Drupal\Core\Field\Plugin\DataType\FieldItem;
7
-use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
8 6
 use Drupal\graphql\Utility\StringHelper;
9 7
 use Drupal\graphql_core\Plugin\GraphQL\Fields\EntityFieldBase;
10 8
 use Youshido\GraphQL\Execution\ResolveInfo;
Please login to merge, or discard this patch.
modules/graphql_core/src/Plugin/GraphQL/Fields/EntityFieldBase.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Drupal\Core\Field\FieldItemBase;
6 6
 use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
7
-use Youshido\GraphQL\Execution\ResolveInfo;
8 7
 
9 8
 /**
10 9
  * Base class for entity field plugins.
Please login to merge, or discard this patch.
modules/graphql_core/src/Plugin/Deriver/Fields/EntityFieldDeriver.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@
 block discarded – undo
60 60
   }
61 61
 
62 62
   /**
63
-   * @param $entityTypeId
63
+   * @param string $entityTypeId
64 64
    * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $fieldDefinition
65
-   * @return array
65
+   * @return string
66 66
    */
67 67
   protected function getParentsForField($entityTypeId, FieldStorageDefinitionInterface $fieldDefinition) {
68 68
     if ($fieldDefinition->isBaseField()) {
Please login to merge, or discard this patch.
graphql.module 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
  * The GraphQL module.
6 6
  */
7 7
 
8
-use Drupal\graphql\Utility\StringHelper;
9 8
 use Drupal\Core\Url;
10 9
 
11 10
 define('GRAPHQL_SCALAR_PLUGIN', 'scalar');
Please login to merge, or discard this patch.
src/EventSubscriber/CacheSubscriber.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 use Drupal\Core\PageCache\ResponsePolicyInterface;
13 13
 use Drupal\Core\Routing\StackedRouteMatchInterface;
14 14
 use Drupal\graphql\GraphQL\Schema\SchemaLoader;
15
-use Drupal\graphql\Plugin\GraphQL\SchemaPluginInterface;
16
-use Drupal\graphql\Plugin\GraphQL\SchemaPluginManager;
17 15
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
18 16
 use Symfony\Component\HttpFoundation\RequestStack;
19 17
 use Symfony\Component\HttpFoundation\Response;
Please login to merge, or discard this patch.
modules/graphql_core/src/Plugin/GraphQL/Fields/Entity/EntityFieldItem.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Entity;
4 4
 
5
-use Drupal\Core\Field\FieldItemBase;
6
-use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
7 5
 use Drupal\graphql_core\Plugin\GraphQL\Fields\EntityFieldBase;
8 6
 use Youshido\GraphQL\Execution\ResolveInfo;
9 7
 
Please login to merge, or discard this patch.
src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use Drupal\graphql\Plugin\GraphQL\Traits\NamedPluginTrait;
11 11
 use Drupal\graphql\Plugin\GraphQL\Traits\TypedPluginTrait;
12 12
 use Drupal\graphql\Plugin\GraphQL\TypeSystemPluginInterface;
13
-use Youshido\GraphQL\Config\Object\InputObjectTypeConfig;
14 13
 use Youshido\GraphQL\Field\Field;
15 14
 use Youshido\GraphQL\Type\TypeInterface;
16 15
 
Please login to merge, or discard this patch.
src/GraphQL/Type/ObjectType.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
 
26 26
   /**
27 27
    * {@inheritdoc}
28
+   * @param string $key
28 29
    */
29 30
   protected function getConfigValue($key, $default = NULL) {
30 31
     return !empty($this->config) ? $this->config->get($key, $default) : $default;
Please login to merge, or discard this patch.