Completed
Push — master ( a243b0...e4b7e2 )
by Greg
02:20
created
src/Task/Testing/Codecept.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Robo\Exception\TaskException;
6 6
 use Robo\Task\BaseTask;
7 7
 use Robo\Contract\CommandInterface;
8
-use Symfony\Component\Process\Process;
9 8
 
10 9
 /**
11 10
  * Executes Codeception tests
Please login to merge, or discard this patch.
src/Task/Assets/ImageMinify.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -182,12 +182,12 @@  discard block
 block discarded – undo
182 182
         // guess the best path for the executables based on __DIR__
183 183
         if (($pos = strpos(__DIR__, 'consolidation/robo')) !== false) {
184 184
             // the executables should be stored in vendor/bin
185
-            $this->executableTargetDir = substr(__DIR__, 0, $pos).'bin';
185
+            $this->executableTargetDir = substr(__DIR__, 0, $pos) . 'bin';
186 186
         }
187 187
 
188 188
         // check if the executables are already available
189 189
         foreach ($this->imageminRepos as $exec => $url) {
190
-            $path = $this->executableTargetDir.'/'.$exec;
190
+            $path = $this->executableTargetDir . '/' . $exec;
191 191
             // if this is Windows add a .exe extension
192 192
             if (substr($this->getOS(), 0, 3) == 'win') {
193 193
                 $path .= '.exe';
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
             } catch (\InvalidArgumentException $e) {
290 290
                 // if finder cannot handle it, try with in()->name()
291 291
                 if (strpos($dir, '/') === false) {
292
-                    $dir = './'.$dir;
292
+                    $dir = './' . $dir;
293 293
                 }
294 294
                 $parts = explode('/', $dir);
295 295
                 $new_dir = implode('/', array_slice($parts, 0, -1));
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
      */
320 320
     protected function getTarget($file, $to)
321 321
     {
322
-        $target = $to.'/'.basename($file);
322
+        $target = $to . '/' . basename($file);
323 323
 
324 324
         return $target;
325 325
     }
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
     protected function getOS()
433 433
     {
434 434
         $os = php_uname('s');
435
-        $os .= '/'.php_uname('m');
435
+        $os .= '/' . php_uname('m');
436 436
         // replace x86_64 to x64, because the imagemin repo uses that
437 437
         $os = str_replace('x86_64', 'x64', $os);
438 438
         // replace i386, i686, etc to x86, because of imagemin
@@ -492,10 +492,10 @@  discard block
 block discarded – undo
492 492
         $this->printTaskInfo('Downloading the {executable} executable from the imagemin repository', ['executable' => $executable]);
493 493
 
494 494
         $os = $this->getOS();
495
-        $url = $this->imageminRepos[$executable].'/blob/master/vendor/'.$os.'/'.$executable.'?raw=true';
495
+        $url = $this->imageminRepos[$executable] . '/blob/master/vendor/' . $os . '/' . $executable . '?raw=true';
496 496
         if (substr($os, 0, 3) == 'win') {
497 497
             // if it is win, add a .exe extension
498
-            $url = $this->imageminRepos[$executable].'/blob/master/vendor/'.$os.'/'.$executable.'.exe?raw=true';
498
+            $url = $this->imageminRepos[$executable] . '/blob/master/vendor/' . $os . '/' . $executable . '.exe?raw=true';
499 499
         }
500 500
         $data = @file_get_contents($url, false, null);
501 501
         if ($data === false) {
@@ -525,10 +525,10 @@  discard block
 block discarded – undo
525 525
             mkdir($this->executableTargetDir);
526 526
         }
527 527
         // save the executable into the target dir
528
-        $path = $this->executableTargetDir.'/'.$executable;
528
+        $path = $this->executableTargetDir . '/' . $executable;
529 529
         if (substr($os, 0, 3) == 'win') {
530 530
             // if it is win, add a .exe extension
531
-            $path = $this->executableTargetDir.'/'.$executable.'.exe';
531
+            $path = $this->executableTargetDir . '/' . $executable . '.exe';
532 532
         }
533 533
         $result = file_put_contents($path, $data);
534 534
         if ($result === false) {
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
         chmod($path, 0755);
541 541
 
542 542
         // if everything successful, store the executable path
543
-        $this->executablePaths[$executable] = $this->executableTargetDir.'/'.$executable;
543
+        $this->executablePaths[$executable] = $this->executableTargetDir . '/' . $executable;
544 544
         // if it is win, add a .exe extension
545 545
         if (substr($os, 0, 3) == 'win') {
546 546
             $this->executablePaths[$executable] .= '.exe';
Please login to merge, or discard this patch.
src/Task/Testing/Atoum.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,6 @@
 block discarded – undo
83 83
 
84 84
     /**
85 85
      * Path to the bootstrap file.
86
-
87 86
      * @param string $file
88 87
      *
89 88
      * @return $this
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * Tag or Tags to filter.
50 50
      *
51
-     * @param string|string[] $tags
51
+     * @param string $tags
52 52
      *
53 53
      * @return $this
54 54
      */
@@ -125,6 +125,7 @@  discard block
 block discarded – undo
125 125
      * Test file or test files to run.
126 126
      *
127 127
      * @param string|string[]
128
+     * @param string[] $files
128 129
      *
129 130
      * @return $this
130 131
      */
@@ -138,6 +139,7 @@  discard block
 block discarded – undo
138 139
      *
139 140
      * @param string|string[]
140 141
      *   A single directory or a list of directories.
142
+     * @param string $directories
141 143
      *
142 144
      * @return $this
143 145
      */
Please login to merge, or discard this patch.
src/Task/Development/PackPhar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     {
130 130
         // run() will call advanceProgressIndicator() once for each
131 131
         // file, one after calling stopBuffering, and again after compression.
132
-        return count($this->files)+2;
132
+        return count($this->files) + 2;
133 133
     }
134 134
 
135 135
     /**
Please login to merge, or discard this patch.
src/Task/Development/OpenBrowser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function __construct($url)
37 37
     {
38
-        $this->urls = (array) $url;
38
+        $this->urls = (array)$url;
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.
src/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
      */
190 190
     public function cloneTask()
191 191
     {
192
-        $reflect  = new \ReflectionClass(get_class($this->task));
192
+        $reflect = new \ReflectionClass(get_class($this->task));
193 193
         return $reflect->newInstanceArgs(func_get_args());
194 194
     }
195 195
 
Please login to merge, or discard this patch.
src/Log/ResultPrinter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Robo\Contract\ProgressIndicatorAwareInterface;
7 7
 use Robo\Contract\VerbosityThresholdInterface;
8 8
 use Robo\Common\ProgressIndicatorAwareTrait;
9
-
10 9
 use Psr\Log\LogLevel;
11 10
 use Psr\Log\LoggerAwareInterface;
12 11
 use Psr\Log\LoggerAwareTrait;
Please login to merge, or discard this patch.
src/Common/ExecTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
         $this->process = $process;
248 248
 
249 249
         if (!$output_callback) {
250
-            $output_callback = function ($type, $buffer) {
250
+            $output_callback = function($type, $buffer) {
251 251
                 $progressWasVisible = $this->hideTaskProgress();
252 252
                 $this->writeMessage($buffer);
253 253
                 $this->showTaskProgress($progressWasVisible);
Please login to merge, or discard this patch.
src/Task/ApiGen/ApiGen.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         if (!is_array($args)) {
72 72
             $args = func_get_args();
73 73
         }
74
-        $args = array_map(function ($arg) {
74
+        $args = array_map(function($arg) {
75 75
             if (preg_match('/^\w+$/', trim($arg)) === 1) {
76 76
                 $this->operation = $arg;
77 77
                 return null;
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     }
166 166
 
167 167
     /**
168
-     * @param array|string|\Traversable $src
168
+     * @param string $src
169 169
      *   One or more source values.
170 170
      *
171 171
      * @return $this
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     }
191 191
 
192 192
     /**
193
-     * @param array|string $exts
193
+     * @param string $exts
194 194
      *   One or more extensions.
195 195
      *
196 196
      * @return $this
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     }
203 203
 
204 204
     /**
205
-     * @param array|string $exclude
205
+     * @param string[] $exclude
206 206
      *   One or more exclusions.
207 207
      *
208 208
      * @return $this
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     }
217 217
 
218 218
     /**
219
-     * @param array|string|\Traversable $path
219
+     * @param \SplDoublyLinkedList $path
220 220
      *   One or more skip-doc-path values.
221 221
      *
222 222
      * @return $this
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     }
245 245
 
246 246
     /**
247
-     * @param array|string $charset
247
+     * @param string[] $charset
248 248
      *   One or more charsets.
249 249
      *
250 250
      * @return $this
Please login to merge, or discard this patch.