Completed
Pull Request — master (#499)
by .
03:14
created
src/Common/TimeKeeper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
         if ($duration > self::MINUTE) {
54 54
             return gmdate("i:s", $duration);
55 55
         }
56
-        return round($duration, 3).'s';
56
+        return round($duration, 3) . 's';
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
src/Common/ExecCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
     protected function findProjectBin()
103 103
     {
104
-        $candidates = [ __DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin' ];
104
+        $candidates = [__DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin'];
105 105
 
106 106
         // If this project is inside a vendor directory, give highest priority
107 107
         // to that directory.
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         }
146 146
         $this->getExecTimer()->start();
147 147
         if ($this->isPrinted) {
148
-            $process->run(function ($type, $buffer) {
148
+            $process->run(function($type, $buffer) {
149 149
                 print $buffer;
150 150
             });
151 151
         } else {
Please login to merge, or discard this patch.
src/Common/DynamicParams.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function __call($property, $args)
15 15
     {
16 16
         if (!property_exists($this, $property)) {
17
-            throw new \RuntimeException("Property $property in task ".get_class($this).' does not exists');
17
+            throw new \RuntimeException("Property $property in task " . get_class($this) . ' does not exists');
18 18
         }
19 19
 
20 20
         // toggle boolean values
Please login to merge, or discard this patch.
src/Task/Archive/Extract.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,6 +223,6 @@
 block discarded – undo
223 223
 
224 224
     protected static function getTmpDir()
225 225
     {
226
-        return getcwd().'/tmp'.rand().time();
226
+        return getcwd() . '/tmp' . rand() . time();
227 227
     }
228 228
 }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
     /**
207 207
      * @param string $filename
208 208
      *
209
-     * @return bool|string
209
+     * @return string|false
210 210
      */
211 211
     protected static function archiveType($filename)
212 212
     {
Please login to merge, or discard this patch.
src/Task/Base/ParallelExec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
             if ($p->getExitCode() === 0) {
120 120
                 continue;
121 121
             }
122
-            $errorMessage .= "'" . $p->getCommandLine() . "' exited with code ". $p->getExitCode()." \n";
122
+            $errorMessage .= "'" . $p->getCommandLine() . "' exited with code " . $p->getExitCode() . " \n";
123 123
             $exitCode = max($exitCode, $p->getExitCode());
124 124
         }
125 125
         if (!$errorMessage) {
Please login to merge, or discard this patch.
src/Task/Base/Exec.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
         if (!$this->background and $this->isPrinted) {
145 145
             $this->startTimer();
146 146
             $this->process->run(
147
-                function ($type, $buffer) {
147
+                function($type, $buffer) {
148 148
                     $progressWasVisible = $this->hideTaskProgress();
149 149
                     print($buffer);
150 150
                     $this->showTaskProgress($progressWasVisible);
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 trait loadTasks
5 5
 {
6 6
     /**
7
-     * @param string|\Robo\Contract\CommandInterface $command
7
+     * @param string $command
8 8
      *
9 9
      * @return Exec
10 10
      */
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
@@ -73,7 +73,6 @@
 block discarded – undo
73 73
 
74 74
     /**
75 75
      * Path to the bootstrap file.
76
-
77 76
      * @param $file
78 77
      *
79 78
      * @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|array $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|array
128
+     * @param string[] $files
128 129
      *
129 130
      * @return $this
130 131
      */
@@ -137,6 +138,7 @@  discard block
 block discarded – undo
137 138
      * Test directory or directories to run.
138 139
      *
139 140
      * @param string|array A single directory or a list of directories.
141
+     * @param string $directories
140 142
      *
141 143
      * @return $this
142 144
      */
Please login to merge, or discard this patch.
src/Task/File/Write.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      */
113 113
     public function place($name, $val)
114 114
     {
115
-        $this->replace('{'.$name.'}', $val);
115
+        $this->replace('{' . $name . '}', $val);
116 116
 
117 117
         return $this;
118 118
     }
Please login to merge, or discard this patch.
src/Task/Filesystem/FlattenDir.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function dirPermissions($permission)
112 112
     {
113
-        $this->chmod = (int) $permission;
113
+        $this->chmod = (int)$permission;
114 114
 
115 115
         return $this;
116 116
     }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     {
158 158
         if (!$this->fs->isAbsolutePath($dir)) {
159 159
             // attach the relative path to current working directory
160
-            $dir = getcwd().'/'.$dir;
160
+            $dir = getcwd() . '/' . $dir;
161 161
         }
162 162
         $this->parentDir = $dir;
163 163
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
             } catch (\InvalidArgumentException $e) {
205 205
                 // if finder cannot handle it, try with in()->name()
206 206
                 if (strpos($dir, '/') === false) {
207
-                    $dir = './'.$dir;
207
+                    $dir = './' . $dir;
208 208
                 }
209 209
                 $parts = explode('/', $dir);
210 210
                 $new_dir = implode('/', array_slice($parts, 0, -1));
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 
229 229
     protected function getTarget($file, $to)
230 230
     {
231
-        $target = $to.'/'.basename($file);
231
+        $target = $to . '/' . basename($file);
232 232
         if ($this->parents !== array(0, 0)) {
233 233
             // if the parent is set, create additional directories inside target
234 234
             // get relative path to parentDir
@@ -236,10 +236,10 @@  discard block
 block discarded – undo
236 236
             // get top parents and bottom parents
237 237
             $parts = explode('/', rtrim($rel_path, '/'));
238 238
             $prefix_dir = '';
239
-            $prefix_dir .= ($this->parents[0] > 0 ? implode('/', array_slice($parts, 0, $this->parents[0])).'/' : '');
239
+            $prefix_dir .= ($this->parents[0] > 0 ? implode('/', array_slice($parts, 0, $this->parents[0])) . '/' : '');
240 240
             $prefix_dir .= ($this->parents[1] > 0 ? implode('/', array_slice($parts, (0 - $this->parents[1]), $this->parents[1])) : '');
241 241
             $prefix_dir = rtrim($prefix_dir, '/');
242
-            $target = $to.'/'.$prefix_dir.'/'.basename($file);
242
+            $target = $to . '/' . $prefix_dir . '/' . basename($file);
243 243
         }
244 244
 
245 245
         return $target;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
     }
199 199
 
200 200
     /**
201
-     * @param array $dirs
201
+     * @param string[] $dirs
202 202
      *
203 203
      * @return array|\Robo\Result
204 204
      *
Please login to merge, or discard this patch.