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/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/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.
test/unit/SourceLocator/StaticClassMapSourceLocatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
             ->astLocator
74 74
             ->expects(self::once())
75 75
             ->method('findReflection')
76
-            ->with($this->reflector, self::callback(function (LocatedSource $source) : bool {
76
+            ->with($this->reflector, self::callback(function(LocatedSource $source) : bool {
77 77
                 self::assertSame(file_get_contents(__FILE__), $source->getSource());
78 78
                 self::assertSame(__FILE__, $source->getFileName());
79 79
                 self::assertNull($source->getExtensionName());
Please login to merge, or discard this patch.
src/Command/ApiCompare.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,23 +124,23 @@
 block discarded – undo
124 124
         $toPath   = $this->git->checkout($sourceRepo, $toRevision);
125 125
 
126 126
         try {
127
-            $fromSources = $fromPath . '/' . $sourcesPath;
128
-            $toSources   = $toPath . '/' . $sourcesPath;
127
+            $fromSources = $fromPath.'/'.$sourcesPath;
128
+            $toSources   = $toPath.'/'.$sourcesPath;
129 129
 
130 130
             Assert::that($fromSources)->directory();
131 131
             Assert::that($toSources)->directory();
132 132
 
133 133
             $changes = $this->comparator->compare(
134 134
                 $this->reflectorFactory->__invoke(
135
-                    $fromPath . '/' . $sourcesPath,
135
+                    $fromPath.'/'.$sourcesPath,
136 136
                     new AggregateSourceLocator() // no dependencies
137 137
                 ),
138 138
                 $this->reflectorFactory->__invoke(
139
-                    $fromPath . '/' . $sourcesPath,
139
+                    $fromPath.'/'.$sourcesPath,
140 140
                     $this->locateDependencies->__invoke((string) $fromPath)
141 141
                 ),
142 142
                 $this->reflectorFactory->__invoke(
143
-                    $toPath . '/' . $sourcesPath,
143
+                    $toPath.'/'.$sourcesPath,
144 144
                     $this->locateDependencies->__invoke((string) $toPath)
145 145
                 )
146 146
             );
Please login to merge, or discard this patch.
src/LocateDependencies/LocateDependenciesViaComposer.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
         $classMap = $classMapProperty->getDefaultValue();
77 77
 
78 78
         Assert::that($classMap)
79
-              ->isArray()
80
-              ->all()
81
-              ->file();
79
+                ->isArray()
80
+                ->all()
81
+                ->file();
82 82
 
83 83
         return new StaticClassMapSourceLocator($classMap, $this->astLocator);
84 84
     }
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
         $filesMap = $filesMapProperty->getDefaultValue();
93 93
 
94 94
         Assert::that($filesMap)
95
-              ->isArray()
96
-              ->all()
97
-              ->file();
95
+                ->isArray()
96
+                ->all()
97
+                ->file();
98 98
 
99 99
         return new AggregateSourceLocator(array_values(array_map(
100 100
             function (string $path) : SourceLocator {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
     public function __invoke(string $installationPath) : SourceLocator
41 41
     {
42 42
         Assert::that($installationPath)->directory();
43
-        Assert::that($installationPath . '/composer.json')->file();
43
+        Assert::that($installationPath.'/composer.json')->file();
44 44
 
45
-        $this->runInDirectory(function () {
45
+        $this->runInDirectory(function() {
46 46
             $this->installer->run();
47 47
         }, $installationPath);
48 48
 
49
-        $autoloadStatic = $installationPath . '/vendor/composer/autoload_static.php';
49
+        $autoloadStatic = $installationPath.'/vendor/composer/autoload_static.php';
50 50
 
51 51
         Assert::that($autoloadStatic)->file();
52 52
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
               ->file();
98 98
 
99 99
         return new AggregateSourceLocator(array_values(array_map(
100
-            function (string $path) : SourceLocator {
100
+            function(string $path) : SourceLocator {
101 101
                 return new SingleFileSourceLocator(
102 102
                     realpath($path),
103 103
                     $this->astLocator
Please login to merge, or discard this patch.
src/Comparator.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
     ) : Changes {
32 32
         $changelog = Changes::new();
33 33
 
34
-        $definedApiClassNames = array_map(function (ReflectionClass $class) : string {
34
+        $definedApiClassNames = array_map(function(ReflectionClass $class) : string {
35 35
             return $class->getName();
36 36
         }, $definedApi->getAllClasses());
37 37
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $changelog->mergeWith($this->classBasedComparisons->compare($oldClass, $newClass));
58 58
 
59
-        if ($newClass->isFinal() && ! $oldClass->isFinal()) {
59
+        if ($newClass->isFinal() && !$oldClass->isFinal()) {
60 60
             $changelog = $changelog->withAddedChange(
61 61
                 Change::changed(sprintf('Class %s is now final', $oldClass->getName()), true)
62 62
             );
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         ReflectionMethod $newMethod
118 118
     ) : Changes {
119 119
         $newParameters = $newMethod->getParameters();
120
-        if (! array_key_exists($parameterPosition, $newParameters)) {
120
+        if (!array_key_exists($parameterPosition, $newParameters)) {
121 121
             return $changelog->withAddedChange(
122 122
                 Change::removed(
123 123
                     sprintf(
Please login to merge, or discard this patch.
src/SourceLocator/StaticClassMapSourceLocator.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.
bin/api-compare.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
 use Symfony\Component\Console\Application;
21 21
 use function file_exists;
22 22
 
23
-(function () : void {
24
-    foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../autoload.php'] as $autoload) {
25
-        if (! file_exists($autoload)) {
23
+(function() : void {
24
+    foreach ([__DIR__.'/../vendor/autoload.php', __DIR__.'/../autoload.php'] as $autoload) {
25
+        if (!file_exists($autoload)) {
26 26
             continue;
27 27
         }
28 28
 
Please login to merge, or discard this patch.