@@ -38,7 +38,7 @@ discard block |
||
| 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 |
||
| 53 | 53 | |
| 54 | 54 | $task->monitor( |
| 55 | 55 | 'src', |
| 56 | - function () { |
|
| 56 | + function() { |
|
| 57 | 57 | //do nothing |
| 58 | 58 | }, |
| 59 | 59 | [ |
@@ -51,7 +51,7 @@ |
||
| 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)) |
@@ -6,9 +6,9 @@ |
||
| 6 | 6 | 'debug' => true, |
| 7 | 7 | 'cacheDir' => '/tmp', |
| 8 | 8 | 'includePaths' => [ |
| 9 | - __DIR__.'/../src', |
|
| 10 | - __DIR__.'/../vendor/symfony/process', |
|
| 11 | - __DIR__.'/../vendor/symfony/console', |
|
| 12 | - __DIR__.'/../vendor/henrikbjorn/lurker/src', |
|
| 9 | + __DIR__ . '/../src', |
|
| 10 | + __DIR__ . '/../vendor/symfony/process', |
|
| 11 | + __DIR__ . '/../vendor/symfony/console', |
|
| 12 | + __DIR__ . '/../vendor/henrikbjorn/lurker/src', |
|
| 13 | 13 | ] |
| 14 | 14 | ]); |
@@ -24,32 +24,32 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $this->assertEquals( |
| 26 | 26 | $this->adjustQuotes("gulp 'default'"), |
| 27 | - (new \Robo\Task\Gulp\Run('default','gulp'))->getCommand() |
|
| 27 | + (new \Robo\Task\Gulp\Run('default', 'gulp'))->getCommand() |
|
| 28 | 28 | ); |
| 29 | 29 | |
| 30 | 30 | $this->assertEquals( |
| 31 | 31 | $this->adjustQuotes("gulp 'another'"), |
| 32 | - (new \Robo\Task\Gulp\Run('another','gulp'))->getCommand() |
|
| 32 | + (new \Robo\Task\Gulp\Run('another', 'gulp'))->getCommand() |
|
| 33 | 33 | ); |
| 34 | 34 | |
| 35 | 35 | $this->assertEquals( |
| 36 | 36 | $this->adjustQuotes("gulp 'default' --silent"), |
| 37 | - (new \Robo\Task\Gulp\Run('default','gulp'))->silent()->getCommand() |
|
| 37 | + (new \Robo\Task\Gulp\Run('default', 'gulp'))->silent()->getCommand() |
|
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | 40 | $this->assertEquals( |
| 41 | 41 | $this->adjustQuotes("gulp 'default' --no-color"), |
| 42 | - (new \Robo\Task\Gulp\Run('default','gulp'))->noColor()->getCommand() |
|
| 42 | + (new \Robo\Task\Gulp\Run('default', 'gulp'))->noColor()->getCommand() |
|
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | $this->assertEquals( |
| 46 | 46 | $this->adjustQuotes("gulp 'default' --color"), |
| 47 | - (new \Robo\Task\Gulp\Run('default','gulp'))->color()->getCommand() |
|
| 47 | + (new \Robo\Task\Gulp\Run('default', 'gulp'))->color()->getCommand() |
|
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | 50 | $this->assertEquals( |
| 51 | 51 | $this->adjustQuotes("gulp 'default' --tasks-simple"), |
| 52 | - (new \Robo\Task\Gulp\Run('default','gulp'))->simple()->getCommand() |
|
| 52 | + (new \Robo\Task\Gulp\Run('default', 'gulp'))->simple()->getCommand() |
|
| 53 | 53 | ); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | { |
| 58 | 58 | $gulp = test::double('Robo\Task\Gulp\Run', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]); |
| 59 | 59 | |
| 60 | - $task = (new \Robo\Task\Gulp\Run('default','gulp'))->simple(); |
|
| 60 | + $task = (new \Robo\Task\Gulp\Run('default', 'gulp'))->simple(); |
|
| 61 | 61 | $this->assertEquals( |
| 62 | 62 | $this->adjustQuotes("gulp 'default' --tasks-simple"), |
| 63 | 63 | $task->getCommand()); |
@@ -69,12 +69,11 @@ discard block |
||
| 69 | 69 | { |
| 70 | 70 | $isWindows = defined('PHP_WINDOWS_VERSION_MAJOR'); |
| 71 | 71 | $expected = $isWindows ? |
| 72 | - 'gulp "anotherWith weired!(\"\') Chars"' : |
|
| 73 | - "gulp 'anotherWith weired!(\"'\\'') Chars'"; |
|
| 72 | + 'gulp "anotherWith weired!(\"\') Chars"' : "gulp 'anotherWith weired!(\"'\\'') Chars'"; |
|
| 74 | 73 | |
| 75 | 74 | $this->assertEquals( |
| 76 | 75 | $expected, |
| 77 | - (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars','gulp'))->getCommand() |
|
| 76 | + (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars', 'gulp'))->getCommand() |
|
| 78 | 77 | ); |
| 79 | 78 | } |
| 80 | 79 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function mktmpdir($basedir = false) |
| 48 | 48 | { |
| 49 | - $tempfile = tempnam($basedir ?: $this->testDir ?: sys_get_temp_dir(),'robo-tests'); |
|
| 49 | + $tempfile = tempnam($basedir ?: $this->testDir ?: sys_get_temp_dir(), 'robo-tests'); |
|
| 50 | 50 | unlink($tempfile); |
| 51 | 51 | mkdir($tempfile); |
| 52 | 52 | $this->tmpDirs[] = $tempfile; |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | public function __construct($roboClass = null, $roboFile = null) |
| 82 | 82 | { |
| 83 | 83 | // set the const as class properties to allow overwriting in child classes |
| 84 | - $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS ; |
|
| 84 | + $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS; |
|
| 85 | 85 | $this->roboFile = $roboFile ? $roboFile : self::ROBOFILE; |
| 86 | 86 | $this->dir = getcwd(); |
| 87 | 87 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | $createRoboFile = new Command('init'); |
| 42 | 42 | $createRoboFile->setDescription("Intitalizes basic RoboFile in current dir"); |
| 43 | - $createRoboFile->setCode(function () use ($roboClass, $roboFile) { |
|
| 43 | + $createRoboFile->setCode(function() use ($roboClass, $roboFile) { |
|
| 44 | 44 | $output = Robo::output(); |
| 45 | 45 | $output->writeln("<comment> ~~~ Welcome to Robo! ~~~~ </comment>"); |
| 46 | 46 | $output->writeln("<comment> " . basename($roboFile) . " will be created in the current directory </comment>"); |
@@ -705,7 +705,7 @@ discard block |
||
| 705 | 705 | return implode( |
| 706 | 706 | "\n", |
| 707 | 707 | array_map( |
| 708 | - function ($line) use ($indent) { |
|
| 708 | + function($line) use ($indent) { |
|
| 709 | 709 | return substr($line, $indent); |
| 710 | 710 | }, |
| 711 | 711 | explode("\n", $doc) |
@@ -727,7 +727,7 @@ discard block |
||
| 727 | 727 | $params = implode( |
| 728 | 728 | ', ', |
| 729 | 729 | array_map( |
| 730 | - function ($p) { |
|
| 730 | + function($p) { |
|
| 731 | 731 | return $this->documentParam($p); |
| 732 | 732 | }, |
| 733 | 733 | $reflectedMethod->getParameters() |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | */ |
| 128 | 128 | public function dirPermissions($permission) |
| 129 | 129 | { |
| 130 | - $this->chmod = (int) $permission; |
|
| 130 | + $this->chmod = (int)$permission; |
|
| 131 | 131 | |
| 132 | 132 | return $this; |
| 133 | 133 | } |