Skip to content

Commit 9dbf457

Browse files
committed
Change PHP Codesniffer style so break and case need to be indented the same.
1 parent f8fb8fa commit 9dbf457

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.config/phpcs.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
<rule ref="PHPCompatibility"/>
2121
<config name="testVersion" value="8.0-"/>
2222

23+
<!-- Set indent for `break` to 0 so it aligns with `case` and `default` -->
24+
<rule ref="PSR2.ControlStructures.SwitchDeclaration">
25+
<properties><property name="indent" value="0" /></properties>
26+
</rule>
27+
2328
<!-- Include the whole PSR-12 standard -->
2429
<rule ref="PSR12">
2530
<!-- Until things have been cleaned up a bit, these violations are allowed -->

solid/lib/Controller/ServerController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ private function getResponseType() {
272272
foreach ($responseTypes as $responseType) {
273273
switch ($responseType) {
274274
case "token":
275-
return "token";
275+
return "token";
276276
break;
277277
case "code":
278-
return "code";
278+
return "code";
279279
break;
280280
}
281281
}

0 commit comments

Comments
 (0)