diff --git a/components/config/definition.rst b/components/config/definition.rst index dc0e303bb7f..b4b0dcd5c19 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -506,7 +506,7 @@ By changing a string value into an associative array with ``name`` as the key:: ->arrayNode('connection') ->beforeNormalization() ->ifString() - ->then(function($v) { return array('name'=> $v); }) + ->then(function ($v) { return array('name' => $v); }) ->end() ->children() ->scalarNode('name')->isRequired() diff --git a/components/console/introduction.rst b/components/console/introduction.rst index 2b80d439c5a..a57068990fa 100644 --- a/components/console/introduction.rst +++ b/components/console/introduction.rst @@ -431,9 +431,11 @@ method:: $command = $application->find('demo:greet'); $commandTester = new CommandTester($command); - $commandTester->execute( - array('command' => $command->getName(), 'name' => 'Fabien', '--iterations' => 5) - ); + $commandTester->execute(array( + 'command' => $command->getName(), + 'name' => 'Fabien', + '--iterations' => 5, + )); $this->assertRegExp('/Fabien/', $commandTester->getDisplay()); }