Passed
Push — master ( b71b9a...0b31cd )
by Jonas
02:11
created
src/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
      */
47 47
     private function __construct()
48 48
     {
49
-        $this->configLocation = $_SERVER['HOME'] . $this->configLocation;
50
-        $this->configFileLocation = $this->configLocation . '/' . $this->configFile;
49
+        $this->configLocation = $_SERVER['HOME'].$this->configLocation;
50
+        $this->configFileLocation = $this->configLocation.'/'.$this->configFile;
51 51
         $this->setupConfiguration();
52 52
     }
53 53
 
Please login to merge, or discard this patch.
src/GetPathsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $table = new Table($output);
43 43
         $table
44 44
             ->setHeaders(['Path'])
45
-            ->setRows(array_map(function ($path) {
45
+            ->setRows(array_map(function($path) {
46 46
                 return [$path];
47 47
             }, $paths))
48 48
         ;
Please login to merge, or discard this patch.
src/RunCommand.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         try {
66 66
             $this->executeCommand($input, $output);
67 67
         } catch (BoilerException $exception) {
68
-            $output->write('<error>' . $exception->getMessage() . '</error>');
68
+            $output->write('<error>'.$exception->getMessage().'</error>');
69 69
         }
70 70
     }
71 71
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             return Yaml::parseFile($path);
109 109
         } catch (ParseException $exception) {
110 110
             throw new BoilerException(
111
-                'Template file `' . $path . '` could not be parsed',
111
+                'Template file `'.$path.'` could not be parsed',
112 112
                 $exception->getCode(),
113 113
                 $exception
114 114
             );
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             throw new BoilerException('Include function must be an array.');
134 134
         }
135 135
 
136
-        return array_map(function ($fileName) {
136
+        return array_map(function($fileName) {
137 137
             $templateFile = $this->findTemplateFile($fileName);
138 138
             $template = ($templateFile !== null) ? $this->parseTemplateFile($templateFile->getRealPath()) : null;
139 139
             return ($template) ? $template : [];
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         $templateFile = $this->findTemplateFile($templateFileName);
191 191
 
192 192
         if (is_null($templateFile)) {
193
-            throw new BoilerException('No template found with name ' . $templateFileName);
193
+            throw new BoilerException('No template found with name '.$templateFileName);
194 194
         }
195 195
 
196 196
         $template = $this->parseTemplateFile($templateFile->getRealPath());
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         ];
221 221
 
222 222
         foreach ($template['steps'] as $step) {
223
-            $output->writeln('<info>Executing ' . $template[$step]['name'] . '</info>');
223
+            $output->writeln('<info>Executing '.$template[$step]['name'].'</info>');
224 224
             $scripts = is_array($template[$step]['script']) ? $template[$step]['script'] : [$template[$step]['script']];
225 225
             foreach ($scripts as $script) {
226 226
                 $script = str_replace(array_keys($variables), array_values($variables), $script);
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         $template = $this->getValidTemplateArray($templateFileName);
250 250
 
251 251
         $templateName = $input->getOption('name') ? $input->getOption('name') : $template['name'];
252
-        $output->writeln('<info>Installing ' . $templateName . '</info>');
252
+        $output->writeln('<info>Installing '.$templateName.'</info>');
253 253
         $this->variables['template_name'] = $templateName;
254 254
 
255 255
         $directoryName = $input->getOption('dir') ? $input->getOption('dir') : $templateFileName;
@@ -275,15 +275,15 @@  discard block
 block discarded – undo
275 275
         $steps = $template['steps'];
276 276
         foreach ($steps as $step) {
277 277
             if (!array_key_exists($step, $template)) {
278
-                throw new BoilerException('The step `' . $step . '` does not exists.');
278
+                throw new BoilerException('The step `'.$step.'` does not exists.');
279 279
             }
280 280
 
281 281
             if (!array_key_exists('name', $template[$step])) {
282
-                throw new BoilerException('No `name` set for the step `' . $step . '`');
282
+                throw new BoilerException('No `name` set for the step `'.$step.'`');
283 283
             }
284 284
 
285 285
             if (!array_key_exists('script', $template[$step])) {
286
-                throw new BoilerException('No `script` set for the step `' . $step . '`');
286
+                throw new BoilerException('No `script` set for the step `'.$step.'`');
287 287
             }
288 288
         }
289 289
     }
Please login to merge, or discard this patch.