Skip to content

Commit 766b8f8

Browse files
authored
style(phpcs): Fix Whitespace coding standard rules from Squiz (#1060)
1 parent 73e93be commit 766b8f8

48 files changed

Lines changed: 48 additions & 23 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/graphql_composable/src/Plugin/GraphQL/SchemaExtension/ComposableSchemaExampleExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ public static function resolveResponse(ResponseInterface $response): string {
9696
}
9797
throw new \Exception('Invalid response type.');
9898
}
99+
99100
}

examples/graphql_example/src/Plugin/GraphQL/Schema/ExampleSchema.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ protected function addConnectionFields($type, ResolverRegistry $registry, Resolv
9797
})
9898
);
9999
}
100+
100101
}

examples/graphql_example/src/Plugin/GraphQL/SchemaExtension/ExampleSchemaExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ protected function addQueryFields(ResolverRegistryInterface $registry, ResolverB
5858
->map('id', $builder->fromArgument('id'))
5959
);
6060
}
61+
6162
}

phpcs.xml.dist

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@
1515
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeComma"/>
1616
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction"/>
1717
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeBrace"/>
18-
<exclude name="Squiz.WhiteSpace.FunctionSpacing.After"/>
19-
<exclude name="Squiz.WhiteSpace.FunctionSpacing.AfterLast"/>
20-
<exclude name="Squiz.WhiteSpace.FunctionSpacing.Before"/>
21-
<exclude name="Squiz.WhiteSpace.FunctionSpacing.BeforeFirst"/>
22-
<exclude name="Squiz.WhiteSpace.LanguageConstructSpacing.Incorrect"/>
23-
<exclude name="Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore"/>
24-
<exclude name="Squiz.WhiteSpace.OperatorSpacing.SpacingAfter"/>
25-
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"/>
2618
<exclude name="Drupal.Arrays.Array.CommaLastItem"/>
2719
<exclude name="Drupal.Arrays.Array.LongLineDeclaration"/>
2820
<exclude name="Drupal.Arrays.DisallowLongArraySyntax.Found"/>

src/Annotation/PersistedQuery.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ public function __construct($values) {
5151

5252
parent::__construct($values);
5353
}
54+
5455
}

src/Controller/ExplorerController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,5 @@ public function viewExplorer(ServerInterface $graphql_server, Request $request)
100100
],
101101
];
102102
}
103+
103104
}

src/Entity/Server.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,4 +530,5 @@ public static function postDelete(EntityStorageInterface $storage, array $entiti
530530
parent::postDelete($storage, $entities);
531531
\Drupal::service('router.builder')->setRebuildNeeded();
532532
}
533+
533534
}

src/Entity/ServerInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ public function getPersistedQueryInstances();
6363
* @return \Drupal\graphql\Plugin\PersistedQueryPluginInterface[]
6464
*/
6565
public function getSortedPersistedQueryInstances();
66+
6667
}

src/EventSubscriber/OperationSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function onAfterOperation(OperationEvent $event) {
7373
public static function getSubscribedEvents() {
7474
return [
7575
OperationEvent::GRAPHQL_OPERATION_BEFORE => 'onBeforeOperation',
76-
OperationEvent::GRAPHQL_OPERATION_AFTER=> 'onAfterOperation',
76+
OperationEvent::GRAPHQL_OPERATION_AFTER => 'onAfterOperation',
7777
];
7878
}
7979

src/Form/PersistedQueriesForm.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public static function create(ContainerInterface $container) {
3333
);
3434
}
3535

36-
3736
/**
3837
* {@inheritDoc}
3938
*/

0 commit comments

Comments
 (0)