Passed
Pull Request — master (#50)
by Marco
02:36
created
DetectChanges/BCBreak/PropertyBased/PropertyDefaultValueChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::assertSame(
38 38
             $expectedMessages,
39
-            array_map(function (Change $change) : string {
39
+            array_map(function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         return array_combine(
139 139
             array_keys($properties),
140 140
             array_map(
141
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
141
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
142 142
                     return [
143 143
                         $fromClass->getProperty($property),
144 144
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
unit/DetectChanges/BCBreak/PropertyBased/PropertyVisibilityReducedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::assertSame(
38 38
             $expectedMessages,
39
-            array_map(function (Change $change) : string {
39
+            array_map(function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         return array_combine(
139 139
             array_keys($properties),
140 140
             array_map(
141
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
141
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
142 142
                     return [
143 143
                         $fromClass->getProperty($property),
144 144
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
test/unit/DetectChanges/Variance/TypeIsContravariantTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         return array_merge(
225 225
             [[null]],
226 226
             array_merge(...array_map(
227
-                function (string $type) use ($reflector) : array {
227
+                function(string $type) use ($reflector) : array {
228 228
                     return [
229 229
                         [ReflectionType::createFromTypeAndReflector($type, false, $reflector)],
230 230
                         [ReflectionType::createFromTypeAndReflector($type, true, $reflector)],
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     /** @dataProvider existingNullableTypeStrings */
249 249
     public function testContravarianceConsidersNullability(string $type) : void
250 250
     {
251
-        $reflector   = new ClassReflector(new StringSourceLocator(
251
+        $reflector = new ClassReflector(new StringSourceLocator(
252 252
             <<<'PHP'
253 253
 <?php
254 254
 
Please login to merge, or discard this patch.
test/unit/DetectChanges/Variance/TypeIsCovariantTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         return array_merge(
236 236
             [[null]],
237 237
             array_merge(...array_map(
238
-                function (string $type) use ($reflector) : array {
238
+                function(string $type) use ($reflector) : array {
239 239
                     return [
240 240
                         [ReflectionType::createFromTypeAndReflector($type, false, $reflector)],
241 241
                         [ReflectionType::createFromTypeAndReflector($type, true, $reflector)],
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /** @dataProvider existingNullableTypeStrings */
260 260
     public function testCovarianceConsidersNullability(string $type) : void
261 261
     {
262
-        $reflector   = new ClassReflector(new StringSourceLocator(
262
+        $reflector = new ClassReflector(new StringSourceLocator(
263 263
             <<<'PHP'
264 264
 <?php
265 265
 
Please login to merge, or discard this patch.
test/unit/Command/AssertBackwardsCompatibleTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     public function setUp() : void
76 76
     {
77
-        $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__ . '/../../../'));
77
+        $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__.'/../../../'));
78 78
         chdir((string) $this->sourceRepository);
79 79
 
80 80
         $this->input              = $this->createMock(InputInterface::class);
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
         $this->output->expects(self::any())
263 263
             ->method('writeln')
264
-            ->willReturnCallback(function (string $output) use ($changeToExpect) : void {
264
+            ->willReturnCallback(function(string $output) use ($changeToExpect) : void {
265 265
                 self::assertContains($changeToExpect, $output);
266 266
             });
267 267
     }
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
         $this->getVersions->expects(self::once())
310 310
             ->method('fromRepository')
311
-            ->with(self::callback(function (CheckedOutRepository $checkedOutRepository) : bool {
311
+            ->with(self::callback(function(CheckedOutRepository $checkedOutRepository) : bool {
312 312
                 self::assertEquals($this->sourceRepository, $checkedOutRepository);
313 313
                 return true;
314 314
             }))
Please login to merge, or discard this patch.
bin/roave-backward-compatibility-check.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 use Symfony\Component\Console\Output\ConsoleOutput;
32 32
 use function file_exists;
33 33
 
34
-(function () : void {
35
-    foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../autoload.php'] as $autoload) {
36
-        if (! file_exists($autoload)) {
34
+(function() : void {
35
+    foreach ([__DIR__.'/../vendor/autoload.php', __DIR__.'/../autoload.php'] as $autoload) {
36
+        if (!file_exists($autoload)) {
37 37
             continue;
38 38
         }
39 39
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             new GetVersionCollectionFromGitRepository(),
55 55
             new PickLastMinorVersionFromCollection(),
56 56
             new LocateDependenciesViaComposer(
57
-                function (string $installationPath) use ($composerIo) : Installer {
57
+                function(string $installationPath) use ($composerIo) : Installer {
58 58
                     return Installer::create(
59 59
                         $composerIo,
60 60
                         (new Factory())->createComposer(
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/MethodBased/MethodConcretenessChanged.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(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
19 19
     {
20
-        if ($fromMethod->isAbstract() || ! $toMethod->isAbstract()) {
20
+        if ($fromMethod->isAbstract() || !$toMethod->isAbstract()) {
21 21
             return Changes::empty();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/MethodBased/OnlyProtectedMethodChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
24 24
     {
25
-        if (! $fromMethod->isProtected()) {
25
+        if (!$fromMethod->isProtected()) {
26 26
             return Changes::empty();
27 27
         }
28 28
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/MethodBased/MultipleChecksOnAMethod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         return array_reduce(
24 24
             $this->checks,
25
-            function (Changes $changes, MethodBased $check) use ($fromMethod, $toMethod) : Changes {
25
+            function(Changes $changes, MethodBased $check) use ($fromMethod, $toMethod) : Changes {
26 26
                 return $changes->mergeWith($check->__invoke($fromMethod, $toMethod));
27 27
             },
28 28
             Changes::empty()
Please login to merge, or discard this patch.