Skip to content

Commit 4b5ffd4

Browse files
committed
bug #11174 added missing brackets (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- added missing brackets <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 009931f missing brackets
2 parents 855f64a + 009931f commit 4b5ffd4

File tree

11 files changed

+13
-11
lines changed

11 files changed

+13
-11
lines changed

best_practices/templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class in the constructor of the Twig extension::
128128
[$this, 'markdownToHtml'],
129129
['is_safe' => ['html'], 'pre_escape' => 'html']
130130
),
131-
);
131+
];
132132
}
133133

134134
public function markdownToHtml($content)

components/class_loader/class_map_generator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ generated class map with, for example, the
110110

111111
The example assumes that you already have autoloading working (e.g.
112112
through `Composer`_ or one of the other class loaders from the ClassLoader
113-
component.
113+
component).
114114

115115
Besides dumping the class map for one directory, you can also pass an array
116116
of directories for which to generate the class map (the result actually

components/console/helpers/formatterhelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@ If you don't want to use suffix at all, just pass an empty string::
108108

109109
$truncatedMessage = $formatter->truncate($message, 7, '!!'); // result: This is!!
110110
$truncatedMessage = $formatter->truncate($message, 7, ''); // result: This is
111-
$truncatedMessage = $formatter->truncate('test', 10));
111+
$truncatedMessage = $formatter->truncate('test', 10);
112112
/* result: test
113113
because length of the "test..." string is shorter than 10 */

components/console/helpers/table.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ This results in:
226226
$table->setHeaders([
227227
[new TableCell('Main table title', ['colspan' => 3])],
228228
['ISBN', 'Title', 'Author'],
229-
))
229+
])
230230
// ...
231231

232232
This generates:

components/css_selector.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Several pseudo-classes are not yet supported:
9797

9898
* ``*:first-of-type``, ``*:last-of-type``, ``*:nth-of-type``,
9999
``*:nth-last-of-type``, ``*:only-of-type``. (These work with an element
100-
name (e.g. ``li:first-of-type``) but not with ``*``.
100+
name (e.g. ``li:first-of-type``) but not with ``*``).
101101

102102
.. _Packagist: https://packagist.org/packages/symfony/css-selector
103103

components/translation/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ recommended format. These files are parsed by one of the loader classes.
194194
'has' => [
195195
'bundles' => 'Symfony has bundles',
196196
],
197-
),
197+
],
198198
'user' => [
199199
'login' => 'Login',
200200
],

logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ one of the messages reaches an ``action_level``. Take this example:
248248
'type' => 'syslog',
249249
'level' => 'error',
250250
],
251-
),
251+
],
252252
]);
253253
254254
Now, if even one log entry has an ``error`` level or higher, then *all* log entries

logging/monolog_email.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ You can adjust the time period using the ``time`` option:
180180
// the time in seconds during which duplicate entries are discarded (default: 60)
181181
'time' => 10,
182182
'handler' => 'swift',
183-
]
183+
],
184+
],
185+
]);
184186
185187
The messages are then passed to the ``swift`` handler. This is the handler that
186188
actually deals with emailing you the error. The settings for this are

reference/forms/twig_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ done by using a public ``vars`` property on the
365365
| ``label_attr`` | A key-value array that will be rendered as HTML attributes on the label. |
366366
+------------------------+-------------------------------------------------------------------------------------+
367367
| ``compound`` | Whether or not a field is actually a holder for a group of children fields |
368-
| | (for example, a ``choice`` field, which is actually a group of checkboxes. |
368+
| | (for example, a ``choice`` field, which is actually a group of checkboxes). |
369369
+------------------------+-------------------------------------------------------------------------------------+
370370
| ``block_prefixes`` | An array of all the names of the parent types. |
371371
+------------------------+-------------------------------------------------------------------------------------+

security/ldap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ Configuration example for form login and query_string
490490
],
491491
],
492492
]
493-
];
493+
]);
494494
495495
.. _`LDAP PHP extension`: http://www.php.net/manual/en/intro.ldap.php
496496
.. _`RFC4515`: http://www.faqs.org/rfcs/rfc4515.html

validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ of the form fields::
488488
->add('myField', TextType::class, [
489489
'required' => true,
490490
'constraints' => [new Length(['min' => 3])]
491-
))
491+
])
492492
;
493493
}
494494

0 commit comments

Comments
 (0)