Completed
Push — master ( 8f2f9b...a2a1dd )
by Jindun
13s queued 10s
created
src/Command/Exception/PayloadException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
      */
11 11
     public static function emptyPayload(string $event): PayloadException
12 12
     {
13
-        return new self('payload missing for the event : ' . $event);
13
+        return new self('payload missing for the event : '.$event);
14 14
     }
15 15
 }
Please login to merge, or discard this patch.
src/aent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
  */
15 15
 
16
-require __DIR__ . '/../vendor/autoload.php';
16
+require __DIR__.'/../vendor/autoload.php';
17 17
 
18 18
 use TheAentMachine\AentApplication;
19 19
 use TheAentMachine\AentDockerCompose\Command\AddEventCommand;
Please login to merge, or discard this patch.
src/Command/RemoveEventCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
                 if (!empty($toDelete)) {
40 40
                     foreach ($toDelete as $file) {
41
-                        $this->log->info('Deleting ' . $file);
41
+                        $this->log->info('Deleting '.$file);
42 42
                         unlink($file);
43 43
                     }
44 44
                 }
Please login to merge, or discard this patch.
src/Command/DeleteServiceEventCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                     ->ask();
35 35
 
36 36
                 if ($doDelete) {
37
-                    $this->log->debug('deleting ' . implode('->', $elemToDelete) . ' in ' . $file);
37
+                    $this->log->debug('deleting '.implode('->', $elemToDelete).' in '.$file);
38 38
                     YamlTools::deleteYamlItem($elemToDelete, $file);
39 39
                 }
40 40
             }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                             ->ask();
51 51
 
52 52
                         if ($doDelete) {
53
-                            $this->log->debug('deleting ' . implode('->', $elemToDelete) . ' in ' . $file);
53
+                            $this->log->debug('deleting '.implode('->', $elemToDelete).' in '.$file);
54 54
                             YamlTools::deleteYamlItem($elemToDelete, $file);
55 55
                         }
56 56
                     }
Please login to merge, or discard this patch.
src/DockerCompose/DockerComposeService.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $containerProjectDir = Pheromone::getContainerProjectDirectory();
39 39
 
40 40
         $finder = new Finder();
41
-        $dockerComposeFileFilter = function (\SplFileInfo $file) {
41
+        $dockerComposeFileFilter = function(\SplFileInfo $file) {
42 42
             return $file->isFile() && preg_match('/^docker-compose(.)*\.(yaml|yml)$/', $file->getFilename());
43 43
         };
44 44
         $finder->files()->filter($dockerComposeFileFilter)->in($containerProjectDir)->depth('== 0');
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         /** @var \SplFileInfo $file */
47 47
         foreach ($finder as $file) {
48 48
             $this->files[] = new DockerComposeFile($file);
49
-            $this->log->info($file->getFilename() . ' has been found');
49
+            $this->log->info($file->getFilename().' has been found');
50 50
         }
51 51
     }
52 52
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         if (empty($this->files)) {
59 59
             $this->log->info("no docker-compose file found, let's create it");
60
-            $this->createDockerComposeFile(Pheromone::getContainerProjectDirectory() . '/docker-compose.yml');
60
+            $this->createDockerComposeFile(Pheromone::getContainerProjectDirectory().'/docker-compose.yml');
61 61
         }
62 62
         $pathnames = array();
63 63
         foreach ($this->files as $file) {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         // TODO ask questions about version and so on!
77 77
         $fileSystem = new Filesystem();
78
-        $fileSystem->dumpFile($path, "version: '" . self::VERSION . "'");
78
+        $fileSystem->dumpFile($path, "version: '".self::VERSION."'");
79 79
 
80 80
         $dirInfo = new \SplFileInfo(\dirname($path));
81 81
         chown($path, $dirInfo->getOwner());
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $file = new DockerComposeFile(new \SplFileInfo($path));
85 85
         $this->files[] = $file;
86
-        $this->log->info($file->getFilename() . ' was successfully created!');
86
+        $this->log->info($file->getFilename().' was successfully created!');
87 87
     }
88 88
 
89 89
     /**
@@ -93,20 +93,20 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public static function dockerComposeServiceSerialize(Service $service, string $version = self::VERSION): array
95 95
     {
96
-        $portMap = function (array $port): string {
97
-            return $port['source'] . ':' . $port['target'];
96
+        $portMap = function(array $port): string {
97
+            return $port['source'].':'.$port['target'];
98 98
         };
99
-        $labelMap = function (array $label): string {
99
+        $labelMap = function(array $label): string {
100 100
             return $label['value'];
101 101
         };
102
-        $envMap = function (EnvVariable $e): string {
102
+        $envMap = function(EnvVariable $e): string {
103 103
             return $e->getValue();
104 104
         };
105 105
         /**
106 106
          * @param NamedVolume|BindVolume|TmpfsVolume $v
107 107
          * @return array
108 108
          */
109
-        $volumeMap = function ($v): array {
109
+        $volumeMap = function($v): array {
110 110
             $array = [
111 111
                 'type' => $v->getType(),
112 112
                 'source' => $v->getSource(),
Please login to merge, or discard this patch.
src/Command/NewServiceEventCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $this->log->debug(\GuzzleHttp\json_encode($formattedPayload, JSON_PRETTY_PRINT));
39 39
 
40 40
         // docker-compose
41
-        $dockerComposePath = Pheromone::getContainerProjectDirectory() . '/' . $fileName;
41
+        $dockerComposePath = Pheromone::getContainerProjectDirectory().'/'.$fileName;
42 42
         DockerComposeService::mergeContentInDockerComposeFile($formattedPayload, $dockerComposePath, true);
43 43
 
44 44
         // Virtual Host
Please login to merge, or discard this patch.
src/Command/AddEventCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         }
32 32
 
33 33
         $projectDir = Pheromone::getContainerProjectDirectory();
34
-        $fileNameChoices= [];
34
+        $fileNameChoices = [];
35 35
         if (!file_exists("$projectDir/docker-compose.yml")) {
36 36
             $fileNameChoices[] = 'docker-compose.yml';
37 37
         }
Please login to merge, or discard this patch.