From 009931f3c4099f59bd9a5c1c5b43a193ee1a6c4a Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Sat, 16 Mar 2019 16:53:54 +0100 Subject: [PATCH] missing brackets --- best_practices/templates.rst | 2 +- components/class_loader/class_map_generator.rst | 2 +- components/console/helpers/formatterhelper.rst | 2 +- components/console/helpers/table.rst | 2 +- components/css_selector.rst | 2 +- components/translation/usage.rst | 2 +- logging.rst | 2 +- logging/monolog_email.rst | 4 +++- reference/forms/twig_reference.rst | 2 +- security/ldap.rst | 2 +- validation.rst | 2 +- 11 files changed, 13 insertions(+), 11 deletions(-) diff --git a/best_practices/templates.rst b/best_practices/templates.rst index 03d9a6dbc83..4bfe1f05899 100644 --- a/best_practices/templates.rst +++ b/best_practices/templates.rst @@ -128,7 +128,7 @@ class in the constructor of the Twig extension:: [$this, 'markdownToHtml'], ['is_safe' => ['html'], 'pre_escape' => 'html'] ), - ); + ]; } public function markdownToHtml($content) diff --git a/components/class_loader/class_map_generator.rst b/components/class_loader/class_map_generator.rst index 9069e1df960..dad99cde19d 100644 --- a/components/class_loader/class_map_generator.rst +++ b/components/class_loader/class_map_generator.rst @@ -110,7 +110,7 @@ generated class map with, for example, the The example assumes that you already have autoloading working (e.g. through `Composer`_ or one of the other class loaders from the ClassLoader - component. + component). Besides dumping the class map for one directory, you can also pass an array of directories for which to generate the class map (the result actually diff --git a/components/console/helpers/formatterhelper.rst b/components/console/helpers/formatterhelper.rst index 6c1a91af8c4..5cc07c81c11 100644 --- a/components/console/helpers/formatterhelper.rst +++ b/components/console/helpers/formatterhelper.rst @@ -108,6 +108,6 @@ If you don't want to use suffix at all, just pass an empty string:: $truncatedMessage = $formatter->truncate($message, 7, '!!'); // result: This is!! $truncatedMessage = $formatter->truncate($message, 7, ''); // result: This is - $truncatedMessage = $formatter->truncate('test', 10)); + $truncatedMessage = $formatter->truncate('test', 10); /* result: test because length of the "test..." string is shorter than 10 */ diff --git a/components/console/helpers/table.rst b/components/console/helpers/table.rst index fd242981f1f..7af9e25e746 100644 --- a/components/console/helpers/table.rst +++ b/components/console/helpers/table.rst @@ -226,7 +226,7 @@ This results in: $table->setHeaders([ [new TableCell('Main table title', ['colspan' => 3])], ['ISBN', 'Title', 'Author'], - )) + ]) // ... This generates: diff --git a/components/css_selector.rst b/components/css_selector.rst index ca664e07aaf..f912f412b26 100644 --- a/components/css_selector.rst +++ b/components/css_selector.rst @@ -97,7 +97,7 @@ Several pseudo-classes are not yet supported: * ``*:first-of-type``, ``*:last-of-type``, ``*:nth-of-type``, ``*:nth-last-of-type``, ``*:only-of-type``. (These work with an element - name (e.g. ``li:first-of-type``) but not with ``*``. + name (e.g. ``li:first-of-type``) but not with ``*``). .. _Packagist: https://packagist.org/packages/symfony/css-selector diff --git a/components/translation/usage.rst b/components/translation/usage.rst index b7883ea8182..e1f4b3f7230 100644 --- a/components/translation/usage.rst +++ b/components/translation/usage.rst @@ -194,7 +194,7 @@ recommended format. These files are parsed by one of the loader classes. 'has' => [ 'bundles' => 'Symfony has bundles', ], - ), + ], 'user' => [ 'login' => 'Login', ], diff --git a/logging.rst b/logging.rst index a8240725940..207c7726dc9 100644 --- a/logging.rst +++ b/logging.rst @@ -248,7 +248,7 @@ one of the messages reaches an ``action_level``. Take this example: 'type' => 'syslog', 'level' => 'error', ], - ), + ], ]); Now, if even one log entry has an ``error`` level or higher, then *all* log entries diff --git a/logging/monolog_email.rst b/logging/monolog_email.rst index ccc2887c76a..14a1cb505ec 100644 --- a/logging/monolog_email.rst +++ b/logging/monolog_email.rst @@ -180,7 +180,9 @@ You can adjust the time period using the ``time`` option: // the time in seconds during which duplicate entries are discarded (default: 60) 'time' => 10, 'handler' => 'swift', - ] + ], + ], + ]); The messages are then passed to the ``swift`` handler. This is the handler that actually deals with emailing you the error. The settings for this are diff --git a/reference/forms/twig_reference.rst b/reference/forms/twig_reference.rst index 0e98d4fc3c6..408eea77f70 100644 --- a/reference/forms/twig_reference.rst +++ b/reference/forms/twig_reference.rst @@ -365,7 +365,7 @@ done by using a public ``vars`` property on the | ``label_attr`` | A key-value array that will be rendered as HTML attributes on the label. | +------------------------+-------------------------------------------------------------------------------------+ | ``compound`` | Whether or not a field is actually a holder for a group of children fields | -| | (for example, a ``choice`` field, which is actually a group of checkboxes. | +| | (for example, a ``choice`` field, which is actually a group of checkboxes). | +------------------------+-------------------------------------------------------------------------------------+ | ``block_prefixes`` | An array of all the names of the parent types. | +------------------------+-------------------------------------------------------------------------------------+ diff --git a/security/ldap.rst b/security/ldap.rst index ee2c36f850f..24d63346ecf 100644 --- a/security/ldap.rst +++ b/security/ldap.rst @@ -490,7 +490,7 @@ Configuration example for form login and query_string ], ], ] - ]; + ]); .. _`LDAP PHP extension`: http://www.php.net/manual/en/intro.ldap.php .. _`RFC4515`: http://www.faqs.org/rfcs/rfc4515.html diff --git a/validation.rst b/validation.rst index c331a2c51ef..56d995ec173 100644 --- a/validation.rst +++ b/validation.rst @@ -488,7 +488,7 @@ of the form fields:: ->add('myField', TextType::class, [ 'required' => true, 'constraints' => [new Length(['min' => 3])] - )) + ]) ; }