@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * file that was distributed with this source code. |
9 | 9 | */ |
10 | 10 | |
11 | -declare(strict_types=1); |
|
11 | +declare(strict_types = 1); |
|
12 | 12 | |
13 | 13 | namespace SebastianBergmann\Environment; |
14 | 14 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | self::$binary = PHP_BINARY; |
63 | 63 | } |
64 | 64 | |
65 | - self::$binary = \escapeshellarg(self::$binary) . ' --php' . |
|
65 | + self::$binary = \escapeshellarg(self::$binary).' --php'. |
|
66 | 66 | ' -d hhvm.php7.all=1'; |
67 | 67 | // @codeCoverageIgnoreEnd |
68 | 68 | } |
@@ -74,9 +74,9 @@ discard block |
||
74 | 74 | if (self::$binary === null) { |
75 | 75 | // @codeCoverageIgnoreStart |
76 | 76 | $possibleBinaryLocations = [ |
77 | - PHP_BINDIR . '/php', |
|
78 | - PHP_BINDIR . '/php-cli.exe', |
|
79 | - PHP_BINDIR . '/php.exe' |
|
77 | + PHP_BINDIR.'/php', |
|
78 | + PHP_BINDIR.'/php-cli.exe', |
|
79 | + PHP_BINDIR.'/php.exe' |
|
80 | 80 | ]; |
81 | 81 | |
82 | 82 | foreach ($possibleBinaryLocations as $binary) { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | public function getNameWithVersion(): string |
101 | 101 | { |
102 | - return $this->getName() . ' ' . $this->getVersion(); |
|
102 | + return $this->getName().' '.$this->getVersion(); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | public function getName(): string |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | if (count(explode('.', $this->release)) == 3) { |
50 | 50 | $this->version = $this->release; |
51 | 51 | } else { |
52 | - $this->version = $this->release . '-dev'; |
|
52 | + $this->version = $this->release.'-dev'; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | $git = $this->getGitInformation($this->path); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } else { |
61 | 61 | $git = explode('-', $git); |
62 | 62 | |
63 | - $this->version = $this->release . '-' . end($git); |
|
63 | + $this->version = $this->release.'-'.end($git); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | private function getGitInformation($path) |
77 | 77 | { |
78 | - if (!is_dir($path . DIRECTORY_SEPARATOR . '.git')) { |
|
78 | + if (!is_dir($path.DIRECTORY_SEPARATOR.'.git')) { |
|
79 | 79 | return false; |
80 | 80 | } |
81 | 81 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | public function testParse() |
35 | 35 | { |
36 | - $content = \file_get_contents(__DIR__ . '/fixtures/patch.txt'); |
|
36 | + $content = \file_get_contents(__DIR__.'/fixtures/patch.txt'); |
|
37 | 37 | |
38 | 38 | $diffs = $this->parser->parse($content); |
39 | 39 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | public function testParseWithMultipleChunks() |
56 | 56 | { |
57 | - $content = \file_get_contents(__DIR__ . '/fixtures/patch2.txt'); |
|
57 | + $content = \file_get_contents(__DIR__.'/fixtures/patch2.txt'); |
|
58 | 58 | |
59 | 59 | $diffs = $this->parser->parse($content); |
60 | 60 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -119,15 +119,15 @@ discard block |
||
119 | 119 | |
120 | 120 | public function testCommonSubsequence() |
121 | 121 | { |
122 | - $from = ['A', 'C', 'E', 'F', 'G']; |
|
123 | - $to = ['A', 'B', 'D', 'E', 'H']; |
|
124 | - $expected = ['A', 'E']; |
|
122 | + $from = ['A', 'C', 'E', 'F', 'G']; |
|
123 | + $to = ['A', 'B', 'D', 'E', 'H']; |
|
124 | + $expected = ['A', 'E']; |
|
125 | 125 | $common = $this->implementation->calculate($from, $to); |
126 | 126 | $this->assertSame($expected, $common); |
127 | 127 | |
128 | - $from = ['A', 'C', 'E', 'F', 'G']; |
|
129 | - $to = ['B', 'C', 'D', 'E', 'F', 'H']; |
|
130 | - $expected = ['C', 'E', 'F']; |
|
128 | + $from = ['A', 'C', 'E', 'F', 'G']; |
|
129 | + $to = ['B', 'C', 'D', 'E', 'F', 'H']; |
|
130 | + $expected = ['C', 'E', 'F']; |
|
131 | 131 | $common = $this->implementation->calculate($from, $to); |
132 | 132 | $this->assertSame($expected, $common); |
133 | 133 |