Skip to content

Commit 68d9765

Browse files
authored
A few function comment rules and doc comment rules removed (#1066)
1 parent 82327b0 commit 68d9765

22 files changed

Lines changed: 46 additions & 41 deletions

graphql.install

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @file
5+
* Install, update and uninstall functions for the GraphQL module.
6+
*/
7+
38
/**
49
* Implements hook_requirements().
510
*/

graphql.module

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @file
5+
* Primary module hooks for GraphQL module.
6+
*/
7+
38
/**
49
* Implements hook_help().
510
*/

phpcs.xml.dist

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,10 @@
2828
<exclude name="Drupal.Commenting.DocComment.ParamGroup"/>
2929
<exclude name="Drupal.Commenting.DocComment.ShortFullStop"/>
3030
<exclude name="Drupal.Commenting.DocComment.SpacingAfter"/>
31-
<exclude name="Drupal.Commenting.DocComment.SpacingBeforeTags"/>
32-
<exclude name="Drupal.Commenting.DocComment.TagGroupSpacing"/>
33-
<exclude name="Drupal.Commenting.DocCommentAlignment.SpaceBeforeStar"/>
34-
<exclude name="Drupal.Commenting.FileComment.Missing"/>
35-
<exclude name="Drupal.Commenting.FunctionComment.IncorrectParamVarName"/>
36-
<exclude name="Drupal.Commenting.FunctionComment.IncorrectTypeHint"/>
37-
<exclude name="Drupal.Commenting.FunctionComment.InvalidNoReturn"/>
38-
<exclude name="Drupal.Commenting.FunctionComment.InvalidReturn"/>
3931
<exclude name="Drupal.Commenting.FunctionComment.MissingParamComment"/>
4032
<exclude name="Drupal.Commenting.FunctionComment.MissingParamType"/>
4133
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment"/>
34+
<exclude name="Drupal.Commenting.FunctionComment.InvalidNoReturn"/>
4235
</rule>
4336

4437
</ruleset>

src/GraphQL/Execution/FieldContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function getContextValue($name) {
9797
* @param string $name
9898
* The name of the context.
9999
*
100-
* @return boolean
100+
* @return bool
101101
* TRUE if the context exists, FALSE Otherwise.
102102
*/
103103
public function hasContextValue($name) {

src/GraphQL/Execution/ResolveContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function getContextValue(ResolveInfo $info, $name) {
177177
* @param string $name
178178
* The name of the context.
179179
*
180-
* @return boolean
180+
* @return bool
181181
* TRUE if the context exists, FALSE Otherwise.
182182
*/
183183
public function hasContextValue(ResolveInfo $info, $name) {

src/GraphQL/Resolver/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Context implements ResolverInterface {
2727
* Context constructor.
2828
*
2929
* @param $name
30-
* @param NULL $default
30+
* @param $default
3131
*/
3232
public function __construct($name, $default = NULL) {
3333
$this->name = $name;

src/GraphQL/Resolver/Path.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Path implements ResolverInterface {
4646
*
4747
* @param $type
4848
* @param $path
49-
* @param \Drupal\graphql\GraphQL\Resolver\ResolverInterface|NULL $value
49+
* @param \Drupal\graphql\GraphQL\Resolver\ResolverInterface|null $value
5050
*/
5151
public function __construct($type, $path, ResolverInterface $value = NULL) {
5252
$this->type = $type;

src/GraphQL/Resolver/SourceContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SourceContext implements ResolverInterface {
2626
* SourceContext constructor.
2727
*
2828
* @param $name
29-
* @param \Drupal\graphql\GraphQL\Resolver\ResolverInterface|NULL $source
29+
* @param \Drupal\graphql\GraphQL\Resolver\ResolverInterface|null $source
3030
*/
3131
public function __construct($name, ResolverInterface $source = NULL) {
3232
$this->name = $name;

src/GraphQL/ResolverBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function produce($id, $config = []) {
3434
}
3535

3636
/**
37-
* @param \Drupal\graphql\GraphQL\Resolver\ResolverInterface[] $resolvers
37+
* @param \Drupal\graphql\GraphQL\Resolver\ResolverInterface[]|array $resolvers
3838
*
3939
* @return \Drupal\graphql\GraphQL\Resolver\Composite
4040
*/

src/Plugin/GraphQL/DataProducer/DataProducerProxy.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public function cached($cached = TRUE) {
142142
* @param \Drupal\graphql\GraphQL\Execution\FieldContext $field
143143
*
144144
* @return mixed
145+
*
145146
* @throws \Drupal\Component\Plugin\Exception\PluginException
146147
*/
147148
public function resolve($value, $args, ResolveContext $context, ResolveInfo $info, FieldContext $field) {

0 commit comments

Comments
 (0)