@@ -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 | } |
@@ -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 |
@@ -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) { |
@@ -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 | } |
@@ -218,7 +218,7 @@ |
||
218 | 218 | */ |
219 | 219 | public function __toString() |
220 | 220 | { |
221 | - return (string) $this->getMinifiedText(); |
|
221 | + return (string)$this->getMinifiedText(); |
|
222 | 222 | } |
223 | 223 | |
224 | 224 | /** |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | |
300 | 300 | $methods = array_filter($methods); |
301 | 301 | |
302 | - $doc .= implode("\n", $methods)."\n"; |
|
302 | + $doc .= implode("\n", $methods) . "\n"; |
|
303 | 303 | |
304 | 304 | return $doc; |
305 | 305 | } |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | return implode( |
457 | 457 | "\n", |
458 | 458 | array_map( |
459 | - function ($line) use ($indent) { |
|
459 | + function($line) use ($indent) { |
|
460 | 460 | return substr($line, $indent); |
461 | 461 | }, |
462 | 462 | explode("\n", $doc) |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | $params = implode( |
474 | 474 | ', ', |
475 | 475 | array_map( |
476 | - function ($p) { |
|
476 | + function($p) { |
|
477 | 477 | return $this->documentParam($p); |
478 | 478 | }, |
479 | 479 | $reflectedMethod->getParameters() |
@@ -94,7 +94,7 @@ |
||
94 | 94 | $body = $this->description; |
95 | 95 | if (!empty($this->changes)) { |
96 | 96 | $changes = array_map( |
97 | - function ($line) { |
|
97 | + function($line) { |
|
98 | 98 | return "* $line"; |
99 | 99 | }, |
100 | 100 | $this->changes |
@@ -31,10 +31,10 @@ |
||
31 | 31 | { |
32 | 32 | $createRoboFile = new Command('init'); |
33 | 33 | $createRoboFile->setDescription("Intitalizes basic RoboFile in current dir"); |
34 | - $createRoboFile->setCode(function () use ($roboClass, $roboFile) { |
|
34 | + $createRoboFile->setCode(function() use ($roboClass, $roboFile) { |
|
35 | 35 | $output = Robo::output(); |
36 | 36 | $output->writeln("<comment> ~~~ Welcome to Robo! ~~~~ </comment>"); |
37 | - $output->writeln("<comment> ". basename($roboFile) ." will be created in the current directory </comment>"); |
|
37 | + $output->writeln("<comment> " . basename($roboFile) . " will be created in the current directory </comment>"); |
|
38 | 38 | file_put_contents( |
39 | 39 | $roboFile, |
40 | 40 | '<?php' |