Completed
Pull Request — master (#14)
by ophelie
02:29
created
src/DockerCompose/ComposeFileCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $args = func_get_arg(0);
30 30
 
31 31
         if (!is_array($args)) {
32
-            throw new \Exception('Invalid parameter "(' . gettype($args) . ')');
32
+            throw new \Exception('Invalid parameter "('.gettype($args).')');
33 33
         }
34 34
 
35 35
         foreach ($args as $composeFile) {
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
                 $this->add(new ComposeFile($composeFile));
40 40
             } else {
41 41
                 throw new \Exception(
42
-                    'Invalid composeFile definition "(' . gettype(
42
+                    'Invalid composeFile definition "('.gettype(
43 43
                         $composeFile
44
-                    ) . ') ' . var_export(
44
+                    ).') '.var_export(
45 45
                         $composeFile,
46 46
                         true
47
-                    ) . '"'
47
+                    ).'"'
48 48
                 );
49 49
             }
50 50
         }
Please login to merge, or discard this patch.
src/DockerCompose/Manager/ComposeManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $command = 'kill';
78 78
 
79 79
         if ($signal !== 'SIGKILL') {
80
-            $command .= ' -s ' . $signal;
80
+            $command .= ' -s '.$signal;
81 81
         }
82 82
 
83 83
         return $this->processResult(
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     public function run($service, $command, $composeFiles = array())
167 167
     {
168
-        $command = 'run --rm ' . $service . ' ' . $command;
168
+        $command = 'run --rm '.$service.' '.$command;
169 169
         $result = $this->execute(
170 170
             $this->formatCommand($command, $this->createComposeFileCollection($composeFiles))
171 171
         );
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     {
201 201
         $command = $this->formatCommand('ps', $this->createComposeFileCollection($composeFiles));
202 202
 
203
-        $command = 'for CONTAINER in $(' . $command . ' -q); ';
203
+        $command = 'for CONTAINER in $('.$command.' -q); ';
204 204
         $command .= 'do echo "$(docker inspect --format \' {{ .Name }} \' $CONTAINER)\t';
205 205
         $command .= '$(docker inspect --format \' {{ .NetworkSettings.IPAddress }} \' $CONTAINER)"; done';
206 206
 
Please login to merge, or discard this patch.