@@ -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 | /** |
@@ -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 |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | ->withMethodCall( |
| 144 | 144 | 'setDisplayErrorFunction', |
| 145 | 145 | [ |
| 146 | - function ($output, $message) use ($container) { |
|
| 146 | + function($output, $message) use ($container) { |
|
| 147 | 147 | $logger = $container->get('logger'); |
| 148 | 148 | $logger->error($message); |
| 149 | 149 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | { |
| 37 | 37 | if (!static::$collection) { |
| 38 | 38 | static::$collection = \Robo\Robo::getContainer()->get('collection'); |
| 39 | - register_shutdown_function(function () { |
|
| 39 | + register_shutdown_function(function() { |
|
| 40 | 40 | static::complete(); |
| 41 | 41 | }); |
| 42 | 42 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function call(callable $fn) |
| 60 | 60 | { |
| 61 | 61 | return $this->withEachKeyValueCall( |
| 62 | - function ($key, $value) use ($fn) { |
|
| 62 | + function($key, $value) use ($fn) { |
|
| 63 | 63 | return call_user_func($fn, $value); |
| 64 | 64 | } |
| 65 | 65 | ); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | public function withBuilder(callable $fn) |
| 69 | 69 | { |
| 70 | 70 | $this->countingStack[] = |
| 71 | - function ($key, $value) use ($fn) { |
|
| 71 | + function($key, $value) use ($fn) { |
|
| 72 | 72 | // Create a new builder for every iteration |
| 73 | 73 | $builder = $this->collectionBuilder(); |
| 74 | 74 | // The user function should build task operations using |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | return $builder->getCollection()->progressIndicatorSteps(); |
| 79 | 79 | }; |
| 80 | 80 | return $this->withEachKeyValueCall( |
| 81 | - function ($key, $value) use ($fn) { |
|
| 81 | + function($key, $value) use ($fn) { |
|
| 82 | 82 | // Create a new builder for every iteration |
| 83 | 83 | $builder = $this->collectionBuilder() |
| 84 | 84 | ->setParentCollection($this->parentCollection); |
@@ -55,11 +55,11 @@ |
||
| 55 | 55 | Robo::setContainer($container); |
| 56 | 56 | $this->setContainer($container); |
| 57 | 57 | |
| 58 | - $this->getModule('Filesystem')->copyDir(codecept_data_dir().'claypit', codecept_data_dir().'sandbox'); |
|
| 58 | + $this->getModule('Filesystem')->copyDir(codecept_data_dir() . 'claypit', codecept_data_dir() . 'sandbox'); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | public function _after(\Codeception\TestCase $test) { |
| 62 | - $this->getModule('Filesystem')->deleteDir(codecept_data_dir().'sandbox'); |
|
| 62 | + $this->getModule('Filesystem')->deleteDir(codecept_data_dir() . 'sandbox'); |
|
| 63 | 63 | $this->getContainer()->add('output', new ConsoleOutput()); |
| 64 | 64 | chdir(codecept_root_dir()); |
| 65 | 65 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | ->extensions('php') // single string value of List |
| 38 | 38 | ->exclude(array('test', 'tmp')) // array value of Traversable |
| 39 | 39 | ->skipDocPath($skippedPaths) // multi-value of Traversable |
| 40 | - ->charset(array('utf8','iso88591')) // array of List |
|
| 40 | + ->charset(array('utf8', 'iso88591')) // array of List |
|
| 41 | 41 | ->internal('no') // boolean as supported "no" |
| 42 | 42 | ->php(true) // boolean as boolean |
| 43 | 43 | ->tree('Y') // boolean as string |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | // tests |
| 22 | 22 | public function testBowerInstall() |
| 23 | 23 | { |
| 24 | - $bower = test::double('Robo\Task\Bower\Install', ['executeCommand' => null, 'logger' => new \Psr\Log\NullLogger(),]); |
|
| 24 | + $bower = test::double('Robo\Task\Bower\Install', ['executeCommand' => null, 'logger' => new \Psr\Log\NullLogger(), ]); |
|
| 25 | 25 | (new \Robo\Task\Bower\Install('bower'))->run(); |
| 26 | 26 | $bower->verifyInvoked('executeCommand', ['bower install']); |
| 27 | 27 | } |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | $message = $argv[1]; |
| 4 | 4 | $iterations = $argv[2]; |
| 5 | -for ($i=0; $i < $iterations; ++$i) { |
|
| 5 | +for ($i = 0; $i < $iterations; ++$i) { |
|
| 6 | 6 | print "$message\n"; |
| 7 | 7 | sleep(1); |
| 8 | 8 | } |