Passed
Push — master ( bc2264...443d60 )
by Marco
06:52 queued 04:20
created
test/unit/Git/GitCheckoutRevisionToTemporaryPathTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 ->getOutput()
83 83
         );
84 84
 
85
-        file_put_contents($repoPath . '/a-file.txt', 'file contents');
85
+        file_put_contents($repoPath.'/a-file.txt', 'file contents');
86 86
 
87 87
         (new Process(['git', 'add', 'a-file.txt'], $repoPath))
88 88
             ->mustRun();
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
         $first            = $git->checkout($sourceRepository, $firstCommit);
103 103
         $second           = $git->checkout($sourceRepository, $secondCommit);
104 104
 
105
-        self::assertFileNotExists($first->__toString() . '/a-file.txt');
106
-        self::assertFileExists($second->__toString() . '/a-file.txt');
105
+        self::assertFileNotExists($first->__toString().'/a-file.txt');
106
+        self::assertFileExists($second->__toString().'/a-file.txt');
107 107
 
108 108
         $git->remove($first);
109 109
         $git->remove($second);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     public function testExceptionIsThrownWhenTwoPathsCollide() : void
115 115
     {
116
-        $git              = new GitCheckoutRevisionToTemporaryPath(static function () : string {
116
+        $git              = new GitCheckoutRevisionToTemporaryPath(static function() : string {
117 117
             return 'foo';
118 118
         });
119 119
         $sourceRepository = $this->sourceRepository();
@@ -141,6 +141,6 @@  discard block
 block discarded – undo
141 141
 
142 142
     private function sourceRepository() : CheckedOutRepository
143 143
     {
144
-        return CheckedOutRepository::fromPath(realpath(__DIR__ . '/../../..'));
144
+        return CheckedOutRepository::fromPath(realpath(__DIR__.'/../../..'));
145 145
     }
146 146
 }
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::once())
38 38
             ->method('writeln')
39
-            ->willReturnCallback(static function (string $output) use ($changeToExpect) : void {
39
+            ->willReturnCallback(static function(string $output) use ($changeToExpect) : void {
40 40
                 self::assertStringContainsString($changeToExpect, $output);
41 41
             });
42 42
 
Please login to merge, or discard this patch.
test/unit/ChangesTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function testFromIteratorBuffersAllChangesWithoutLoadingThemEagerly() : void
50 50
     {
51
-        $stopProducingValues = static function () : void {
51
+        $stopProducingValues = static function() : void {
52 52
             self::fail('No values should have been produced');
53 53
         };
54 54
 
55
-        $changesProvider = static function () use (& $stopProducingValues) : Generator {
55
+        $changesProvider = static function() use (& $stopProducingValues) : Generator {
56 56
             $stopProducingValues();
57 57
 
58 58
             yield Change::changed('a', true);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             Change::changed('b', false),
72 72
         ];
73 73
 
74
-        $stopProducingValues = static function () : void {
74
+        $stopProducingValues = static function() : void {
75 75
         };
76 76
 
77 77
         self::assertEquals($expectedChanges, iterator_to_array($changes));
Please login to merge, or discard this patch.
test/unit/LocateDependencies/LocateDependenciesViaComposerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $this->originalCwd       = getcwd();
48 48
         $this->composerInstaller = $this->createMock(Installer::class);
49 49
         $this->astLocator        = (new BetterReflection())->astLocator();
50
-        $this->makeInstaller     = function (string $installationPath) : Installer {
50
+        $this->makeInstaller     = function(string $installationPath) : Installer {
51 51
             self::assertSame($this->expectedInstallatonPath, $installationPath);
52 52
 
53 53
             return $this->composerInstaller;
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
 
75 75
         $this
76 76
             ->locateDependencies
77
-            ->__invoke(__DIR__ . '/non-existing');
77
+            ->__invoke(__DIR__.'/non-existing');
78 78
     }
79 79
 
80 80
     public function testWillLocateDependencies() : void
81 81
     {
82
-        $this->expectedInstallatonPath = realpath(__DIR__ . '/../../asset/composer-installation-structure');
82
+        $this->expectedInstallatonPath = realpath(__DIR__.'/../../asset/composer-installation-structure');
83 83
 
84 84
         $this
85 85
             ->composerInstaller
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             ->composerInstaller
107 107
             ->expects(self::once())
108 108
             ->method('run')
109
-            ->willReturnCallback(function () : void {
109
+            ->willReturnCallback(function() : void {
110 110
                 self::assertSame($this->expectedInstallatonPath, getcwd());
111 111
             });
112 112
 
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
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         return array_merge(
233 233
             [[null]],
234 234
             array_merge(...array_map(
235
-                static function (string $type) use ($reflector) : array {
235
+                static function(string $type) use ($reflector) : array {
236 236
                     return [
237 237
                         [ReflectionType::createFromTypeAndReflector($type, false, $reflector)],
238 238
                         [ReflectionType::createFromTypeAndReflector($type, true, $reflector)],
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      */
259 259
     public function testContravarianceConsidersNullability(string $type) : void
260 260
     {
261
-        $reflector   = new ClassReflector(new StringSourceLocator(
261
+        $reflector = new ClassReflector(new StringSourceLocator(
262 262
             <<<'PHP'
263 263
 <?php
264 264
 
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
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         return array_merge(
244 244
             [[null]],
245 245
             array_merge(...array_map(
246
-                static function (string $type) use ($reflector) : array {
246
+                static function(string $type) use ($reflector) : array {
247 247
                     return [
248 248
                         [ReflectionType::createFromTypeAndReflector($type, false, $reflector)],
249 249
                         [ReflectionType::createFromTypeAndReflector($type, true, $reflector)],
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      */
270 270
     public function testCovarianceConsidersNullability(string $type) : void
271 271
     {
272
-        $reflector   = new ClassReflector(new StringSourceLocator(
272
+        $reflector = new ClassReflector(new StringSourceLocator(
273 273
             <<<'PHP'
274 274
 <?php
275 275
 
Please login to merge, or discard this patch.
test/unit/Command/AssertBackwardsCompatibleTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     public function setUp() : void
77 77
     {
78
-        $repositoryPath = realpath(__DIR__ . '/../../../');
78
+        $repositoryPath = realpath(__DIR__.'/../../../');
79 79
 
80 80
         $this->sourceRepository = CheckedOutRepository::fromPath($repositoryPath);
81 81
 
@@ -290,8 +290,8 @@  discard block
 block discarded – undo
290 290
         $this->output
291 291
             ->expects(self::once())
292 292
             ->method('writeln')
293
-            ->willReturnCallback(static function (string $output) use ($changeToExpect) : void {
294
-                self::assertStringContainsString(' [BC] ' . $changeToExpect, $output);
293
+            ->willReturnCallback(static function(string $output) use ($changeToExpect) : void {
294
+                self::assertStringContainsString(' [BC] '.$changeToExpect, $output);
295 295
             });
296 296
 
297 297
         $this->compare->execute($this->input, $this->output);
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
         $this->getVersions->expects(self::once())
380 380
             ->method('fromRepository')
381
-            ->with(self::callback(function (CheckedOutRepository $checkedOutRepository) : bool {
381
+            ->with(self::callback(function(CheckedOutRepository $checkedOutRepository) : bool {
382 382
                 self::assertEquals($this->sourceRepository, $checkedOutRepository);
383 383
 
384 384
                 return true;
Please login to merge, or discard this patch.
src/Git/CheckedOutRepository.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 static function fromPath(string $path) : self
19 19
     {
20
-        Assert::that($path . '/.git')->directory();
20
+        Assert::that($path.'/.git')->directory();
21 21
         $instance       = new self();
22 22
         $instance->path = $path;
23 23
 
Please login to merge, or discard this patch.
src/LocateDependencies/LocateDependenciesViaComposer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
37 37
 
38 38
     public function __invoke(string $installationPath) : SourceLocator
39 39
     {
40
-        Assert::that($installationPath . '/composer.json')->file();
40
+        Assert::that($installationPath.'/composer.json')->file();
41 41
 
42
-        $this->runInDirectory(function () use ($installationPath) : void {
42
+        $this->runInDirectory(function() use ($installationPath) : void {
43 43
             $installer = ($this->makeComposerInstaller)($installationPath);
44 44
 
45 45
             assert($installer instanceof Installer);
Please login to merge, or discard this patch.