Passed
Pull Request — master (#50)
by Marco
02:36
created
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.
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/Formatter/ReflectionPropertyNameTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         return array_combine(
64 64
             array_keys($properties),
65 65
             array_map(
66
-                function (string $expectedMessage, ReflectionProperty $property) : array {
66
+                function(string $expectedMessage, ReflectionProperty $property) : array {
67 67
                     return [$property, $expectedMessage];
68 68
                 },
69 69
                 array_keys($properties),
Please login to merge, or discard this patch.
test/unit/Formatter/MarkdownPipedToSymfonyConsoleFormatterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
         $output->expects(self::any())
38 38
             ->method('writeln')
39
-            ->willReturnCallback(function (string $output) use ($changeToExpect) : void {
39
+            ->willReturnCallback(function(string $output) use ($changeToExpect) : void {
40 40
                 self::assertContains($changeToExpect, $output);
41 41
             });
42 42
 
Please login to merge, or discard this patch.
src/Formatter/ReflectionPropertyName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
     public function __invoke(ReflectionProperty $property) : string
12 12
     {
13 13
         if ($property->isStatic()) {
14
-            return $property->getDeclaringClass()->getName() . '::$' . $property->getName();
14
+            return $property->getDeclaringClass()->getName().'::$'.$property->getName();
15 15
         }
16 16
 
17
-        return $property->getDeclaringClass()->getName() . '#$' . $property->getName();
17
+        return $property->getDeclaringClass()->getName().'#$'.$property->getName();
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
src/Formatter/MarkdownPipedToSymfonyConsoleFormatter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,21 +30,21 @@  discard block
 block discarded – undo
30 30
         $this->output->writeln(
31 31
             "# Added\n"
32 32
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
33
-                function (Change $change) : bool {
33
+                function(Change $change) : bool {
34 34
                     return $change->isAdded();
35 35
                 },
36 36
                 ...$arrayOfChanges
37 37
             ))
38 38
             . "\n# Changed\n"
39 39
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
40
-                function (Change $change) : bool {
40
+                function(Change $change) : bool {
41 41
                     return $change->isChanged();
42 42
                 },
43 43
                 ...$arrayOfChanges
44 44
             ))
45 45
             . "\n# Removed\n"
46 46
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
47
-                function (Change $change) : bool {
47
+                function(Change $change) : bool {
48 48
                     return $change->isRemoved();
49 49
                 },
50 50
                 ...$arrayOfChanges
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
     private function convertFilteredChangesToMarkdownBulletList(callable $filterFunction, Change ...$changes) : array
57 57
     {
58 58
         return array_map(
59
-            function (Change $change) : string {
60
-                return ' - ' . str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim((string) $change)) . "\n";
59
+            function(Change $change) : string {
60
+                return ' - '.str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim((string) $change))."\n";
61 61
             },
62 62
             array_filter($changes, $filterFunction)
63 63
         );
Please login to merge, or discard this patch.
src/Formatter/ReflectionFunctionAbstractName.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
     {
14 14
         if ($function instanceof ReflectionMethod) {
15 15
             if ($function->isStatic()) {
16
-                return $function->getDeclaringClass()->getName() . '::' . $function->getName() . '()';
16
+                return $function->getDeclaringClass()->getName().'::'.$function->getName().'()';
17 17
             }
18 18
 
19
-            return $function->getDeclaringClass()->getName() . '#' . $function->getName() . '()';
19
+            return $function->getDeclaringClass()->getName().'#'.$function->getName().'()';
20 20
         }
21 21
 
22
-        return $function->getName() . '()';
22
+        return $function->getName().'()';
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
test/unit/LocateDependencies/LocateDependenciesViaComposerTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
     public function testWillLocateDependencies() : void
95 95
     {
96
-        $composerInstallationStructure = realpath(__DIR__ . '/../../asset/composer-installation-structure');
96
+        $composerInstallationStructure = realpath(__DIR__.'/../../asset/composer-installation-structure');
97 97
 
98 98
         $this
99 99
             ->makeInstaller
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             ->composerInstaller
107 107
             ->expects(self::once())
108 108
             ->method('run')
109
-            ->willReturnCallback(function () use ($composerInstallationStructure) : void {
109
+            ->willReturnCallback(function() use ($composerInstallationStructure) : void {
110 110
                 self::assertSame($composerInstallationStructure, getcwd());
111 111
             });
112 112
 
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
         self::assertEquals(
127 127
             new StaticClassMapSourceLocator(
128 128
                 [
129
-                    'A\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure/AClassName.php'),
130
-                    'B\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure/BClassName.php'),
129
+                    'A\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure/AClassName.php'),
130
+                    'B\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure/BClassName.php'),
131 131
                 ],
132 132
                 $this->astLocator
133 133
             ),
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
         self::assertEquals(
137 137
             new AggregateSourceLocator([
138 138
                 new SingleFileSourceLocator(
139
-                    realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-1.php'),
139
+                    realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-1.php'),
140 140
                     $this->astLocator
141 141
                 ),
142 142
                 new SingleFileSourceLocator(
143
-                    realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-2.php'),
143
+                    realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-2.php'),
144 144
                     $this->astLocator
145 145
                 ),
146 146
             ]),
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
     public function testWillLocateDependenciesEvenWithoutAutoloadFiles() : void
153 153
     {
154
-        $composerInstallationStructure = realpath(__DIR__ . '/../../asset/composer-installation-structure-without-autoload-files');
154
+        $composerInstallationStructure = realpath(__DIR__.'/../../asset/composer-installation-structure-without-autoload-files');
155 155
 
156 156
         $this
157 157
             ->makeInstaller
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             ->composerInstaller
165 165
             ->expects(self::once())
166 166
             ->method('run')
167
-            ->willReturnCallback(function () use ($composerInstallationStructure) : void {
167
+            ->willReturnCallback(function() use ($composerInstallationStructure) : void {
168 168
                 self::assertSame($composerInstallationStructure, getcwd());
169 169
             });
170 170
 
@@ -184,8 +184,8 @@  discard block
 block discarded – undo
184 184
         self::assertEquals(
185 185
             new StaticClassMapSourceLocator(
186 186
                 [
187
-                    'A\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure-without-autoload-files/AClassName.php'),
188
-                    'B\\ClassName' => realpath(__DIR__ . '/../../asset/composer-installation-structure-without-autoload-files/BClassName.php'),
187
+                    'A\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure-without-autoload-files/AClassName.php'),
188
+                    'B\\ClassName' => realpath(__DIR__.'/../../asset/composer-installation-structure-without-autoload-files/BClassName.php'),
189 189
                 ],
190 190
                 $this->astLocator
191 191
             ),
Please login to merge, or discard this patch.
vendor/composer/autoload_static.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -6,40 +6,40 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
8 8
 {
9
-    public static $prefixLengthsPsr4 = array (
9
+    public static $prefixLengthsPsr4 = array(
10 10
         'p' =>
11
-            array (
11
+            array(
12 12
                 'phpDocumentor\\Reflection\\' => 25,
13 13
             ),
14 14
     );
15 15
 
16
-    public static $prefixDirsPsr4 = array (
16
+    public static $prefixDirsPsr4 = array(
17 17
         'phpDocumentor\\Reflection\\' =>
18
-            array (
19
-                0 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src',
20
-                1 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src',
21
-                2 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src',
18
+            array(
19
+                0 => __DIR__.'/..'.'/phpdocumentor/reflection-common/src',
20
+                1 => __DIR__.'/..'.'/phpdocumentor/reflection-docblock/src',
21
+                2 => __DIR__.'/..'.'/phpdocumentor/type-resolver/src',
22 22
             ),
23 23
     );
24 24
 
25
-    public static $prefixesPsr0 = array (
25
+    public static $prefixesPsr0 = array(
26 26
         'P' =>
27
-            array (
27
+            array(
28 28
                 'Prophecy\\' =>
29
-                    array (
30
-                        0 => __DIR__ . '/..' . '/phpspec/prophecy/src',
29
+                    array(
30
+                        0 => __DIR__.'/..'.'/phpspec/prophecy/src',
31 31
                     ),
32 32
             ),
33 33
     );
34 34
 
35
-    public static $classMap = array (
36
-        'A\\ClassName' => __DIR__ . '/../..' . '/AClassName.php',
37
-        'B\\ClassName' => __DIR__ . '/../..' . '/BClassName.php',
35
+    public static $classMap = array(
36
+        'A\\ClassName' => __DIR__.'/../..'.'/AClassName.php',
37
+        'B\\ClassName' => __DIR__.'/../..'.'/BClassName.php',
38 38
     );
39 39
 
40 40
     public static function getInitializer(ClassLoader $loader)
41 41
     {
42
-        return \Closure::bind(function () use ($loader) {
42
+        return \Closure::bind(function() use ($loader) {
43 43
             $loader->prefixLengthsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixLengthsPsr4;
44 44
             $loader->prefixDirsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixDirsPsr4;
45 45
             $loader->prefixesPsr0 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixesPsr0;
Please login to merge, or discard this patch.