@@ -32,7 +32,7 @@ |
||
32 | 32 | $expectedRevision, |
33 | 33 | (new GitParseRevision())->fromStringForRepository( |
34 | 34 | $revisionToBeParsed, |
35 | - CheckedOutRepository::fromPath(__DIR__ . '/../../../') |
|
35 | + CheckedOutRepository::fromPath(__DIR__.'/../../../') |
|
36 | 36 | )->__toString() |
37 | 37 | ); |
38 | 38 | } |
@@ -18,14 +18,14 @@ |
||
18 | 18 | { |
19 | 19 | public function testFromPath() : void |
20 | 20 | { |
21 | - $path = sys_get_temp_dir() . '/' . uniqid('testPath', true); |
|
21 | + $path = sys_get_temp_dir().'/'.uniqid('testPath', true); |
|
22 | 22 | mkdir($path, 0777, true); |
23 | - mkdir($path . '/.git'); |
|
23 | + mkdir($path.'/.git'); |
|
24 | 24 | |
25 | 25 | $checkedOutRepository = CheckedOutRepository::fromPath($path); |
26 | 26 | self::assertSame($path, (string) $checkedOutRepository); |
27 | 27 | |
28 | - rmdir($path . '/.git'); |
|
28 | + rmdir($path.'/.git'); |
|
29 | 29 | rmdir($path); |
30 | 30 | } |
31 | 31 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | public static function fromPath(string $path) : self |
19 | 19 | { |
20 | 20 | Assert::that($path)->directory(); |
21 | - Assert::that($path . '/.git')->directory(); |
|
21 | + Assert::that($path.'/.git')->directory(); |
|
22 | 22 | $instance = new self(); |
23 | 23 | $instance->path = $path; |
24 | 24 | return $instance; |
@@ -34,7 +34,7 @@ |
||
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 |
@@ -11,9 +11,9 @@ |
||
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 | } |
@@ -13,12 +13,12 @@ |
||
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 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | self::assertSame( |
37 | 37 | $expectedMessages, |
38 | - array_map(function (Change $change) : string { |
|
38 | + array_map(function(Change $change) : string { |
|
39 | 39 | return $change->__toString(); |
40 | 40 | }, iterator_to_array($changes)) |
41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | array_combine( |
117 | 117 | array_keys($functions), |
118 | 118 | array_map( |
119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
120 | 120 | return [ |
121 | 121 | $fromReflector->reflect($function), |
122 | 122 | $toReflector->reflect($function), |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | self::assertSame( |
37 | 37 | $expectedMessages, |
38 | - array_map(function (Change $change) : string { |
|
38 | + array_map(function(Change $change) : string { |
|
39 | 39 | return $change->__toString(); |
40 | 40 | }, iterator_to_array($changes)) |
41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | array_combine( |
117 | 117 | array_keys($functions), |
118 | 118 | array_map( |
119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
120 | 120 | return [ |
121 | 121 | $fromReflector->reflect($function), |
122 | 122 | $toReflector->reflect($function), |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | self::assertSame( |
37 | 37 | $expectedMessages, |
38 | - array_map(function (Change $change) : string { |
|
38 | + array_map(function(Change $change) : string { |
|
39 | 39 | return $change->__toString(); |
40 | 40 | }, iterator_to_array($changes)) |
41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | array_combine( |
117 | 117 | array_keys($functions), |
118 | 118 | array_map( |
119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
120 | 120 | return [ |
121 | 121 | $fromReflector->reflect($function), |
122 | 122 | $toReflector->reflect($function), |