@@ -128,7 +128,7 @@ |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | $this->write("\n\n"); |
131 | - $this->write(implode("\n", array_map(function ($commandName) { |
|
131 | + $this->write(implode("\n", array_map(function($commandName) { |
|
132 | 132 | return '* '.$commandName; |
133 | 133 | }, $namespace['commands']))); |
134 | 134 | } |
@@ -26,7 +26,7 @@ |
||
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); |
@@ -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)); |
@@ -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 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $output = $this->getOutputStream(StreamOutput::VERBOSITY_NORMAL); |
40 | 40 | |
41 | 41 | $executed = false; |
42 | - $callback = function () use (&$executed) { $executed = true; }; |
|
42 | + $callback = function() use (&$executed) { $executed = true; }; |
|
43 | 43 | |
44 | 44 | $helper->run($output, 'php -r "echo 42;"', null, $callback); |
45 | 45 | $this->assertTrue($executed); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | array('"quoted"', array('quoted'), '->tokenize() parses quoted arguments'), |
66 | 66 | array("'quoted'", array('quoted'), '->tokenize() parses quoted arguments'), |
67 | 67 | array("'a\rb\nc\td'", array("a\rb\nc\td"), '->tokenize() parses whitespace chars in strings'), |
68 | - array("'a'\r'b'\n'c'\t'd'", array('a','b','c','d'), '->tokenize() parses whitespace chars between args as spaces'), |
|
68 | + array("'a'\r'b'\n'c'\t'd'", array('a', 'b', 'c', 'd'), '->tokenize() parses whitespace chars between args as spaces'), |
|
69 | 69 | array('\"quoted\"', array('"quoted"'), '->tokenize() parses escaped-quoted arguments'), |
70 | 70 | array("\'quoted\'", array('\'quoted\''), '->tokenize() parses escaped-quoted arguments'), |
71 | 71 | array('-a', array('-a'), '->tokenize() parses short options'), |
@@ -336,7 +336,7 @@ |
||
336 | 336 | public function __toString() |
337 | 337 | { |
338 | 338 | $self = $this; |
339 | - $tokens = array_map(function ($token) use ($self) { |
|
339 | + $tokens = array_map(function($token) use ($self) { |
|
340 | 340 | if (preg_match('{^(-[^=]+=)(.+)}', $token, $match)) { |
341 | 341 | return $match[1].$self->escapeToken($match[2]); |
342 | 342 | } |