diff --git a/components/console/single_command_tool.rst b/components/console/single_command_tool.rst index 35b2f9bf7b8..d77436c53d4 100644 --- a/components/console/single_command_tool.rst +++ b/components/console/single_command_tool.rst @@ -58,7 +58,7 @@ it is possible to remove this need by extending the application:: } } -When calling your console script, the command `MyCommand` will then always +When calling your console script, the command ``MyCommand`` will then always be used, without having to pass its name. You can also simplify how you execute the application:: @@ -66,7 +66,6 @@ You can also simplify how you execute the application:: #!/usr/bin/env php enabledFormatters = $enabledFormatters; diff --git a/cookbook/form/use_empty_data.rst b/cookbook/form/use_empty_data.rst index d74f1f5f736..7558a81b584 100644 --- a/cookbook/form/use_empty_data.rst +++ b/cookbook/form/use_empty_data.rst @@ -11,7 +11,7 @@ you form. For example:: public function indexAction() { - $blog = // ... + $blog = ...; // $blog is passed in as the data, so the empty_data option is not needed $form = $this->createForm(new BlogType(), $blog); @@ -35,8 +35,8 @@ that takes arguments. Remember, the default ``data_class`` option calls that constructor with no arguments:: // src/Acme/DemoBundle/Form/Type/BlogType.php - // ... + // ... use Symfony\Component\Form\AbstractType; use Acme\DemoBundle\Entity\Blog;