@@ -67,7 +67,7 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * @param string|array $url |
|
70 | + * @param string[] $url |
|
71 | 71 | * @return OpenBrowser |
72 | 72 | */ |
73 | 73 | protected function taskOpenBrowser($url) |
@@ -53,6 +53,6 @@ |
||
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 | } |
@@ -101,7 +101,7 @@ discard block |
||
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 |
||
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 { |
@@ -14,7 +14,7 @@ |
||
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 |
@@ -223,6 +223,6 @@ |
||
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 | } |
@@ -206,7 +206,7 @@ |
||
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 | { |
@@ -119,7 +119,7 @@ |
||
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) { |
@@ -144,7 +144,7 @@ |
||
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); |
@@ -4,7 +4,7 @@ |
||
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 | */ |
@@ -96,7 +96,7 @@ |
||
96 | 96 | return $this->shortenParameter(var_export($item, true)); |
97 | 97 | } |
98 | 98 | if (is_object($item)) { |
99 | - return '[' . get_class($item). ' object]'; |
|
99 | + return '[' . get_class($item) . ' object]'; |
|
100 | 100 | } |
101 | 101 | if (is_string($item)) { |
102 | 102 | return $this->shortenParameter("'$item'"); |
@@ -112,7 +112,7 @@ |
||
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 | } |