Completed
Pull Request — master (#48)
by Marco
02:32
created
asset/composer-installation-structure/vendor/composer/autoload_static.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -6,45 +6,45 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
8 8
 {
9
-    public static $files = array (
10
-        'a12da592622097d2b593a430e32e13fd' => __DIR__ . '/../..' . '/included-file-1.php',
11
-        '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/../..' . '/included-file-2.php',
9
+    public static $files = array(
10
+        'a12da592622097d2b593a430e32e13fd' => __DIR__.'/../..'.'/included-file-1.php',
11
+        '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__.'/../..'.'/included-file-2.php',
12 12
     );
13 13
 
14
-    public static $prefixLengthsPsr4 = array (
14
+    public static $prefixLengthsPsr4 = array(
15 15
         'p' =>
16
-            array (
16
+            array(
17 17
                 'phpDocumentor\\Reflection\\' => 25,
18 18
             ),
19 19
     );
20 20
 
21
-    public static $prefixDirsPsr4 = array (
21
+    public static $prefixDirsPsr4 = array(
22 22
         'phpDocumentor\\Reflection\\' =>
23
-            array (
24
-                0 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src',
25
-                1 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src',
26
-                2 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src',
23
+            array(
24
+                0 => __DIR__.'/..'.'/phpdocumentor/reflection-common/src',
25
+                1 => __DIR__.'/..'.'/phpdocumentor/reflection-docblock/src',
26
+                2 => __DIR__.'/..'.'/phpdocumentor/type-resolver/src',
27 27
             ),
28 28
     );
29 29
 
30
-    public static $prefixesPsr0 = array (
30
+    public static $prefixesPsr0 = array(
31 31
         'P' =>
32
-            array (
32
+            array(
33 33
                 'Prophecy\\' =>
34
-                    array (
35
-                        0 => __DIR__ . '/..' . '/phpspec/prophecy/src',
34
+                    array(
35
+                        0 => __DIR__.'/..'.'/phpspec/prophecy/src',
36 36
                     ),
37 37
             ),
38 38
     );
39 39
 
40
-    public static $classMap = array (
41
-        'A\\ClassName' => __DIR__ . '/../..' . '/AClassName.php',
42
-        'B\\ClassName' => __DIR__ . '/../..' . '/BClassName.php',
40
+    public static $classMap = array(
41
+        'A\\ClassName' => __DIR__.'/../..'.'/AClassName.php',
42
+        'B\\ClassName' => __DIR__.'/../..'.'/BClassName.php',
43 43
     );
44 44
 
45 45
     public static function getInitializer(ClassLoader $loader)
46 46
     {
47
-        return \Closure::bind(function () use ($loader) {
47
+        return \Closure::bind(function() use ($loader) {
48 48
             $loader->prefixLengthsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixLengthsPsr4;
49 49
             $loader->prefixDirsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixDirsPsr4;
50 50
             $loader->prefixesPsr0 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixesPsr0;
Please login to merge, or discard this patch.
test/unit/ChangeTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         $changeText = uniqid('changeText', true);
19 19
         $change = Change::added($changeText, false);
20
-        self::assertSame('     ADDED: ' . $changeText, (string) $change);
20
+        self::assertSame('     ADDED: '.$changeText, (string) $change);
21 21
         self::assertTrue($change->isAdded());
22 22
         self::assertFalse($change->isChanged());
23 23
         self::assertFalse($change->isRemoved());
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $changeText = uniqid('changeText', true);
29 29
         $change = Change::added($changeText, true);
30
-        self::assertSame('[BC] ADDED: ' . $changeText, (string) $change);
30
+        self::assertSame('[BC] ADDED: '.$changeText, (string) $change);
31 31
         self::assertTrue($change->isAdded());
32 32
         self::assertFalse($change->isChanged());
33 33
         self::assertFalse($change->isRemoved());
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $changeText = uniqid('changeText', true);
39 39
         $change = Change::changed($changeText, false);
40
-        self::assertSame('     CHANGED: ' . $changeText, (string) $change);
40
+        self::assertSame('     CHANGED: '.$changeText, (string) $change);
41 41
         self::assertFalse($change->isAdded());
42 42
         self::assertTrue($change->isChanged());
43 43
         self::assertFalse($change->isRemoved());
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $changeText = uniqid('changeText', true);
49 49
         $change = Change::changed($changeText, true);
50
-        self::assertSame('[BC] CHANGED: ' . $changeText, (string) $change);
50
+        self::assertSame('[BC] CHANGED: '.$changeText, (string) $change);
51 51
         self::assertFalse($change->isAdded());
52 52
         self::assertTrue($change->isChanged());
53 53
         self::assertFalse($change->isRemoved());
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $changeText = uniqid('changeText', true);
59 59
         $change = Change::removed($changeText, false);
60
-        self::assertSame('     REMOVED: ' . $changeText, (string) $change);
60
+        self::assertSame('     REMOVED: '.$changeText, (string) $change);
61 61
         self::assertFalse($change->isAdded());
62 62
         self::assertFalse($change->isChanged());
63 63
         self::assertTrue($change->isRemoved());
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $changeText = uniqid('changeText', true);
69 69
         $change = Change::removed($changeText, true);
70
-        self::assertSame('[BC] REMOVED: ' . $changeText, (string) $change);
70
+        self::assertSame('[BC] REMOVED: '.$changeText, (string) $change);
71 71
         self::assertFalse($change->isAdded());
72 72
         self::assertFalse($change->isChanged());
73 73
         self::assertTrue($change->isRemoved());
Please login to merge, or discard this patch.
test/unit/Command/ApiCompareTest.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);
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 
263 263
         $this->output->expects(self::any())
264 264
             ->method('writeln')
265
-            ->willReturnCallback(function (string $output) use ($changeToExpect) {
265
+            ->willReturnCallback(function(string $output) use ($changeToExpect) {
266 266
                 self::assertContains($changeToExpect, $output);
267 267
             });
268 268
     }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 
310 310
         $this->getVersions->expects(self::once())
311 311
             ->method('fromRepository')
312
-            ->with(self::callback(function (CheckedOutRepository $checkedOutRepository) : bool {
312
+            ->with(self::callback(function(CheckedOutRepository $checkedOutRepository) : bool {
313 313
                 self::assertEquals($this->sourceRepository, $checkedOutRepository);
314 314
                 return true;
315 315
             }))
Please login to merge, or discard this patch.
test/unit/Git/GitParseRevisionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             $expectedRevision,
33 33
             (new GitParseRevision())->fromStringForRepository(
34 34
                 $revisionToBeParsed,
35
-                CheckedOutRepository::fromPath(__DIR__ . '/../../../')
35
+                CheckedOutRepository::fromPath(__DIR__.'/../../../')
36 36
             )->__toString()
37 37
         );
38 38
     }
Please login to merge, or discard this patch.
test/unit/Git/CheckedOutRepositoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
 {
19 19
     public function testFromPath() : void
20 20
     {
21
-        $path = sys_get_temp_dir() . '/' . uniqid('testPath', true);
21
+        $path = sys_get_temp_dir().'/'.uniqid('testPath', true);
22 22
         mkdir($path, 0777, true);
23
-        mkdir($path . '/.git');
23
+        mkdir($path.'/.git');
24 24
 
25 25
         $checkedOutRepository = CheckedOutRepository::fromPath($path);
26 26
         self::assertSame($path, (string) $checkedOutRepository);
27 27
 
28
-        rmdir($path . '/.git');
28
+        rmdir($path.'/.git');
29 29
         rmdir($path);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
test/unit/Git/GitCheckoutRevisionToTemporaryPathTest.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 testCheckoutAndRemove() : void
19 19
     {
20
-        $sourceRepositoryPath = realpath(__DIR__ . '/../../../');
20
+        $sourceRepositoryPath = realpath(__DIR__.'/../../../');
21 21
 
22 22
         $git = new GitCheckoutRevisionToTemporaryPath();
23 23
 
Please login to merge, or discard this patch.
test/unit/Git/GetVersionCollectionFromGitRepositoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function setUp() : void
28 28
     {
29
-        $tmpGitRepo = sys_get_temp_dir() . '/api-compare-' . uniqid('tmpGitRepo', true);
29
+        $tmpGitRepo = sys_get_temp_dir().'/api-compare-'.uniqid('tmpGitRepo', true);
30 30
         mkdir($tmpGitRepo, 0777, true);
31 31
         (new Process(['git', 'init']))->setWorkingDirectory($tmpGitRepo)->mustRun();
32
-        file_put_contents($tmpGitRepo . '/test', uniqid('testContent', true));
32
+        file_put_contents($tmpGitRepo.'/test', uniqid('testContent', true));
33 33
         (new Process(['git', 'add', '.']))->setWorkingDirectory($tmpGitRepo)->mustRun();
34 34
         (new Process(['git', 'commit', '-m', '"whatever"']))->setWorkingDirectory($tmpGitRepo)->mustRun();
35 35
         $this->repoPath = CheckedOutRepository::fromPath($tmpGitRepo);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         self::assertSame(
53 53
             ['1.0.0'],
54 54
             array_map(
55
-                function (Version $version) {
55
+                function(Version $version) {
56 56
                     return $version->getVersionString();
57 57
                 },
58 58
                 iterator_to_array((new GetVersionCollectionFromGitRepository())->fromRepository($this->repoPath))
Please login to merge, or discard this patch.
test/unit/LocateDependencies/LocateDependenciesViaComposerTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -83,13 +83,13 @@  discard block
 block discarded – undo
83 83
 
84 84
     public function testWillLocateDependencies() : void
85 85
     {
86
-        $composerInstallationStructure = realpath(__DIR__ . '/../../asset/composer-installation-structure');
86
+        $composerInstallationStructure = realpath(__DIR__.'/../../asset/composer-installation-structure');
87 87
 
88 88
         $this
89 89
             ->composerInstaller
90 90
             ->expects(self::once())
91 91
             ->method('run')
92
-            ->willReturnCallback(function () use ($composerInstallationStructure) : void {
92
+            ->willReturnCallback(function() use ($composerInstallationStructure) : void {
93 93
                 self::assertSame($composerInstallationStructure, getcwd());
94 94
             });
95 95
 
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
         self::assertEquals(
110 110
             new StaticClassMapSourceLocator(
111 111
                 [
112
-                    'A\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure/AClassName.php'),
113
-                    'B\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure/BClassName.php'),
112
+                    'A\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure/AClassName.php'),
113
+                    'B\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure/BClassName.php'),
114 114
                 ],
115 115
                 $this->astLocator
116 116
             ),
@@ -119,11 +119,11 @@  discard block
 block discarded – undo
119 119
         self::assertEquals(
120 120
             new AggregateSourceLocator([
121 121
                 new SingleFileSourceLocator(
122
-                    realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-1.php'),
122
+                    realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-1.php'),
123 123
                     $this->astLocator
124 124
                 ),
125 125
                 new SingleFileSourceLocator(
126
-                    realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-2.php'),
126
+                    realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-2.php'),
127 127
                     $this->astLocator
128 128
                 ),
129 129
             ]),
Please login to merge, or discard this patch.
BackwardsCompatibility/ClassBased/MethodVisibilityReducedTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         self::assertSame(
33 33
             $expectedMessages,
34
-            array_map(function (Change $change) : string {
34
+            array_map(function(Change $change) : string {
35 35
                 return $change->__toString();
36 36
             }, iterator_to_array($changes))
37 37
         );
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
         return [
46 46
             'RoaveTestAsset\\ClassWithPropertyVisibilitiesBeingChanged' => [
47 47
                 (new ClassReflector(new SingleFileSourceLocator(
48
-                    __DIR__ . '/../../../../asset/api/old/ClassWithMethodVisibilitiesBeingChanged.php',
48
+                    __DIR__.'/../../../../asset/api/old/ClassWithMethodVisibilitiesBeingChanged.php',
49 49
                     $locator
50 50
                 )))->reflect('RoaveTestAsset\\ClassWithMethodVisibilitiesBeingChanged'),
51 51
                 (new ClassReflector(new SingleFileSourceLocator(
52
-                    __DIR__ . '/../../../../asset/api/new/ClassWithMethodVisibilitiesBeingChanged.php',
52
+                    __DIR__.'/../../../../asset/api/new/ClassWithMethodVisibilitiesBeingChanged.php',
53 53
                     $locator
54 54
                 )))->reflect('RoaveTestAsset\\ClassWithMethodVisibilitiesBeingChanged'),
55 55
                 [
Please login to merge, or discard this patch.