Completed
Pull Request — master (#823)
by Greg
05:40
created
tests/unit/Task/WatchTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $task->monitor(
40 40
             'src',
41
-            function () {
41
+            function() {
42 42
                 //do nothing
43 43
             },
44 44
             1 // CREATE
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         $task->monitor(
55 55
             'src',
56
-            function () {
56
+            function() {
57 57
                 //do nothing
58 58
             },
59 59
             [
Please login to merge, or discard this patch.
tests/_bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 $kernel->init([
6 6
     'debug' => true,
7 7
     'includePaths' => [
8
-        __DIR__.'/../src',
9
-        __DIR__.'/../vendor/symfony/process',
10
-        __DIR__.'/../vendor/symfony/console',
11
-        __DIR__.'/../vendor/henrikbjorn/lurker/src',
8
+        __DIR__ . '/../src',
9
+        __DIR__ . '/../vendor/symfony/process',
10
+        __DIR__ . '/../vendor/symfony/console',
11
+        __DIR__ . '/../vendor/henrikbjorn/lurker/src',
12 12
     ]
13 13
 ]);
Please login to merge, or discard this patch.
tests/cli/ExecCest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,20 +36,20 @@
 block discarded – undo
36 36
         // variables are present.
37 37
         $task = $I->taskExec('env | wc -l')->interactive(false);
38 38
         $result = $task->run();
39
-        $start_count = (int) $result->getMessage();
39
+        $start_count = (int)$result->getMessage();
40 40
         verify($start_count)->greaterThan(0);
41 41
 
42 42
         // Verify that we get the same amount of environment variables with
43 43
         // another exec call.
44 44
         $task = $I->taskExec('env | wc -l')->interactive(false);
45 45
         $result = $task->run();
46
-        verify((int) $result->getMessage())->equals($start_count);
46
+        verify((int)$result->getMessage())->equals($start_count);
47 47
 
48 48
         // Now run the same command, but this time add another environment
49 49
         // variable, and see if our count increases by one.
50 50
         $task = $I->taskExec('env | wc -l')->interactive(false);
51 51
         $task->env('FOO', 'BAR');
52 52
         $result = $task->run();
53
-        verify((int) $result->getMessage())->equals($start_count + 1);
53
+        verify((int)$result->getMessage())->equals($start_count + 1);
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
tests/unit/Task/SemVerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     public function testSemverParseFileWithWindowsLineEndings()
52 52
     {
53 53
         $fixturePath = tempnam(sys_get_temp_dir(), 'semver');
54
-        $semverFile = str_replace("\n", "\r\n", file_get_contents(codecept_data_dir().'.semver'));
54
+        $semverFile = str_replace("\n", "\r\n", file_get_contents(codecept_data_dir() . '.semver'));
55 55
         file_put_contents($fixturePath, $semverFile);
56 56
 
57 57
         $res = (new \Robo\Task\Development\SemVer($fixturePath))
Please login to merge, or discard this patch.
examples/src/Robo/Plugin/Commands/StdinCommands.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
     /**
13 13
      * @command cat
14
-     * @param string $file
15 14
      * @default $file -
16 15
      */
17 16
     public function cat(InputInterface $input)
Please login to merge, or discard this patch.
tests/cli/CollectionCest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 {
11 11
     public function _before(CliGuy $I)
12 12
     {
13
-        $I->amInPath(codecept_data_dir().'sandbox');
13
+        $I->amInPath(codecept_data_dir() . 'sandbox');
14 14
     }
15 15
 
16 16
     public function toRunMultipleTasksViaACollectionBuilder(CliGuy $I)
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             ->rollback(
123 123
                 $I->taskDeleteDir('j')
124 124
             )
125
-            ->rollbackCode(function () {
125
+            ->rollbackCode(function() {
126 126
                 throw new AbortTasksException('Aborting rollback.');
127 127
             })
128 128
             ->taskFilesystemStack()
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 ->mkdir('stuff')
182 182
             ->taskForEach($processList)
183 183
                 ->withBuilder(
184
-                    function ($builder, $key, $value) {
184
+                    function($builder, $key, $value) {
185 185
                         return $builder
186 186
                             ->taskFilesystemStack()
187 187
                                 ->touch("stuff/{$value}.txt");
@@ -238,32 +238,32 @@  discard block
 block discarded – undo
238 238
 
239 239
     public function toRollbackInCorrectOrder(CliGuy $I)
240 240
     {
241
-        $expected_order = [6,5,4,3,2,1];
241
+        $expected_order = [6, 5, 4, 3, 2, 1];
242 242
         $actual_order = [];
243 243
         $collection = $I->collectionBuilder();
244
-        $collection->rollbackCode(function () use (&$actual_order) {
244
+        $collection->rollbackCode(function() use (&$actual_order) {
245 245
             $actual_order[] = 1;
246 246
         });
247
-        $collection->rollbackCode(function () use (&$actual_order) {
247
+        $collection->rollbackCode(function() use (&$actual_order) {
248 248
             $actual_order[] = 2;
249 249
         });
250
-        $collection->rollbackCode(function () use (&$actual_order) {
250
+        $collection->rollbackCode(function() use (&$actual_order) {
251 251
             $actual_order[] = 3;
252 252
         });
253 253
         // Add a nested collection with rollbacks.
254 254
         $nested_collection = $I->collectionBuilder();
255
-        $nested_collection->rollbackCode(function () use (&$actual_order) {
255
+        $nested_collection->rollbackCode(function() use (&$actual_order) {
256 256
             $actual_order[] = 4;
257 257
         });
258
-        $nested_collection->rollbackCode(function () use (&$actual_order) {
258
+        $nested_collection->rollbackCode(function() use (&$actual_order) {
259 259
             $actual_order[] = 5;
260 260
         });
261 261
         $collection->addTask($nested_collection);
262 262
 
263
-        $collection->rollbackCode(function () use (&$actual_order) {
263
+        $collection->rollbackCode(function() use (&$actual_order) {
264 264
             $actual_order[] = 6;
265 265
         });
266
-        $collection->addCode(function () {
266
+        $collection->addCode(function() {
267 267
             return Result::EXITCODE_ERROR;
268 268
         });
269 269
         $result = $collection->run();
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
         $collection = $I->getContainer()->get('collection');
464 464
 
465 465
         $collection->addCode(
466
-            function () {
466
+            function() {
467 467
                 throw new \RuntimeException('Error');
468 468
             }
469 469
         );
Please login to merge, or discard this patch.
src/Common/IO.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
45 45
         return $result ?: $this->parentOutput();
46 46
     }
47 47
 
48
+    /**
49
+     * @return InputInterface
50
+     */
48 51
     protected function input()
49 52
     {
50 53
         $result = null;
Please login to merge, or discard this patch.