Completed
Pull Request — master (#671)
by Antonio
02:59
created
tests/cli/CollectionCest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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 toRunMultipleTasksViaACollectionBuilder(CliGuy $I)
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 ->mkdir('stuff')
151 151
             ->taskForEach($processList)
152 152
                 ->withBuilder(
153
-                    function ($builder, $key, $value) {
153
+                    function($builder, $key, $value) {
154 154
                         return $builder
155 155
                             ->taskFilesystemStack()
156 156
                                 ->touch("stuff/{$value}.txt");
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
         $collection = $I->getContainer()->get('collection');
399 399
 
400 400
         $collection->addCode(
401
-            function () {
401
+            function() {
402 402
                 throw new \RuntimeException('Error');
403 403
             }
404 404
         );
Please login to merge, or discard this patch.
tests/cli/FlattenDirCept.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 $I = new CliGuy($scenario);
3 3
 
4 4
 $I->wantTo('flatten dir with FlattenDir task');
5
-$I->amInPath(codecept_data_dir().'sandbox');
5
+$I->amInPath(codecept_data_dir() . 'sandbox');
6 6
 $I->taskFlattenDir([
7 7
     'some/deeply/nested/*.re' => 'flattened',
8 8
     '*.txt' => 'flattened'
Please login to merge, or discard this patch.
tests/cli/CopyDirCept.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 $I = new CliGuy($scenario);
3 3
 
4 4
 $I->wantTo('copy dir with CopyDir task');
5
-$I->amInPath(codecept_data_dir().'sandbox');
5
+$I->amInPath(codecept_data_dir() . 'sandbox');
6 6
 $I->taskCopyDir(['box' => 'bin'])
7 7
     ->run();
8 8
 $I->seeDirFound('bin');
Please login to merge, or discard this patch.
tests/cli/FilesystemStackCest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
tests/cli/CleanDirCept.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
     ->run();
9 9
 $I->dontSeeFileFound('box', 'sandbox');
10 10
 $I->dontSeeFileFound('robo.txt', 'sandbox');
11
-$I->dontSeeFileFound('a.txt' , 'sandbox');
11
+$I->dontSeeFileFound('a.txt', 'sandbox');
12 12
 
13 13
 
Please login to merge, or discard this patch.
tests/cli/AssetsCept.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $I = new CliGuy($scenario);
4 4
 
5 5
 $I->wantTo('minify a css file');
6
-$I->amInPath(codecept_data_dir().'sandbox');
6
+$I->amInPath(codecept_data_dir() . 'sandbox');
7 7
 
8 8
 $sampleCss = dirname(__DIR__) . '/_data/sample.css';
9 9
 $outputCss = 'minifiedSample.css';
Please login to merge, or discard this patch.
tests/cli/FlattenDirParentsCept.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 $I = new CliGuy($scenario);
3 3
 
4 4
 $I->wantTo('flatten dir with FlattenDir task including parents');
5
-$I->amInPath(codecept_data_dir().'sandbox');
5
+$I->amInPath(codecept_data_dir() . 'sandbox');
6 6
 $I->taskFlattenDir('some/deeply/nested/*.re')
7
-    ->includeParents(array(1,1))
7
+    ->includeParents(array(1, 1))
8 8
     ->parentDir('some')
9 9
     ->to('flattened')
10 10
     ->run();
Please login to merge, or discard this patch.
src/Common/ExecCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Task/Archive/Extract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,6 +274,6 @@
 block discarded – undo
274 274
      */
275 275
     protected static function getTmpDir()
276 276
     {
277
-        return getcwd().'/tmp'.rand().time();
277
+        return getcwd() . '/tmp' . rand() . time();
278 278
     }
279 279
 }
Please login to merge, or discard this patch.