@@ -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\GlobalState; |
14 | 14 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $exporter = new CodeExporter; |
32 | 32 | |
33 | 33 | $this->assertEquals( |
34 | - '$GLOBALS = [];' . PHP_EOL . '$GLOBALS[\'foo\'] = \'bar\';' . PHP_EOL, |
|
34 | + '$GLOBALS = [];'.PHP_EOL.'$GLOBALS[\'foo\'] = \'bar\';'.PHP_EOL, |
|
35 | 35 | $exporter->globalVariables($snapshot) |
36 | 36 | ); |
37 | 37 | } |
@@ -8,7 +8,7 @@ |
||
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\GlobalState; |
14 | 14 |
@@ -8,7 +8,7 @@ |
||
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\GlobalState; |
14 | 14 |
@@ -8,7 +8,7 @@ |
||
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\GlobalState; |
14 | 14 |
@@ -8,7 +8,7 @@ |
||
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\GlobalState; |
14 | 14 |
@@ -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\GlobalState; |
14 | 14 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | foreach ($snapshot->constants() as $name => $value) { |
25 | 25 | $result .= \sprintf( |
26 | - 'if (!defined(\'%s\')) define(\'%s\', %s);' . "\n", |
|
26 | + 'if (!defined(\'%s\')) define(\'%s\', %s);'."\n", |
|
27 | 27 | $name, |
28 | 28 | $name, |
29 | 29 | $this->exportVariable($value) |
@@ -35,11 +35,11 @@ discard block |
||
35 | 35 | |
36 | 36 | public function globalVariables(Snapshot $snapshot): string |
37 | 37 | { |
38 | - $result = '$GLOBALS = [];' . PHP_EOL; |
|
38 | + $result = '$GLOBALS = [];'.PHP_EOL; |
|
39 | 39 | |
40 | 40 | foreach ($snapshot->globalVariables() as $name => $value) { |
41 | 41 | $result .= \sprintf( |
42 | - '$GLOBALS[%s] = %s;' . PHP_EOL, |
|
42 | + '$GLOBALS[%s] = %s;'.PHP_EOL, |
|
43 | 43 | $this->exportVariable($name), |
44 | 44 | $this->exportVariable($value) |
45 | 45 | ); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | foreach ($snapshot->iniSettings() as $key => $value) { |
56 | 56 | $result .= \sprintf( |
57 | - '@ini_set(%s, %s);' . "\n", |
|
57 | + '@ini_set(%s, %s);'."\n", |
|
58 | 58 | $this->exportVariable($key), |
59 | 59 | $this->exportVariable($value) |
60 | 60 | ); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | return \var_export($variable, true); |
71 | 71 | } |
72 | 72 | |
73 | - return 'unserialize(' . \var_export(\serialize($variable), true) . ')'; |
|
73 | + return 'unserialize('.\var_export(\serialize($variable), true).')'; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | private function arrayOnlyContainsScalars(array $array): bool |
@@ -8,7 +8,7 @@ |
||
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\GlobalState; |
14 | 14 |
@@ -8,7 +8,7 @@ |
||
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\GlobalState; |
14 | 14 |
@@ -8,7 +8,7 @@ |
||
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\ObjectReflector\TestFixture; |
14 | 14 |