@@ -63,12 +63,12 @@ |
||
| 63 | 63 | '{(^\s*+")App(\\\\\\\\":\s.*$\n)}m', |
| 64 | 64 | '{(^\s*+")App(\\\\\\\\Test\\\\\\\\":\s.*$\n)}m', |
| 65 | 65 | ], |
| 66 | - '$1' . $namespace . '$2', |
|
| 66 | + '$1'.$namespace.'$2', |
|
| 67 | 67 | $contents, |
| 68 | 68 | 1 |
| 69 | 69 | ); |
| 70 | 70 | |
| 71 | - file_put_contents($installationPath . '/composer.json', $contents); |
|
| 71 | + file_put_contents($installationPath.'/composer.json', $contents); |
|
| 72 | 72 | |
| 73 | 73 | $this->runInstall->exec(sprintf( |
| 74 | 74 | 'cd %s && rm -rf vendor/ composer.lock && composer install --ansi', |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | protected function removeCommunityFiles(string $installationPath): void |
| 67 | 67 | { |
| 68 | 68 | foreach (self::COMMUNITY_FILES as $fileToDelete) { |
| 69 | - $filePath = $installationPath . $fileToDelete; |
|
| 69 | + $filePath = $installationPath.$fileToDelete; |
|
| 70 | 70 | if (file_exists($filePath)) { |
| 71 | 71 | unlink($filePath); |
| 72 | 72 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | 55 | $installationPath = $this->installationPathQuestion->ask( |
| 56 | - dirname($this->composer->getInstallationManager()->getInstallPath($package), 3) . '/' |
|
| 56 | + dirname($this->composer->getInstallationManager()->getInstallPath($package), 3).'/' |
|
| 57 | 57 | ); |
| 58 | 58 | |
| 59 | 59 | $installer->install($installationPath); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | if (true === $installAnotherPackage) { |
| 44 | 44 | $packageName = $this->io->ask('Add package name "vendor/package": ', null); |
| 45 | 45 | /** @var string $response */ |
| 46 | - $response = file_get_contents(self::PACKAGIST_API . $packageName . '.json'); |
|
| 46 | + $response = file_get_contents(self::PACKAGIST_API.$packageName.'.json'); |
|
| 47 | 47 | /** @var array<string, mixed> $packageInfo */ |
| 48 | 48 | $packageInfo = json_decode( |
| 49 | 49 | $response, |
@@ -77,12 +77,12 @@ discard block |
||
| 77 | 77 | if (preg_match('`^(?:v)?\d+\.\d+\.\d+(?:\.\d+)?$`', $packageVersion)) { |
| 78 | 78 | $prefix = '^'; |
| 79 | 79 | } |
| 80 | - $packages[$packageName] = $prefix . $versions[$packageVersion]; |
|
| 80 | + $packages[$packageName] = $prefix.$versions[$packageVersion]; |
|
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | } catch (Throwable $exception) { |
| 84 | 84 | $installAnotherPackage = true; |
| 85 | - $this->io->writeError('<error>' . $exception->getMessage() . '</error>'); |
|
| 85 | + $this->io->writeError('<error>'.$exception->getMessage().'</error>'); |
|
| 86 | 86 | } |
| 87 | 87 | } while (true === $installAnotherPackage); |
| 88 | 88 | |