Skip to content

Commit 1b8a0b7

Browse files
committed
fixed short array CS in comments
1 parent 31c48df commit 1b8a0b7

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

AppVariable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function getDebug()
150150
* Returns some or all the existing flash messages:
151151
* * getFlashes() returns all the flash messages
152152
* * getFlashes('notice') returns a simple array with flash messages of that type
153-
* * getFlashes(array('notice', 'error')) returns a nested array of type => messages.
153+
* * getFlashes(['notice', 'error']) returns a nested array of type => messages.
154154
*
155155
* @return array
156156
*/

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CHANGELOG
3333
use Symfony\Bridge\Twig\Form\TwigRendererEngine;
3434

3535
// ...
36-
$rendererEngine = new TwigRendererEngine(array('form_div_layout.html.twig'));
36+
$rendererEngine = new TwigRendererEngine(['form_div_layout.html.twig']);
3737
$rendererEngine->setEnvironment($twig);
3838
$twig->addExtension(new FormExtension(new TwigRenderer($rendererEngine, $csrfTokenManager)));
3939
```
@@ -42,13 +42,13 @@ CHANGELOG
4242

4343
```php
4444
// ...
45-
$rendererEngine = new TwigRendererEngine(array('form_div_layout.html.twig'), $twig);
45+
$rendererEngine = new TwigRendererEngine(['form_div_layout.html.twig'], $twig);
4646
// require Twig 1.30+
47-
$twig->addRuntimeLoader(new \Twig\RuntimeLoader\FactoryRuntimeLoader(array(
47+
$twig->addRuntimeLoader(new \Twig\RuntimeLoader\FactoryRuntimeLoader([
4848
TwigRenderer::class => function () use ($rendererEngine, $csrfTokenManager) {
4949
return new TwigRenderer($rendererEngine, $csrfTokenManager);
5050
},
51-
)));
51+
]));
5252
$twig->addExtension(new FormExtension());
5353
```
5454
* Deprecated the `TwigRendererEngineInterface` interface.

Extension/WebLinkExtension.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getFunctions()
5151
*
5252
* @param string $uri The relation URI
5353
* @param string $rel The relation type (e.g. "preload", "prefetch", "prerender" or "dns-prefetch")
54-
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
54+
* @param array $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
5555
*
5656
* @return string The relation URI
5757
*/
@@ -76,7 +76,7 @@ public function link($uri, $rel, array $attributes = [])
7676
* Preloads a resource.
7777
*
7878
* @param string $uri A public path
79-
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('crossorigin' => 'use-credentials')")
79+
* @param array $attributes The attributes of this link (e.g. "['as' => true]", "['crossorigin' => 'use-credentials']")
8080
*
8181
* @return string The path of the asset
8282
*/
@@ -89,7 +89,7 @@ public function preload($uri, array $attributes = [])
8989
* Resolves a resource origin as early as possible.
9090
*
9191
* @param string $uri A public path
92-
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
92+
* @param array $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
9393
*
9494
* @return string The path of the asset
9595
*/
@@ -102,7 +102,7 @@ public function dnsPrefetch($uri, array $attributes = [])
102102
* Initiates a early connection to a resource (DNS resolution, TCP handshake, TLS negotiation).
103103
*
104104
* @param string $uri A public path
105-
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
105+
* @param array $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
106106
*
107107
* @return string The path of the asset
108108
*/
@@ -115,7 +115,7 @@ public function preconnect($uri, array $attributes = [])
115115
* Indicates to the client that it should prefetch this resource.
116116
*
117117
* @param string $uri A public path
118-
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
118+
* @param array $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
119119
*
120120
* @return string The path of the asset
121121
*/
@@ -128,7 +128,7 @@ public function prefetch($uri, array $attributes = [])
128128
* Indicates to the client that it should prerender this resource .
129129
*
130130
* @param string $uri A public path
131-
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
131+
* @param array $attributes The attributes of this link (e.g. "['as' => true]", "['pr' => 0.5]")
132132
*
133133
* @return string The path of the asset
134134
*/

0 commit comments

Comments
 (0)