@@ -151,6 +151,6 @@ |
||
151 | 151 | |
152 | 152 | protected function doWrite($message, $newline) |
153 | 153 | { |
154 | - $this->output .= $message.($newline ? "\n" : ''); |
|
154 | + $this->output .= $message . ($newline ? "\n" : ''); |
|
155 | 155 | } |
156 | 156 | } |
@@ -55,6 +55,6 @@ |
||
55 | 55 | $output = new StreamOutput($this->stream); |
56 | 56 | $output->writeln('foo'); |
57 | 57 | rewind($output->getStream()); |
58 | - $this->assertEquals('foo'.PHP_EOL, stream_get_contents($output->getStream()), '->doWrite() writes to the stream'); |
|
58 | + $this->assertEquals('foo' . PHP_EOL, stream_get_contents($output->getStream()), '->doWrite() writes to the stream'); |
|
59 | 59 | } |
60 | 60 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $this->application->setAutoExit(false); |
27 | 27 | $this->application->register('foo') |
28 | 28 | ->addArgument('foo') |
29 | - ->setCode(function ($input, $output) { $output->writeln('foo'); }) |
|
29 | + ->setCode(function($input, $output) { $output->writeln('foo'); }) |
|
30 | 30 | ; |
31 | 31 | |
32 | 32 | $this->tester = new ApplicationTester($this->application); |
@@ -54,12 +54,12 @@ discard block |
||
54 | 54 | public function testGetOutput() |
55 | 55 | { |
56 | 56 | rewind($this->tester->getOutput()->getStream()); |
57 | - $this->assertEquals('foo'.PHP_EOL, stream_get_contents($this->tester->getOutput()->getStream()), '->getOutput() returns the current output instance'); |
|
57 | + $this->assertEquals('foo' . PHP_EOL, stream_get_contents($this->tester->getOutput()->getStream()), '->getOutput() returns the current output instance'); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | public function testGetDisplay() |
61 | 61 | { |
62 | - $this->assertEquals('foo'.PHP_EOL, $this->tester->getDisplay(), '->getDisplay() returns the display of the last execution'); |
|
62 | + $this->assertEquals('foo' . PHP_EOL, $this->tester->getDisplay(), '->getDisplay() returns the display of the last execution'); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | public function testGetStatusCode() |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $this->command = new Command('foo'); |
27 | 27 | $this->command->addArgument('command'); |
28 | 28 | $this->command->addArgument('foo'); |
29 | - $this->command->setCode(function ($input, $output) { $output->writeln('foo'); }); |
|
29 | + $this->command->setCode(function($input, $output) { $output->writeln('foo'); }); |
|
30 | 30 | |
31 | 31 | $this->tester = new CommandTester($this->command); |
32 | 32 | $this->tester->execute(array('foo' => 'bar'), array('interactive' => false, 'decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE)); |
@@ -53,12 +53,12 @@ discard block |
||
53 | 53 | public function testGetOutput() |
54 | 54 | { |
55 | 55 | rewind($this->tester->getOutput()->getStream()); |
56 | - $this->assertEquals('foo'.PHP_EOL, stream_get_contents($this->tester->getOutput()->getStream()), '->getOutput() returns the current output instance'); |
|
56 | + $this->assertEquals('foo' . PHP_EOL, stream_get_contents($this->tester->getOutput()->getStream()), '->getOutput() returns the current output instance'); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | public function testGetDisplay() |
60 | 60 | { |
61 | - $this->assertEquals('foo'.PHP_EOL, $this->tester->getDisplay(), '->getDisplay() returns the display of the last execution'); |
|
61 | + $this->assertEquals('foo' . PHP_EOL, $this->tester->getDisplay(), '->getDisplay() returns the display of the last execution'); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | public function testGetStatusCode() |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $application->setAutoExit(false); |
73 | 73 | |
74 | 74 | $command = new Command('foo'); |
75 | - $command->setCode(function ($input, $output) { $output->writeln('foo'); }); |
|
75 | + $command->setCode(function($input, $output) { $output->writeln('foo'); }); |
|
76 | 76 | |
77 | 77 | $application->add($command); |
78 | 78 |