Passed
Push — main ( 973bee...d57b17 )
by Anatoly
01:56 queued 12s
created
tests/ObjectCollectionTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $this->expectException(RuntimeException::class);
44 44
         $this->expectExceptionMessage('The ' . Fixtures\UntypedCollection::class . ' collection ' .
45
-                                      'must contain the T constant.');
45
+                                        'must contain the T constant.');
46 46
 
47 47
         $collection->add(0, new Fixtures\Bar());
48 48
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         $this->expectException(InvalidArgumentException::class);
55 55
         $this->expectExceptionMessage('The ' . Fixtures\BarCollection::class . ' collection ' .
56
-                                      'can contain the ' . Fixtures\Bar::class . ' objects only.');
56
+                                        'can contain the ' . Fixtures\Bar::class . ' objects only.');
57 57
 
58 58
         $collection->add(0, new Fixtures\Foo());
59 59
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $collection = new Fixtures\UntypedCollection();
42 42
 
43 43
         $this->expectException(RuntimeException::class);
44
-        $this->expectExceptionMessage('The ' . Fixtures\UntypedCollection::class . ' collection ' .
44
+        $this->expectExceptionMessage('The '.Fixtures\UntypedCollection::class.' collection '.
45 45
                                       'must contain the T constant.');
46 46
 
47 47
         $collection->add(0, new Fixtures\Bar());
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
         $collection = new Fixtures\BarCollection();
53 53
 
54 54
         $this->expectException(InvalidArgumentException::class);
55
-        $this->expectExceptionMessage('The ' . Fixtures\BarCollection::class . ' collection ' .
56
-                                      'can contain the ' . Fixtures\Bar::class . ' objects only.');
55
+        $this->expectExceptionMessage('The '.Fixtures\BarCollection::class.' collection '.
56
+                                      'can contain the '.Fixtures\Bar::class.' objects only.');
57 57
 
58 58
         $collection->add(0, new Fixtures\Foo());
59 59
     }
Please login to merge, or discard this patch.
tests/fixtures/ObjectWithUnionPropertyType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 final class ObjectWithUnionPropertyType
8 8
 {
9
-    public int|float $value;
9
+    public int | float $value;
10 10
 }
Please login to merge, or discard this patch.
tests/HydratorTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $this->expectException(InvalidArgumentException::class);
66 66
         $this->expectExceptionMessage('The method ' . Hydrator::class . '::hydrate() ' .
67
-                                      'expects an object or name of an existing class.');
67
+                                        'expects an object or name of an existing class.');
68 68
 
69 69
         (new Hydrator)->hydrate('Undefined', []);
70 70
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $this->expectException(InvalidArgumentException::class);
75 75
         $this->expectExceptionMessage('The object ' . Fixtures\UninitializableObject::class . ' ' .
76
-                                      'cannot be hydrated because its constructor has required parameters.');
76
+                                        'cannot be hydrated because its constructor has required parameters.');
77 77
 
78 78
         (new Hydrator)->hydrate(Fixtures\UninitializableObject::class, []);
79 79
     }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $this->expectException(Exception\UnsupportedPropertyTypeException::class);
109 109
         $this->expectExceptionMessage('The ObjectWithUnsupportedPropertyType.value property ' .
110
-                                      'contains an unsupported type iterable.');
110
+                                        'contains an unsupported type iterable.');
111 111
 
112 112
         (new Hydrator)->hydrate(Fixtures\ObjectWithUnsupportedPropertyType::class, [
113 113
             'value' => 'b25c08e8-4771-42c0-b01b-fe7fd3689602',
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
         $this->expectException(Exception\UnsupportedPropertyTypeException::class);
125 125
         $this->expectExceptionMessage('The ObjectWithUnionPropertyType.value property ' .
126
-                                      'contains an union type that is not supported.');
126
+                                        'contains an union type that is not supported.');
127 127
 
128 128
         (new Hydrator)->hydrate(Fixtures\ObjectWithUnionPropertyType::class, []);
129 129
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     {
133 133
         $this->expectException(Exception\MissingRequiredValueException::class);
134 134
         $this->expectExceptionMessage('The ObjectWithRequiredProperty.value property ' .
135
-                                      'is required.');
135
+                                        'is required.');
136 136
 
137 137
         try {
138 138
             (new Hydrator)->hydrate(Fixtures\ObjectWithRequiredProperty::class, []);
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     {
283 283
         $this->expectException(Exception\InvalidValueException::class);
284 284
         $this->expectExceptionMessage('The ObjectWithTimestampProperty.value property ' .
285
-                                      'accepts a valid date-time string or a timestamp only.');
285
+                                        'accepts a valid date-time string or a timestamp only.');
286 286
 
287 287
         (new Hydrator)->hydrate(Fixtures\ObjectWithTimestampProperty::class, [
288 288
             'value' => [],
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function testHydrateUndefinedObject() : void
64 64
     {
65 65
         $this->expectException(InvalidArgumentException::class);
66
-        $this->expectExceptionMessage('The method ' . Hydrator::class . '::hydrate() ' .
66
+        $this->expectExceptionMessage('The method '.Hydrator::class.'::hydrate() '.
67 67
                                       'expects an object or name of an existing class.');
68 68
 
69 69
         (new Hydrator)->hydrate('Undefined', []);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     public function testHydrateUninitializableObject() : void
73 73
     {
74 74
         $this->expectException(InvalidArgumentException::class);
75
-        $this->expectExceptionMessage('The object ' . Fixtures\UninitializableObject::class . ' ' .
75
+        $this->expectExceptionMessage('The object '.Fixtures\UninitializableObject::class.' '.
76 76
                                       'cannot be hydrated because its constructor has required parameters.');
77 77
 
78 78
         (new Hydrator)->hydrate(Fixtures\UninitializableObject::class, []);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     public function testUnsupportedPropertyType() : void
107 107
     {
108 108
         $this->expectException(Exception\UnsupportedPropertyTypeException::class);
109
-        $this->expectExceptionMessage('The ObjectWithUnsupportedPropertyType.value property ' .
109
+        $this->expectExceptionMessage('The ObjectWithUnsupportedPropertyType.value property '.
110 110
                                       'contains an unsupported type iterable.');
111 111
 
112 112
         (new Hydrator)->hydrate(Fixtures\ObjectWithUnsupportedPropertyType::class, [
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         }
123 123
 
124 124
         $this->expectException(Exception\UnsupportedPropertyTypeException::class);
125
-        $this->expectExceptionMessage('The ObjectWithUnionPropertyType.value property ' .
125
+        $this->expectExceptionMessage('The ObjectWithUnionPropertyType.value property '.
126 126
                                       'contains an union type that is not supported.');
127 127
 
128 128
         (new Hydrator)->hydrate(Fixtures\ObjectWithUnionPropertyType::class, []);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     public function testRequiredProperty() : void
132 132
     {
133 133
         $this->expectException(Exception\MissingRequiredValueException::class);
134
-        $this->expectExceptionMessage('The ObjectWithRequiredProperty.value property ' .
134
+        $this->expectExceptionMessage('The ObjectWithRequiredProperty.value property '.
135 135
                                       'is required.');
136 136
 
137 137
         try {
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
     public function testHydratePropertyWithInvalidTimestamp() : void
282 282
     {
283 283
         $this->expectException(Exception\InvalidValueException::class);
284
-        $this->expectExceptionMessage('The ObjectWithTimestampProperty.value property ' .
284
+        $this->expectExceptionMessage('The ObjectWithTimestampProperty.value property '.
285 285
                                       'accepts a valid date-time string or a timestamp only.');
286 286
 
287 287
         (new Hydrator)->hydrate(Fixtures\ObjectWithTimestampProperty::class, [
Please login to merge, or discard this patch.