Skip to content

Commit ed61291

Browse files
committed
PHP 5.5 arrays in handler code
1 parent 4d71b85 commit ed61291

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Symfony/src/Codebender/BuilderBundle/Handler/DefaultHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function detectHeadersInFile($code) {
5353
$arrowsRegex = "/^\s*#\s*include\s*<\s*([a-zA-Z0-9_+]*)\.h\s*>/";
5454
$quotesRegex = "/^\s*#\s*include\s*\"\s*([a-zA-Z0-9_+]*)\.h\s*\"/";
5555

56-
$headers = array("arrows" => array(), "quotes" => array());
56+
$headers = ["arrows" => [], "quotes" => []];
5757
foreach (explode("\n", $code) as $line)
5858
{
5959
if (preg_match($arrowsRegex, $line, $matches))
@@ -78,7 +78,7 @@ function detectHeadersInFile($code) {
7878
*/
7979
function readLibraries($sketchFiles) {
8080
// Scan files for headers and locate the corresponding include paths.
81-
$headers = array("arrows" => array(), "quotes" => array());
81+
$headers = ["arrows" => [], "quotes" => []];
8282

8383
foreach ($sketchFiles as $file)
8484
{

0 commit comments

Comments
 (0)