Completed
Pull Request — 8.x-3.x (#399)
by Philipp
02:23
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_link/src/Plugin/GraphQL/Fields/LinkAttribute.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Drupal\graphql_link\Plugin\GraphQL\Fields;
4 4
 
5
-use Drupal\Component\Utility\NestedArray;
6
-use Drupal\link\LinkItemInterface;
7
-use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
5
+use Drupal\Component\Utility\NestedArray;
6
+use Drupal\link\LinkItemInterface;
7
+use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
8 8
 use Youshido\GraphQL\Execution\ResolveInfo;
9 9
 
10 10
 /**
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
@@ -4,7 +4,6 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Drupal\Core\Cache\Cache;
6 6
 use Drupal\Core\Cache\CacheableDependencyInterface;
7
-use Drupal\Core\Cache\CacheableMetadata;
8 7
 use Drupal\Core\Cache\CacheableResponseInterface;
9 8
 use Drupal\Core\Cache\CacheBackendInterface;
10 9
 use Drupal\Core\Cache\Context\CacheContextsManager;
@@ -13,7 +12,6 @@  discard block
 block discarded – undo
13 12
 use Drupal\Core\Routing\StackedRouteMatchInterface;
14 13
 use Drupal\graphql\GraphQL\Schema\SchemaLoader;
15 14
 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.
src/Plugin/GraphQL/InputTypes/InputTypePluginBase.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\Plugin\GraphQL\InputTypes;
4 4
 
5 5
 use Drupal\Component\Plugin\PluginInspectionInterface;
6
-use Drupal\Core\Cache\CacheableDependencyInterface;
7 6
 use Drupal\graphql\Plugin\GraphQL\PluggableSchemaManagerInterface;
8 7
 use Drupal\graphql\Plugin\GraphQL\Traits\CacheablePluginTrait;
9 8
 use Drupal\graphql\Plugin\GraphQL\Traits\NamedPluginTrait;
Please login to merge, or discard this patch.
modules/graphql_core/src/Plugin/Deriver/Fields/EntityByIdDeriver.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Drupal\Core\Entity\EntityTypeManagerInterface;
8 8
 use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
9 9
 use Drupal\graphql\Utility\StringHelper;
10
-use Drupal\graphql_content\ContentEntitySchemaConfig;
11 10
 use Symfony\Component\DependencyInjection\ContainerInterface;
12 11
 
13 12
 /**
Please login to merge, or discard this patch.
modules/graphql_core/src/Plugin/Deriver/Fields/ViewDeriver.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
    *
61 61
    * @param array $arguments
62 62
    *   The array of available arguments.
63
-   * @param $id
63
+   * @param string $id
64 64
    *   The plugin derivative id.
65 65
    *
66 66
    * @return array
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
   /**
84 84
    * Helper function to retrieve the sort arguments if any are exposed.
85 85
    *
86
-   * @param \Drupal\views\Plugin\views\display\DisplayPluginInterface $display
86
+   * @param \Drupal\graphql\Plugin\views\display\GraphQL $display
87 87
    *   The display plugin.
88
-   * @param $id
88
+   * @param string $id
89 89
    *   The plugin derivative id.
90 90
    *
91 91
    * @return array
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
   /**
119 119
    * Helper function to return the filter argument if applicable.
120 120
    *
121
-   * @param \Drupal\views\Plugin\views\display\DisplayPluginInterface $display
121
+   * @param \Drupal\graphql\Plugin\views\display\GraphQL $display
122 122
    *   The display plugin.
123
-   * @param $id
123
+   * @param string $id
124 124
    *   The plugin derivative id.
125 125
    *
126 126
    * @return array
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
   /**
144 144
    * Helper function to retrieve the pager arguments if the display is paged.
145 145
    *
146
-   * @param \Drupal\views\Plugin\views\display\DisplayPluginInterface $display
146
+   * @param \Drupal\graphql\Plugin\views\display\GraphQL $display
147 147
    *   The display plugin.
148 148
    *
149 149
    * @return array
Please login to merge, or discard this patch.
modules/graphql_core/src/Plugin/Deriver/Fields/ViewResultCountDeriver.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\Deriver\Fields;
4 4
 
5
-use Drupal\graphql\Utility\StringHelper;
6 5
 use Drupal\graphql_core\Plugin\Deriver\ViewDeriverBase;
7 6
 use Drupal\views\Views;
8 7
 
Please login to merge, or discard this patch.