@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | ; |
| 44 | 44 | $event = new ReloadBashConfigEvent($logger); |
| 45 | 45 | $dispatcher = new Dispatcher(); |
| 46 | - $dispatcher->addListener(ReloadBashConfigEvent::NAME, function ($event): void { |
|
| 46 | + $dispatcher->addListener(ReloadBashConfigEvent::NAME, function($event): void { |
|
| 47 | 47 | $event->addHeaderConfig('dispatched'); |
| 48 | 48 | }); |
| 49 | 49 | $dispatcher->dispatch(ReloadBashConfigEvent::NAME, $event); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $process = $this->processor->create($cmd); |
| 145 | 145 | $process->setTimeout(3600); |
| 146 | 146 | $process->setIdleTimeout(60); |
| 147 | - $process->run(function ($type, $buffer): void { |
|
| 147 | + $process->run(function($type, $buffer): void { |
|
| 148 | 148 | //@codeCoverageIgnoreStart |
| 149 | 149 | if (Process::ERR === $type) { |
| 150 | 150 | $this->logger->error($buffer); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $this->downloader->expects($this->once()) |
| 67 | 67 | ->method('run') |
| 68 | 68 | ->with(Installer::DOWNLOAD_URL, $tempDir.'/temp/phpbrew') |
| 69 | - ->will($this->returnCallback(function () use ($tempDir): void { |
|
| 69 | + ->will($this->returnCallback(function() use ($tempDir): void { |
|
| 70 | 70 | touch($tempDir.'/temp/phpbrew'); |
| 71 | 71 | })) |
| 72 | 72 | ; |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | 'init', |
| 107 | 107 | ); |
| 108 | 108 | $process = new Process($cmd); |
| 109 | - $process->run(function ($type, $buffer): void { |
|
| 109 | + $process->run(function($type, $buffer): void { |
|
| 110 | 110 | //@codeCoverageIgnoreStart |
| 111 | 111 | if (Process::ERR === $type) { |
| 112 | 112 | $this->logger->error('phpbrew: '.$buffer); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $this->debug("executing <comment>$file</comment>"); |
| 168 | 168 | $cmd = $file; |
| 169 | 169 | $process = new Process($cmd); |
| 170 | - $process->run(function ($type, $buffer): void { |
|
| 170 | + $process->run(function($type, $buffer): void { |
|
| 171 | 171 | if (Process::ERR === $type) { |
| 172 | 172 | $this->output->writeln("Error: $buffer"); |
| 173 | 173 | } else { |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | ->method('run') |
| 121 | 121 | ->will( |
| 122 | 122 | $this->returnCallback( |
| 123 | - function ($url, $target) use ($versionFile): void { |
|
| 123 | + function($url, $target) use ($versionFile): void { |
|
| 124 | 124 | file_put_contents($target, $versionFile, LOCK_EX); |
| 125 | 125 | } |
| 126 | 126 | ) |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | ->method('run') |
| 144 | 144 | ->will( |
| 145 | 145 | $this->returnCallback( |
| 146 | - function ($url, $target): void { |
|
| 146 | + function($url, $target): void { |
|
| 147 | 147 | touch($target); |
| 148 | 148 | } |
| 149 | 149 | ) |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | private function findFileWithExtension($class, $ext) |
| 371 | 371 | { |
| 372 | 372 | // PSR-4 lookup |
| 373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
| 373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
| 374 | 374 | |
| 375 | 375 | $first = $class[0]; |
| 376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
@@ -379,9 +379,9 @@ discard block |
||
| 379 | 379 | $subPath = substr($subPath, 0, $lastPos); |
| 380 | 380 | $search = $subPath.'\\'; |
| 381 | 381 | if (isset($this->prefixDirsPsr4[$search])) { |
| 382 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
| 382 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
| 383 | 383 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
| 384 | - if (file_exists($file = $dir . $pathEnd)) { |
|
| 384 | + if (file_exists($file = $dir.$pathEnd)) { |
|
| 385 | 385 | return $file; |
| 386 | 386 | } |
| 387 | 387 | } |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | |
| 392 | 392 | // PSR-4 fallback dirs |
| 393 | 393 | foreach ($this->fallbackDirsPsr4 as $dir) { |
| 394 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
| 394 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
| 395 | 395 | return $file; |
| 396 | 396 | } |
| 397 | 397 | } |
@@ -403,14 +403,14 @@ discard block |
||
| 403 | 403 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
| 404 | 404 | } else { |
| 405 | 405 | // PEAR-like class name |
| 406 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
| 406 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | if (isset($this->prefixesPsr0[$first])) { |
| 410 | 410 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
| 411 | 411 | if (0 === strpos($class, $prefix)) { |
| 412 | 412 | foreach ($dirs as $dir) { |
| 413 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
| 413 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
| 414 | 414 | return $file; |
| 415 | 415 | } |
| 416 | 416 | } |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | |
| 421 | 421 | // PSR-0 fallback dirs |
| 422 | 422 | foreach ($this->fallbackDirsPsr0 as $dir) { |
| 423 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
| 423 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
| 424 | 424 | return $file; |
| 425 | 425 | } |
| 426 | 426 | } |
@@ -6,23 +6,23 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInit8a8fe2d46b0ff5f656d9275511bac275 |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'D' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'Dotfiles\\Plugins\\Foo\\' => 21, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'Dotfiles\\Plugins\\Foo\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/../..' . '/src', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/../..'.'/src', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | 23 | public static function getInitializer(ClassLoader $loader) |
| 24 | 24 | { |
| 25 | - return \Closure::bind(function () use ($loader) { |
|
| 25 | + return \Closure::bind(function() use ($loader) { |
|
| 26 | 26 | $loader->prefixLengthsPsr4 = ComposerStaticInit8a8fe2d46b0ff5f656d9275511bac275::$prefixLengthsPsr4; |
| 27 | 27 | $loader->prefixDirsPsr4 = ComposerStaticInit8a8fe2d46b0ff5f656d9275511bac275::$prefixDirsPsr4; |
| 28 | 28 | |