@@ -33,7 +33,6 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Constructor. This should not be documented |
| 35 | 35 | * |
| 36 | - * @param array|Iterator $files |
|
| 37 | 36 | */ |
| 38 | 37 | public function __construct() |
| 39 | 38 | { |
@@ -44,7 +43,7 @@ discard block |
||
| 44 | 43 | * |
| 45 | 44 | * @param string $dst |
| 46 | 45 | * |
| 47 | - * @return Concat The current instance |
|
| 46 | + * @return TestedRoboTask The current instance |
|
| 48 | 47 | */ |
| 49 | 48 | public function to($dst) |
| 50 | 49 | { |
@@ -132,6 +132,9 @@ |
||
| 132 | 132 | $this->assertNotNull($this->app->find('generate:user-avatar')); |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | + /** |
|
| 136 | + * @param string $name |
|
| 137 | + */ |
|
| 135 | 138 | protected function createCommand($name) |
| 136 | 139 | { |
| 137 | 140 | $commandInfo = new CommandInfo($this->roboCommandFileInstance, $name); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | use _generated\CodeGuyActions; |
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * Define custom actions here |
|
| 25 | - */ |
|
| 23 | + /** |
|
| 24 | + * Define custom actions here |
|
| 25 | + */ |
|
| 26 | 26 | } |
@@ -11,10 +11,10 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | $I->wantTo('write lines with WriteToFile task'); |
| 13 | 13 | $I->taskWriteToFile('blogpost.md') |
| 14 | - ->line('****') |
|
| 15 | - ->line('hello world') |
|
| 16 | - ->line('****') |
|
| 17 | - ->run(); |
|
| 14 | + ->line('****') |
|
| 15 | + ->line('hello world') |
|
| 16 | + ->line('****') |
|
| 17 | + ->run(); |
|
| 18 | 18 | $I->seeFileFound('blogpost.md'); |
| 19 | 19 | $I->seeFileContentsEqual(<<<HERE |
| 20 | 20 | **** |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | public function appendToFile(CliGuy $I) |
| 29 | 29 | { |
| 30 | 30 | $I->taskWriteToFile('a.txt') |
| 31 | - ->append() |
|
| 32 | - ->line('hello world') |
|
| 33 | - ->run(); |
|
| 31 | + ->append() |
|
| 32 | + ->line('hello world') |
|
| 33 | + ->run(); |
|
| 34 | 34 | $I->seeFileFound('a.txt'); |
| 35 | 35 | $I->seeFileContentsEqual(<<<HERE |
| 36 | 36 | Ahello world |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | public function testWouldChange(CliGuy $I) |
| 43 | 43 | { |
| 44 | 44 | $writeTask = $I->taskWriteToFile('a.txt') |
| 45 | - ->append(); |
|
| 45 | + ->append(); |
|
| 46 | 46 | $I->assertEquals(false, $writeTask->wouldChange(), "No changes to test file."); |
| 47 | 47 | $writeTask->line('hello world'); |
| 48 | 48 | $I->assertEquals(true, $writeTask->wouldChange(), "Test file would change."); |
@@ -68,15 +68,15 @@ discard block |
||
| 68 | 68 | { |
| 69 | 69 | $I->wantTo('append lines with WriteToFile task, but only if pattern does not match'); |
| 70 | 70 | $I->taskWriteToFile('blogpost.md') |
| 71 | - ->line('****') |
|
| 72 | - ->line('hello world') |
|
| 73 | - ->line('****') |
|
| 74 | - ->appendUnlessMatches('/hello/', 'Should not add this') |
|
| 75 | - ->appendUnlessMatches('/goodbye/', 'Should add this') |
|
| 76 | - ->appendIfMatches('/hello/', ' and should also add this') |
|
| 77 | - ->appendIfMatches('/goodbye/', ' but should not add this') |
|
| 78 | - ->appendIfMatches('/should/', '!') |
|
| 79 | - ->run(); |
|
| 71 | + ->line('****') |
|
| 72 | + ->line('hello world') |
|
| 73 | + ->line('****') |
|
| 74 | + ->appendUnlessMatches('/hello/', 'Should not add this') |
|
| 75 | + ->appendUnlessMatches('/goodbye/', 'Should add this') |
|
| 76 | + ->appendIfMatches('/hello/', ' and should also add this') |
|
| 77 | + ->appendIfMatches('/goodbye/', ' but should not add this') |
|
| 78 | + ->appendIfMatches('/should/', '!') |
|
| 79 | + ->run(); |
|
| 80 | 80 | $I->seeFileFound('blogpost.md'); |
| 81 | 81 | $I->seeFileContentsEqual(<<<HERE |
| 82 | 82 | **** |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | $initialFileSize = filesize($sampleCss); |
| 12 | 12 | |
| 13 | 13 | $I->taskMinify($sampleCss) |
| 14 | - ->to('minifiedSample.css') |
|
| 15 | - ->run(); |
|
| 14 | + ->to('minifiedSample.css') |
|
| 15 | + ->run(); |
|
| 16 | 16 | |
| 17 | 17 | $I->seeFileFound($outputCss); |
| 18 | 18 | $minifiedFileSize = filesize($outputCss); |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | /** |
| 207 | 207 | * @param string $filename |
| 208 | 208 | * |
| 209 | - * @return bool|string |
|
| 209 | + * @return string|false |
|
| 210 | 210 | */ |
| 211 | 211 | protected static function archiveType($filename) |
| 212 | 212 | { |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | /** |
| 7 | 7 | * Executes shell command |
| 8 | 8 | * |
| 9 | - * @param string|\Robo\Contract\CommandInterface $command |
|
| 9 | + * @param string $command |
|
| 10 | 10 | * |
| 11 | 11 | * @return \Robo\Result |
| 12 | 12 | */ |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | protected $run = ''; |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @param string|\Robo\Result $cidOrResult |
|
| 50 | + * @param string $cidOrResult |
|
| 51 | 51 | */ |
| 52 | 52 | public function __construct($cidOrResult) |
| 53 | 53 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @param string|\Robo\Contract\CommandInterface $command |
|
| 76 | + * @param string $command |
|
| 77 | 77 | * |
| 78 | 78 | * @return $this |
| 79 | 79 | */ |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @param string|\Robo\Contract\CommandInterface $run |
|
| 127 | + * @param string $run |
|
| 128 | 128 | * |
| 129 | 129 | * @return $this |
| 130 | 130 | */ |