Skip to content

Commit f8d403b

Browse files
authored
style(phpcs): Fix white space and test method naming coding standards (#1061)
1 parent 766b8f8 commit f8d403b

28 files changed

Lines changed: 41 additions & 34 deletions

examples/graphql_example/src/Plugin/GraphQL/DataProducer/QueryArticles.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,5 @@ public function resolve($offset, $limit, RefinableCacheableDependencyInterface $
105105

106106
return new QueryConnection($query);
107107
}
108-
}
108+
109+
}

examples/graphql_example/src/Wrappers/QueryConnection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ public function items() {
4545
return $callback();
4646
});
4747
}
48-
}
48+
49+
}

graphql.libraries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ persisted_queries:
3232
dependencies:
3333
- core/drupal
3434
- core/jquery
35-
- core/jquery.once
35+
- core/jquery.once

phpcs.xml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@
5555
<exclude name="Drupal.Commenting.VariableComment.IncorrectVarType"/>
5656
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
5757
<exclude name="Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace"/>
58-
<exclude name="Drupal.Files.EndFileNewline.NoneFound"/>
59-
<exclude name="Drupal.Files.EndFileNewline.TooMany"/>
60-
<exclude name="Drupal.Files.LineLength.TooLong"/>
61-
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
6258
</rule>
6359

6460
</ruleset>

src/Cache/Context/StaticCacheContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ public function getCacheableMetadata($parameter = NULL) {
2828
return new CacheableMetadata();
2929
}
3030

31-
}
31+
}

src/Config/LanguageConfigOverride.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ public function getCacheableMetadata($name) {
8484
return new CacheableMetadata();
8585
}
8686

87-
}
87+
}

src/Event/OperationEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ public function getContext() {
5757
return $this->context;
5858
}
5959

60-
}
60+
}

src/EventSubscriber/CurrentLanguageResetTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ protected function resetLanguageContext() {
5252
}
5353
}
5454

55-
}
55+
}

src/GraphQL/Buffers/BufferBase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,5 @@ protected function resolveBuffer(\SplObjectStorage $buffer) {
145145
protected function resolveBufferArray(array $buffer) {
146146
throw new \LogicException('Method not implemented.');
147147
}
148-
}
148+
149+
}

src/GraphQL/Execution/Executor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ protected function cachePrefix() {
267267
// TODO: Should we try to sort these recursively?
268268
$variables = $this->variables ?: [];
269269
ksort($variables);
270-
// TODO: Should we submit a pull request to also pass the extensions in the executor?
270+
// TODO: Should we submit a pull request to also pass the extensions in the
271+
// executor?
271272
$extensions = $this->context->getOperation()->extensions ?: [];
272273
ksort($extensions);
273274

0 commit comments

Comments
 (0)