Skip to content

added missing brackets #11174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion best_practices/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class in the constructor of the Twig extension::
[$this, 'markdownToHtml'],
['is_safe' => ['html'], 'pre_escape' => 'html']
),
);
];
}

public function markdownToHtml($content)
Expand Down
2 changes: 1 addition & 1 deletion components/class_loader/class_map_generator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion components/console/helpers/formatterhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion components/console/helpers/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ This results in:
$table->setHeaders([
[new TableCell('Main table title', ['colspan' => 3])],
['ISBN', 'Title', 'Author'],
))
])
// ...

This generates:
Expand Down
2 changes: 1 addition & 1 deletion components/css_selector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion components/translation/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ recommended format. These files are parsed by one of the loader classes.
'has' => [
'bundles' => 'Symfony has bundles',
],
),
],
'user' => [
'login' => 'Login',
],
Expand Down
2 changes: 1 addition & 1 deletion logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion logging/monolog_email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
+------------------------+-------------------------------------------------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion security/ldap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ of the form fields::
->add('myField', TextType::class, [
'required' => true,
'constraints' => [new Length(['min' => 3])]
))
])
;
}

Expand Down