Completed
Pull Request — 8.x-3.x (#414)
by Philipp
03:24 queued 59s
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.
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.
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/EntityFieldDeriver.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\Deriver\Fields;
4 4
 
5
-use Drupal\Core\Field\FieldConfigInterface;
6 5
 use Drupal\Core\Field\FieldStorageDefinitionInterface;
7 6
 use Drupal\field\FieldStorageConfigInterface;
8 7
 use Drupal\graphql\Utility\StringHelper;
Please login to merge, or discard this 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.
src/Plugin/GraphQL/PluggableSchemaBuilder.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
    * @param integer[] $types
146 146
    *   A list of type constants.
147 147
    *
148
-   * @return object The highest weighted plugin with a specific name.
148
+   * @return \object|null The highest weighted plugin with a specific name.
149 149
    *   The highest weighted plugin with a specific name.
150 150
    *
151 151
    * @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
    * @param string[] $types
175 175
    *   A list of type constants.
176 176
    *
177
-   * @return object
177
+   * @return \object|null
178 178
    *   The matching type with the highest weight.
179 179
    */
180 180
   public function findByDataType($dataType, array $types = [
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
   /**
206 206
    * Retrieve all mutations.
207 207
    *
208
-   * @return object[]
208
+   * @return \object[]
209 209
    *   The list of mutation plugins.
210 210
    */
211 211
   public function getMutations() {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
   /**
218 218
    * Retrieve all fields that are not associated with a specific type.
219 219
    *
220
-   * @return object[]
220
+   * @return \object[]
221 221
    *   The list root field plugins.
222 222
    */
223 223
   public function getRootFields() {
Please login to merge, or discard this patch.
src/Plugin/GraphQL/SchemaPluginManager.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -50,6 +50,7 @@
 block discarded – undo
50 50
 
51 51
   /**
52 52
    * {@inheritdoc}
53
+   * @param string $pluginId
53 54
    */
54 55
   public function createInstance($pluginId, array $configuration = []) {
55 56
     if (!array_key_exists($pluginId, $this->instances)) {
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.