@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | class UpdateTest extends BaseTest |
25 | 25 | { |
26 | 26 | public const TOKENIZER_CONFIG = [ |
27 | - 'directories' => [__DIR__ . '/../src/Command', __DIR__ . '/Fixtures/'], |
|
27 | + 'directories' => [__DIR__.'/../src/Command', __DIR__.'/Fixtures/'], |
|
28 | 28 | 'exclude' => [] |
29 | 29 | ]; |
30 | 30 | |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | ['command' => 'test', 'header' => 'Test Command'], |
36 | 36 | ['command' => 'helper', 'options' => ['helper' => 'writeln'], 'footer' => 'Good!'], |
37 | 37 | ['invoke' => [self::class, 'do']], |
38 | - ['invoke' => self::class . '::do'], |
|
38 | + ['invoke' => self::class.'::do'], |
|
39 | 39 | 'Spiral\Tests\Console\ok', |
40 | - ['invoke' => self::class . '::err'], |
|
40 | + ['invoke' => self::class.'::err'], |
|
41 | 41 | ] |
42 | 42 | ]; |
43 | 43 |
@@ -125,10 +125,12 @@ |
||
125 | 125 | $this->assertEquals(1, $output->getCode()); |
126 | 126 | } |
127 | 127 | |
128 | - public function do(OutputInterface $output): void |
|
128 | + public function do{ |
|
129 | + (OutputInterface $output): void |
|
129 | 130 | { |
130 | 131 | $output->write('OK'); |
131 | 132 | } |
133 | + } |
|
132 | 134 | |
133 | 135 | public function err(OutputInterface $output): void |
134 | 136 | { |
@@ -22,6 +22,6 @@ |
||
22 | 22 | */ |
23 | 23 | public function perform(): void |
24 | 24 | { |
25 | - throw new Exception('Unhandled another failed command error at ' . __METHOD__ . ' (line ' . __LINE__ . ')'); |
|
25 | + throw new Exception('Unhandled another failed command error at '.__METHOD__.' (line '.__LINE__.')'); |
|
26 | 26 | } |
27 | 27 | } |
@@ -22,6 +22,6 @@ |
||
22 | 22 | */ |
23 | 23 | public function perform(): void |
24 | 24 | { |
25 | - throw new Exception('Unhandled failed command error at ' . __METHOD__ . ' (line ' . __LINE__ . ')'); |
|
25 | + throw new Exception('Unhandled failed command error at '.__METHOD__.' (line '.__LINE__.')'); |
|
26 | 26 | } |
27 | 27 | } |
@@ -22,6 +22,6 @@ |
||
22 | 22 | |
23 | 23 | public function perform(): void |
24 | 24 | { |
25 | - $this->write('Hello World - ' . ($this->count++)); |
|
25 | + $this->write('Hello World - '.($this->count++)); |
|
26 | 26 | } |
27 | 27 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | public function perform(): void |
28 | 28 | { |
29 | - switch ($this->argument('helper')) { |
|
29 | + switch ($this->argument('helper')){ |
|
30 | 30 | case 'verbose': |
31 | 31 | $this->write($this->isVerbose() ? 'true' : 'false'); |
32 | 32 | break; |
@@ -26,7 +26,8 @@ |
||
26 | 26 | |
27 | 27 | public function perform(): void |
28 | 28 | { |
29 | - switch ($this->argument('helper')) { |
|
29 | + switch ($this->argument('helper')) |
|
30 | + { |
|
30 | 31 | case 'verbose': |
31 | 32 | $this->write($this->isVerbose() ? 'true' : 'false'); |
32 | 33 | break; |