Skip to content

Commit de5fd48

Browse files
author
Simon
committed
updated phpcs
1 parent f53f639 commit de5fd48

2 files changed

Lines changed: 20 additions & 29 deletions

File tree

phpcs.xml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<ruleset name="pcsg-generated-ruleset">
3-
<description>Created with the PHP Coding Standard Generator. http://edorian.github.com/php-coding-standard-generator/
4-
</description>
2+
<ruleset name="Project Standard">
3+
<description>PSR-12 + focused Generic/Squiz rules</description>
4+
5+
<arg name="colors" value="1"/>
6+
<arg name="parallel" value="80"/>
7+
8+
<fileExtensions>
9+
<extension>php</extension>
10+
</fileExtensions>
11+
<exclude-pattern>vendor/*</exclude-pattern>
12+
<exclude-pattern>var/*</exclude-pattern>
13+
<exclude-pattern>build/*</exclude-pattern>
14+
<exclude-pattern>coverage/*</exclude-pattern>
15+
16+
<rule ref="PSR12"/>
517
<rule ref="Generic.Classes.DuplicateClassName"/>
618
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
719
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
@@ -19,11 +31,6 @@
1931
</properties>
2032
</rule>
2133
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
22-
<rule ref="Generic.Formatting.MultipleStatementAlignment">
23-
<properties>
24-
<property name="ignoreMultiLine" value="true"/>
25-
</properties>
26-
</rule>
2734
<rule ref="Generic.Formatting.SpaceAfterCast"/>
2835
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
2936
<rule ref="Generic.Metrics.NestingLevel">
@@ -40,22 +47,6 @@
4047
<rule ref="Generic.Strings.UnnecessaryStringConcat"/>
4148
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
4249
<rule ref="Generic.WhiteSpace.ScopeIndent"/>
43-
<rule ref="MySource.PHP.EvalObjectFactory"/>
44-
<rule ref="PEAR.Commenting.InlineComment"/>
45-
<rule ref="PEAR.ControlStructures.ControlSignature"/>
46-
<rule ref="PEAR.NamingConventions.ValidClassName"/>
47-
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/>
48-
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
49-
<rule ref="PSR1.Classes.ClassDeclaration"/>
50-
<rule ref="PSR1.Files.SideEffects"/>
51-
<rule ref="PSR2.Classes.ClassDeclaration"/>
52-
<rule ref="PSR2.Classes.PropertyDeclaration"/>
53-
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
54-
<rule ref="PSR2.ControlStructures.SwitchDeclaration"/>
55-
<rule ref="PSR2.Files.EndFileNewline"/>
56-
<rule ref="PSR2.Methods.MethodDeclaration"/>
57-
<rule ref="PSR2.Namespaces.NamespaceDeclaration"/>
58-
<rule ref="PSR2.Namespaces.UseDeclaration"/>
5950
<rule ref="Squiz.PHP.DisallowMultipleAssignments"/>
6051
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/>
6152
<rule ref="Squiz.PHP.Eval"/>

src/Resource/Search/SearchResult.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public static function createFromResponse(ResponseInterface $response): self {
4040
}
4141

4242
return new self(
43-
$response->size,
44-
$response->totalPages,
45-
$response->totalElements,
46-
$response->number,
47-
$details,
43+
size: $response->size,
44+
totalPages: $response->totalPages,
45+
totalElements: $response->totalElements,
46+
number: $response->number,
47+
details: $details,
4848
);
4949
}
5050

0 commit comments

Comments
 (0)