Completed
Pull Request — 8.x-3.x (#821)
by Sebastian
02:18
created
src/Entity/Server.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
    *   The schema plugin instance.
234 234
    * @param array $config
235 235
    *
236
-   * @return mixed|callable
236
+   * @return \Closure
237 237
    *   The context object for query execution or a callable factory.
238 238
    */
239 239
   protected function getContext(SchemaPluginInterface $schema, array $config) {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
    *
289 289
    * @see \GraphQL\Error\FormattedError::prepareFormatter
290 290
    *
291
-   * @return mixed|callable
291
+   * @return \Closure
292 292
    *   The error formatter.
293 293
    */
294 294
   protected function getErrorFormatter() {
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
    *
308 308
    * @see \GraphQL\Executor\ExecutionResult::toArray
309 309
    *
310
-   * @return mixed|callable
310
+   * @return \Closure
311 311
    *   The error handler.
312 312
    */
313 313
   protected function getErrorHandler() {
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
    *
322 322
    * Returns a callable for loading persisted queries.
323 323
    *
324
-   * @return callable
324
+   * @return \Closure
325 325
    *   The persisted query loader.
326 326
    */
327 327
   protected function getPersistedQueryLoader() {
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
    *
356 356
    * @endcode
357 357
    *
358
-   * @return array|callable
358
+   * @return \Closure
359 359
    *   The validation rules or a callable factory.
360 360
    */
361 361
   protected function getValidationRules() {
Please login to merge, or discard this patch.
src/GraphQL/Execution/Executor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
    * @param $root
157 157
    * @param $variables
158 158
    * @param $operation
159
-   * @param $resolver
159
+   * @param callable $resolver
160 160
    *
161 161
    * @return \Drupal\graphql\GraphQL\Execution\Executor
162 162
    */
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
   /**
295 295
    * @param string $prefix
296 296
    *
297
-   * @return \GraphQL\Executor\ExecutionResult|null
297
+   * @return ExecutionResult|null
298 298
    */
299 299
   protected function cacheRead($prefix) {
300 300
     if (($cache = $this->cacheBackend->get("contexts:$prefix"))) {
Please login to merge, or discard this patch.
src/GraphQL/Resolver/Context.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
    * Context constructor.
28 28
    *
29 29
    * @param $name
30
-   * @param null $default
30
+   * @param callable|null $default
31 31
    */
32 32
   public function __construct($name, $default = NULL) {
33 33
     $this->name = $name;
Please login to merge, or discard this patch.
src/GraphQL/ResolverBuilder.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
   use DataFetcherTrait;
24 24
 
25 25
   /**
26
-   * @param $id
26
+   * @param string $id
27 27
    * @param $config
28 28
    *
29 29
    * @return \Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerProxy
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
   }
34 34
 
35 35
   /**
36
-   * @param \Drupal\graphql\GraphQL\Resolver\ResolverInterface[] $resolvers
36
+   * @param DataProducerProxy $resolvers
37 37
    *
38 38
    * @return \Drupal\graphql\GraphQL\Resolver\Composite
39 39
    */
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
   }
110 110
 
111 111
   /**
112
-   * @param $name
112
+   * @param string $name
113 113
    *
114 114
    * @return \Drupal\graphql\GraphQL\Resolver\Argument
115 115
    */
Please login to merge, or discard this patch.
src/Plugin/GraphQL/DataProducer/Entity/EntityLabel.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,7 @@
 block discarded – undo
3 3
 namespace Drupal\graphql\Plugin\GraphQL\DataProducer\Entity;
4 4
 
5 5
 use Drupal\Core\Entity\EntityInterface;
6
-use Drupal\graphql\GraphQL\Execution\ResolveContext;
7 6
 use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
8
-use GraphQL\Type\Definition\ResolveInfo;
9 7
 
10 8
 /**
11 9
  * @DataProducer(
Please login to merge, or discard this patch.
src/Plugin/GraphQL/DataProducer/Entity/EntityLoadByUuid.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Drupal\graphql\Plugin\GraphQL\DataProducer\Entity;
4 4
 
5
-use Drupal\Core\Cache\RefinableCacheableDependencyInterface;
6 5
 use Drupal\Core\Entity\EntityRepositoryInterface;
7 6
 use Drupal\Core\Entity\EntityTypeManager;
8 7
 use Drupal\Core\Entity\TranslatableInterface;
9 8
 use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
10
-use Drupal\graphql\GraphQL\Buffers\EntityBuffer;
11 9
 use Drupal\graphql\GraphQL\Buffers\EntityUuidBuffer;
12 10
 use Drupal\graphql\GraphQL\Execution\FieldContext;
13 11
 use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase;
Please login to merge, or discard this patch.
src/Plugin/GraphQL/DataProducer/Field/EntityReference.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\Plugin\GraphQL\DataProducer\Field;
4 4
 
5
-use Drupal\Core\Cache\RefinableCacheableDependencyInterface;
6 5
 use Drupal\Core\Entity\EntityInterface;
7 6
 use Drupal\Core\Entity\EntityRepositoryInterface;
8 7
 use Drupal\Core\Entity\EntityTypeManager;
Please login to merge, or discard this patch.
src/Plugin/GraphQL/DataProducer/Routing/RouteEntity.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\Plugin\GraphQL\DataProducer\Routing;
4 4
 
5
-use Drupal\Core\Cache\RefinableCacheableDependencyInterface;
6 5
 use Drupal\Core\DependencyInjection\DependencySerializationTrait;
7 6
 use Drupal\Core\Entity\EntityTypeManagerInterface;
8 7
 use Drupal\Core\Entity\TranslatableInterface;
Please login to merge, or discard this patch.
src/Plugin/GraphQL/DataProducer/String/Uppercase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
   /**
25 25
    * @param $string
26 26
    *
27
-   * @return mixed
27
+   * @return string
28 28
    */
29 29
   public function resolve($string) {
30 30
     return strtoupper($string);
Please login to merge, or discard this patch.