@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function _before(CliGuy $I) |
13 | 13 | { |
14 | - $I->amInPath(codecept_data_dir().'sandbox'); |
|
14 | + $I->amInPath(codecept_data_dir() . 'sandbox'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | public function toSimulateDirCreation(CliGuy $I) |
@@ -4,7 +4,7 @@ |
||
4 | 4 | { |
5 | 5 | public function _before(CliGuy $I) |
6 | 6 | { |
7 | - $I->amInPath(codecept_data_dir().'sandbox'); |
|
7 | + $I->amInPath(codecept_data_dir() . 'sandbox'); |
|
8 | 8 | } |
9 | 9 | |
10 | 10 | public function toCreateDir(CliGuy $I) |
@@ -89,7 +89,7 @@ |
||
89 | 89 | protected function findProjectBin() |
90 | 90 | { |
91 | 91 | $cwd = getcwd(); |
92 | - $candidates = [ __DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin', $cwd . '/vendor/bin' ]; |
|
92 | + $candidates = [__DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin', $cwd . '/vendor/bin']; |
|
93 | 93 | |
94 | 94 | // If this project is inside a vendor directory, give highest priority |
95 | 95 | // to that directory. |
@@ -35,7 +35,7 @@ |
||
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 | /** |
@@ -189,7 +189,7 @@ |
||
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 |
@@ -247,7 +247,7 @@ |
||
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); |
@@ -71,7 +71,7 @@ |
||
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; |
@@ -33,8 +33,8 @@ |
||
33 | 33 | $a = new ResultData(ResultData::EXITCODE_OK, '', ['one' => 'first', 'two' => 'second']); |
34 | 34 | |
35 | 35 | $to_be_merged = [ |
36 | - ['one' => 'ignored',], |
|
37 | - ['three' => 'new',], |
|
36 | + ['one' => 'ignored', ], |
|
37 | + ['three' => 'new', ], |
|
38 | 38 | ]; |
39 | 39 | |
40 | 40 | foreach ($to_be_merged as $mergeThis) { |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | { |
136 | 136 | $collection = $this; |
137 | 137 | $completionRegistrationTask = new CallableTask( |
138 | - function () use ($collection, $completionTask) { |
|
138 | + function() use ($collection, $completionTask) { |
|
139 | 139 | |
140 | 140 | $collection->registerCompletion($completionTask); |
141 | 141 | }, |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $context += ['name' => 'Progress']; |
179 | 179 | $context += TaskInfo::getTaskContext($this); |
180 | 180 | return $this->addCode( |
181 | - function () use ($level, $text, $context) { |
|
181 | + function() use ($level, $text, $context) { |
|
182 | 182 | $context += $this->getState()->getData(); |
183 | 183 | $this->printTaskOutput($level, $text, $context); |
184 | 184 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | { |
195 | 195 | $collection = $this; |
196 | 196 | $rollbackRegistrationTask = new CallableTask( |
197 | - function () use ($collection, $rollbackTask) { |
|
197 | + function() use ($collection, $rollbackTask) { |
|
198 | 198 | $collection->registerRollback($rollbackTask); |
199 | 199 | }, |
200 | 200 | $this |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | if ($task instanceof StackBasedTask) { |
248 | 248 | $task->stopOnFail(false); |
249 | 249 | } |
250 | - $ignoreErrorsInTask = function () use ($task) { |
|
250 | + $ignoreErrorsInTask = function() use ($task) { |
|
251 | 251 | $data = []; |
252 | 252 | try { |
253 | 253 | $result = $this->runSubtask($task); |
@@ -679,7 +679,7 @@ discard block |
||
679 | 679 | { |
680 | 680 | return $this->defer( |
681 | 681 | $task, |
682 | - function ($task, $state) use ($functionName, $stateKey) { |
|
682 | + function($task, $state) use ($functionName, $stateKey) { |
|
683 | 683 | $fn = [$task, $functionName]; |
684 | 684 | $value = $state[$stateKey]; |
685 | 685 | $fn($value); |