@@ -6,45 +6,45 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
| 8 | 8 | { |
| 9 | - public static $files = array ( |
|
| 10 | - 'a12da592622097d2b593a430e32e13fd' => __DIR__ . '/../..' . '/included-file-1.php', |
|
| 11 | - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/../..' . '/included-file-2.php', |
|
| 9 | + public static $files = array( |
|
| 10 | + 'a12da592622097d2b593a430e32e13fd' => __DIR__.'/../..'.'/included-file-1.php', |
|
| 11 | + '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__.'/../..'.'/included-file-2.php', |
|
| 12 | 12 | ); |
| 13 | 13 | |
| 14 | - public static $prefixLengthsPsr4 = array ( |
|
| 14 | + public static $prefixLengthsPsr4 = array( |
|
| 15 | 15 | 'p' => |
| 16 | - array ( |
|
| 16 | + array( |
|
| 17 | 17 | 'phpDocumentor\\Reflection\\' => 25, |
| 18 | 18 | ), |
| 19 | 19 | ); |
| 20 | 20 | |
| 21 | - public static $prefixDirsPsr4 = array ( |
|
| 21 | + public static $prefixDirsPsr4 = array( |
|
| 22 | 22 | 'phpDocumentor\\Reflection\\' => |
| 23 | - array ( |
|
| 24 | - 0 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src', |
|
| 25 | - 1 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src', |
|
| 26 | - 2 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src', |
|
| 23 | + array( |
|
| 24 | + 0 => __DIR__.'/..'.'/phpdocumentor/reflection-common/src', |
|
| 25 | + 1 => __DIR__.'/..'.'/phpdocumentor/reflection-docblock/src', |
|
| 26 | + 2 => __DIR__.'/..'.'/phpdocumentor/type-resolver/src', |
|
| 27 | 27 | ), |
| 28 | 28 | ); |
| 29 | 29 | |
| 30 | - public static $prefixesPsr0 = array ( |
|
| 30 | + public static $prefixesPsr0 = array( |
|
| 31 | 31 | 'P' => |
| 32 | - array ( |
|
| 32 | + array( |
|
| 33 | 33 | 'Prophecy\\' => |
| 34 | - array ( |
|
| 35 | - 0 => __DIR__ . '/..' . '/phpspec/prophecy/src', |
|
| 34 | + array( |
|
| 35 | + 0 => __DIR__.'/..'.'/phpspec/prophecy/src', |
|
| 36 | 36 | ), |
| 37 | 37 | ), |
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | - public static $classMap = array ( |
|
| 41 | - 'A\\ClassName' => __DIR__ . '/../..' . '/AClassName.php', |
|
| 42 | - 'B\\ClassName' => __DIR__ . '/../..' . '/BClassName.php', |
|
| 40 | + public static $classMap = array( |
|
| 41 | + 'A\\ClassName' => __DIR__.'/../..'.'/AClassName.php', |
|
| 42 | + 'B\\ClassName' => __DIR__.'/../..'.'/BClassName.php', |
|
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | public static function getInitializer(ClassLoader $loader) |
| 46 | 46 | { |
| 47 | - return \Closure::bind(function () use ($loader) { |
|
| 47 | + return \Closure::bind(function() use ($loader) { |
|
| 48 | 48 | $loader->prefixLengthsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixLengthsPsr4; |
| 49 | 49 | $loader->prefixDirsPsr4 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixDirsPsr4; |
| 50 | 50 | $loader->prefixesPsr0 = ComposerStaticInitaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::$prefixesPsr0; |
@@ -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 | } |
@@ -6,40 +6,40 @@ |
||
| 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; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | self::assertSame( |
| 36 | 36 | $expectedMessages, |
| 37 | - array_map(function (Change $change) : string { |
|
| 37 | + array_map(function(Change $change) : string { |
|
| 38 | 38 | return $change->__toString(); |
| 39 | 39 | }, iterator_to_array($changes)) |
| 40 | 40 | ); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | return array_combine( |
| 113 | 113 | array_keys($properties), |
| 114 | 114 | array_map( |
| 115 | - function (string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 115 | + function(string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
| 116 | 116 | return [ |
| 117 | 117 | $fromClass->getReflectionConstant($constant), |
| 118 | 118 | $toClass->getReflectionConstant($constant), |