Completed
Push — master ( 0e78db...3af8bc )
by Marco
18s queued 11s
created
src/DetectChanges/BCBreak/FunctionBased/ReturnTypeChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
     private function typeToString(?ReflectionType $type) : string
76 76
     {
77
-        if (! $type) {
77
+        if (!$type) {
78 78
             return 'no type';
79 79
         }
80 80
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/TraitBased/TraitBecameInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 {
18 18
     public function __invoke(ReflectionClass $fromTrait, ReflectionClass $toTrait) : Changes
19 19
     {
20
-        if ($toTrait->isTrait() || ! $toTrait->isInterface() || ! $fromTrait->isTrait()) {
20
+        if ($toTrait->isTrait() || !$toTrait->isInterface() || !$fromTrait->isTrait()) {
21 21
             return Changes::empty();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/TraitBased/TraitBecameClass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 {
18 18
     public function __invoke(ReflectionClass $fromTrait, ReflectionClass $toTrait) : Changes
19 19
     {
20
-        if ($this->isClass($fromTrait) || ! $this->isClass($toTrait)) {
20
+        if ($this->isClass($fromTrait) || !$this->isClass($toTrait)) {
21 21
             return Changes::empty();
22 22
         }
23 23
 
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
      */
33 33
     private function isClass(ReflectionClass $class) : bool
34 34
     {
35
-        return ! ($class->isTrait() || $class->isInterface());
35
+        return !($class->isTrait() || $class->isInterface());
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/PropertyBased/OnlyProtectedPropertyChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function __invoke(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes
21 21
     {
22
-        if (! $fromProperty->isProtected()) {
22
+        if (!$fromProperty->isProtected()) {
23 23
             return Changes::empty();
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/PropertyBased/OnlyPublicPropertyChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function __invoke(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes
21 21
     {
22
-        if (! $fromProperty->isPublic()) {
22
+        if (!$fromProperty->isPublic()) {
23 23
             return Changes::empty();
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/DetectChanges/Variance/TypeIsContravariant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             return false;
30 30
         }
31 31
 
32
-        if ($type->allowsNull() && ! $comparedType->allowsNull()) {
32
+        if ($type->allowsNull() && !$comparedType->allowsNull()) {
33 33
             return false;
34 34
         }
35 35
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             return true;
46 46
         }
47 47
 
48
-        if (strtolower($comparedTypeAsString) === 'object' && ! $type->isBuiltin()) {
48
+        if (strtolower($comparedTypeAsString) === 'object' && !$type->isBuiltin()) {
49 49
             // `object` is always contravariant to any object type
50 50
             return true;
51 51
         }
Please login to merge, or discard this patch.
src/SourceLocator/StubClassSourceLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     protected function createLocatedSource(Identifier $identifier) : ?LocatedSource
36 36
     {
37
-        if (! $identifier->isClass()) {
37
+        if (!$identifier->isClass()) {
38 38
             return null;
39 39
         }
40 40
 
Please login to merge, or discard this patch.
test/e2e/Command/AssertBackwardsCompatibleTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
             (new Process('git add -A', $this->sourcesRepository))->mustRun();
121 121
             (new Process(sprintf('git commit -am "Class sources v%d"', $key + 1), $this->sourcesRepository))->mustRun();
122 122
             $this->versions[$key] = trim((new Process('git rev-parse HEAD', $this->sourcesRepository))->mustRun()
123
-                                                                                                      ->getOutput());
123
+                                                                                                        ->getOutput());
124 124
         }
125 125
     }
126 126
 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -121,20 +121,20 @@  discard block
 block discarded – undo
121 121
 
122 122
         unlink($this->sourcesRepository);
123 123
         mkdir($this->sourcesRepository);
124
-        mkdir($this->sourcesRepository . '/src');
124
+        mkdir($this->sourcesRepository.'/src');
125 125
 
126 126
         self::assertDirectoryExists($this->sourcesRepository);
127
-        self::assertDirectoryExists($this->sourcesRepository . '/src');
127
+        self::assertDirectoryExists($this->sourcesRepository.'/src');
128 128
 
129 129
         (new Process('git init', $this->sourcesRepository))->mustRun();
130 130
 
131
-        file_put_contents($this->sourcesRepository . '/composer.json', self::COMPOSER_MANIFEST);
131
+        file_put_contents($this->sourcesRepository.'/composer.json', self::COMPOSER_MANIFEST);
132 132
 
133 133
         (new Process('git add -A', $this->sourcesRepository))->mustRun();
134 134
         (new Process('git commit -am "Initial commit with composer manifest"', $this->sourcesRepository))->mustRun();
135 135
 
136 136
         foreach (self::CLASS_VERSIONS as $key => $classCode) {
137
-            file_put_contents($this->sourcesRepository . '/src/TheClass.php', $classCode);
137
+            file_put_contents($this->sourcesRepository.'/src/TheClass.php', $classCode);
138 138
 
139 139
             (new Process('git add -A', $this->sourcesRepository))->mustRun();
140 140
             (new Process(sprintf('git commit -am "Class sources v%d"', $key + 1), $this->sourcesRepository))->mustRun();
@@ -159,9 +159,9 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $check = new Process(
161 161
             [
162
-                __DIR__ . '/../../../bin/roave-backward-compatibility-check',
163
-                '--from=' . $this->versions[0],
164
-                '--to=' . $this->versions[1],
162
+                __DIR__.'/../../../bin/roave-backward-compatibility-check',
163
+                '--from='.$this->versions[0],
164
+                '--to='.$this->versions[1],
165 165
             ],
166 166
             $this->sourcesRepository
167 167
         );
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     public function testWillNotRunWithoutTagsNorSpecifiedVersions() : void
182 182
     {
183 183
         $check = new Process(
184
-            __DIR__ . '/../../../bin/roave-backward-compatibility-check',
184
+            __DIR__.'/../../../bin/roave-backward-compatibility-check',
185 185
             $this->sourcesRepository
186 186
         );
187 187
 
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
     {
197 197
         $check = new Process(
198 198
             [
199
-                __DIR__ . '/../../../bin/roave-backward-compatibility-check',
200
-                '--from=' . $this->versions[0],
201
-                '--to=' . $this->versions[3],
199
+                __DIR__.'/../../../bin/roave-backward-compatibility-check',
200
+                '--from='.$this->versions[0],
201
+                '--to='.$this->versions[3],
202 202
                 '-vvv',
203 203
             ],
204 204
             $this->sourcesRepository
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
 
220 220
         $check = new Process(
221 221
             [
222
-                __DIR__ . '/../../../bin/roave-backward-compatibility-check',
223
-                '--to=' . $this->versions[2],
222
+                __DIR__.'/../../../bin/roave-backward-compatibility-check',
223
+                '--to='.$this->versions[2],
224 224
             ],
225 225
             $this->sourcesRepository
226 226
         );
@@ -248,8 +248,8 @@  discard block
 block discarded – undo
248 248
 
249 249
         $check = new Process(
250 250
             [
251
-                __DIR__ . '/../../../bin/roave-backward-compatibility-check',
252
-                '--to=' . $this->versions[2],
251
+                __DIR__.'/../../../bin/roave-backward-compatibility-check',
252
+                '--to='.$this->versions[2],
253 253
             ],
254 254
             $this->sourcesRepository
255 255
         );
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
                 'tag',
288 288
                 $tagName,
289 289
                 '-m',
290
-                'A tag for version ' . $version,
290
+                'A tag for version '.$version,
291 291
             ],
292 292
             $this->sourcesRepository
293 293
         ))->mustRun();
Please login to merge, or discard this patch.
test/unit/ChangeTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     {
19 19
         $changeText = uniqid('changeText', true);
20 20
         $change     = Change::added($changeText, false);
21
-        self::assertSame('     ADDED: ' . $changeText, (string) $change);
21
+        self::assertSame('     ADDED: '.$changeText, (string) $change);
22 22
         self::assertTrue($change->isAdded());
23 23
         self::assertFalse($change->isChanged());
24 24
         self::assertFalse($change->isRemoved());
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $changeText = uniqid('changeText', true);
31 31
         $change     = Change::added($changeText, true);
32
-        self::assertSame('[BC] ADDED: ' . $changeText, (string) $change);
32
+        self::assertSame('[BC] ADDED: '.$changeText, (string) $change);
33 33
         self::assertTrue($change->isAdded());
34 34
         self::assertFalse($change->isChanged());
35 35
         self::assertFalse($change->isRemoved());
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $changeText = uniqid('changeText', true);
42 42
         $change     = Change::changed($changeText, false);
43
-        self::assertSame('     CHANGED: ' . $changeText, (string) $change);
43
+        self::assertSame('     CHANGED: '.$changeText, (string) $change);
44 44
         self::assertFalse($change->isAdded());
45 45
         self::assertTrue($change->isChanged());
46 46
         self::assertFalse($change->isRemoved());
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     {
51 51
         $changeText = uniqid('changeText', true);
52 52
         $change     = Change::changed($changeText, true);
53
-        self::assertSame('[BC] CHANGED: ' . $changeText, (string) $change);
53
+        self::assertSame('[BC] CHANGED: '.$changeText, (string) $change);
54 54
         self::assertFalse($change->isAdded());
55 55
         self::assertTrue($change->isChanged());
56 56
         self::assertFalse($change->isRemoved());
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $changeText = uniqid('changeText', true);
63 63
         $change     = Change::removed($changeText, false);
64
-        self::assertSame('     REMOVED: ' . $changeText, (string) $change);
64
+        self::assertSame('     REMOVED: '.$changeText, (string) $change);
65 65
         self::assertFalse($change->isAdded());
66 66
         self::assertFalse($change->isChanged());
67 67
         self::assertTrue($change->isRemoved());
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $changeText = uniqid('changeText', true);
74 74
         $change     = Change::removed($changeText, true);
75
-        self::assertSame('[BC] REMOVED: ' . $changeText, (string) $change);
75
+        self::assertSame('[BC] REMOVED: '.$changeText, (string) $change);
76 76
         self::assertFalse($change->isAdded());
77 77
         self::assertFalse($change->isChanged());
78 78
         self::assertTrue($change->isRemoved());
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $failure = new Exception('changeText');
85 85
         $change  = Change::skippedDueToFailure($failure);
86
-        self::assertSame('[BC] SKIPPED: ' . $failure->getMessage(), (string) $change);
86
+        self::assertSame('[BC] SKIPPED: '.$failure->getMessage(), (string) $change);
87 87
         self::assertFalse($change->isAdded());
88 88
         self::assertFalse($change->isChanged());
89 89
         self::assertFalse($change->isRemoved());
Please login to merge, or discard this patch.