Passed
Branch main (2cf0c7)
by Frank
10:54
created
Category
src/Rule/Between.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 #[Attribute]
10 10
 class Between implements Rule
11 11
 {
12
-    public function __construct(private float|int $largerThanOrEquals, private float|int $smallerThanOrEquals){}
12
+    public function __construct(private float | int $largerThanOrEquals, private float | int $smallerThanOrEquals) {}
13 13
 
14 14
     public function applicableToTypes(): array
15 15
     {
Please login to merge, or discard this patch.
src/Rule/BetweenExclusive.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 #[Attribute]
10 10
 class BetweenExclusive implements Rule
11 11
 {
12
-    public function __construct(private float|int $largerThan, private float|int $smallerThan){}
12
+    public function __construct(private float | int $largerThan, private float | int $smallerThan) {}
13 13
 
14 14
     public function applicableToTypes(): array
15 15
     {
Please login to merge, or discard this patch.
src/Rule/SmallerThan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 #[Attribute]
10 10
 class SmallerThan implements Rule
11 11
 {
12
-    public function __construct(private float|int $smallerThan){}
12
+    public function __construct(private float | int $smallerThan) {}
13 13
 
14 14
     public function applicableToTypes(): array
15 15
     {
Please login to merge, or discard this patch.
src/Rule/LargerThan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 #[Attribute]
10 10
 class LargerThan implements Rule
11 11
 {
12
-    public function __construct(private float|int $largerThan){}
12
+    public function __construct(private float | int $largerThan) {}
13 13
 
14 14
     public function applicableToTypes(): array
15 15
     {
Please login to merge, or discard this patch.
src/Rule/LargerThanOrEquals.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 #[Attribute]
10 10
 class LargerThanOrEquals implements Rule
11 11
 {
12
-    public function __construct(private float|int $largerThanOrEquals){}
12
+    public function __construct(private float | int $largerThanOrEquals) {}
13 13
 
14 14
     public function applicableToTypes(): array
15 15
     {
Please login to merge, or discard this patch.
src/Rule/SmallerThanOrEquals.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 #[Attribute]
10 10
 class SmallerThanOrEquals implements Rule
11 11
 {
12
-    public function __construct(private float|int $smallerThanOrEquals){}
12
+    public function __construct(private float | int $smallerThanOrEquals) {}
13 13
 
14 14
     public function applicableToTypes(): array
15 15
     {
Please login to merge, or discard this patch.
src/WithValidatedProperties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
         $validationResult = PropertyValidator::validateProperty((new ReflectionClass(static::class))->getProperty($name), $value);
44 44
         if ($validationResult->passes() === false) {
45
-            throw new ValidationException('Value "' . $value . '" for property "' . $name . '" is invalid: "' . implode('","', $validationResult->getErrors()) .  '"');
45
+            throw new ValidationException('Value "' . $value . '" for property "' . $name . '" is invalid: "' . implode('","', $validationResult->getErrors()) . '"');
46 46
         }
47 47
 
48 48
         $this->{$name} = $value;
Please login to merge, or discard this patch.
development/PHPStan/Extension/ModelProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 class ModelProperty implements PropertyReflection
12 12
 {
13
-    public function __construct(private ClassReflection $declaringClass, private Type $readableType, private Type $writableType){}
13
+    public function __construct(private ClassReflection $declaringClass, private Type $readableType, private Type $writableType) {}
14 14
 
15 15
     public function getDeclaringClass() : ClassReflection
16 16
     {
Please login to merge, or discard this patch.
development/PHPStan/Rule/NoPublicPropertiesOnModelRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function processNode(Node $node, Scope $scope): array
23 23
     {
24
-        if (in_array(Model::class, $scope->getClassReflection()?->getParentClassesNames() ?? [], true) === false) {
24
+        if (in_array(Model::class, $scope->getClassReflection() ? ->getParentClassesNames() ?? [], true) === false) {
25 25
             return [];
26 26
         }
27 27
 
Please login to merge, or discard this patch.