@@ -10,6 +10,6 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function __construct() |
| 12 | 12 | { |
| 13 | - parent::__construct('environment variable ' . PheromoneEnum::PHEROMONE_CONTAINER_PROJECT_DIR . ' is empty'); |
|
| 13 | + parent::__construct('environment variable '.PheromoneEnum::PHEROMONE_CONTAINER_PROJECT_DIR.' is empty'); |
|
| 14 | 14 | } |
| 15 | 15 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public static function dispatch(string $event, ?string $payload = null): int |
| 16 | 16 | { |
| 17 | - $command = Hermes::BINARY . " dispatch $event"; |
|
| 17 | + $command = Hermes::BINARY." dispatch $event"; |
|
| 18 | 18 | if (!empty($payload)) { |
| 19 | 19 | $command .= " $payload"; |
| 20 | 20 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public static function reply(string $event, ?string $payload = null): int |
| 35 | 35 | { |
| 36 | - $command = Hermes::BINARY . " reply $event"; |
|
| 36 | + $command = Hermes::BINARY." reply $event"; |
|
| 37 | 37 | if (!empty($payload)) { |
| 38 | 38 | $command .= " $payload"; |
| 39 | 39 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public static function setHandledEvents(array $events): int |
| 15 | 15 | { |
| 16 | - $command = Hercule::BINARY . ' set:handled-events'; |
|
| 16 | + $command = Hercule::BINARY.' set:handled-events'; |
|
| 17 | 17 | foreach ($events as $event) { |
| 18 | 18 | $command .= " $event"; |
| 19 | 19 | } |
@@ -36,14 +36,14 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $finder = new Finder(); |
| 39 | - $dockerComposeFileFilter = function (\SplFileInfo $file) { |
|
| 39 | + $dockerComposeFileFilter = function(\SplFileInfo $file) { |
|
| 40 | 40 | return $file->isFile() && preg_match('/^docker-compose(.)*\.(yaml|yml)$/', $file->getFilename()); |
| 41 | 41 | }; |
| 42 | 42 | $finder->files()->filter($dockerComposeFileFilter)->in($containerProjectDir)->depth('== 0'); |
| 43 | 43 | |
| 44 | 44 | if (!$finder->hasResults()) { |
| 45 | 45 | $this->log->infoln("no docker-compose file found, let's create it"); |
| 46 | - $this->createDockerComposeFile($containerProjectDir . '/docker-compose.yml'); |
|
| 46 | + $this->createDockerComposeFile($containerProjectDir.'/docker-compose.yml'); |
|
| 47 | 47 | return; |
| 48 | 48 | } |
| 49 | 49 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | if (count($this->files) === 1) { |
| 56 | - $this->log->infoln($this->files[0]->getFilename() . ' has been found'); |
|
| 56 | + $this->log->infoln($this->files[0]->getFilename().' has been found'); |
|
| 57 | 57 | return; |
| 58 | 58 | } |
| 59 | 59 | |
@@ -71,6 +71,6 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | $file = new DockerComposeFile(new \SplFileInfo($path)); |
| 73 | 73 | $this->files[] = $file; |
| 74 | - $this->log->infoln($file->getFilename() . ' was successfully created!'); |
|
| 74 | + $this->log->infoln($file->getFilename().' was successfully created!'); |
|
| 75 | 75 | } |
| 76 | 76 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | #!/usr/bin/env php |
| 2 | 2 | <?php |
| 3 | 3 | |
| 4 | -require __DIR__ . '/../vendor/autoload.php'; |
|
| 4 | +require __DIR__.'/../vendor/autoload.php'; |
|
| 5 | 5 | |
| 6 | 6 | use Symfony\Component\Console\Application; |
| 7 | 7 | use TheAentMachine\AentDockerCompose\Command\RootCommand; |