Skip to content

Commit d9bcfed

Browse files
authored
Enhancement: Enable array_syntax fixer
Co-authored-by: MathiasReker <[email protected]> Closes GH-659.
1 parent c304829 commit d9bcfed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+3279
-3278
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
->setRiskyAllowed(true)
2121
->setRules([
2222
'array_indentation' => true,
23+
'array_syntax' => true,
2324
'class_attributes_separation' => true,
2425
'constant_case' => true,
2526
'indentation_type' => true,

archive/1998.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$_SERVER['BASE_PAGE'] = 'archive/1998.php';
33
include_once __DIR__ . '/../include/prepend.inc';
44
news_archive_sidebar();
5-
site_header("News Archive - 1998", array("cache" => true));
5+
site_header("News Archive - 1998", ["cache" => true]);
66
?>
77

88
<h1>News Archive - 1998</h1>
@@ -91,4 +91,4 @@
9191
Report or check on bugs in the PHP 3 Bug Database.
9292
</p>
9393

94-
<?php site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
94+
<?php site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]);

archive/1999.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$_SERVER['BASE_PAGE'] = 'archive/1999.php';
33
include_once __DIR__ . '/../include/prepend.inc';
44
news_archive_sidebar();
5-
site_header("News Archive - 1999", array("cache" => true));
5+
site_header("News Archive - 1999", ["cache" => true]);
66
?>
77

88
<h1>News Archive - 1999</h1>
@@ -117,4 +117,4 @@
117117
information!
118118
</p>
119119

120-
<?php site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
120+
<?php site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]);

archive/2000.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$_SERVER['BASE_PAGE'] = 'archive/2000.php';
33
include_once __DIR__ . '/../include/prepend.inc';
44
news_archive_sidebar();
5-
site_header("News Archive - 2000", array("cache" => true));
5+
site_header("News Archive - 2000", ["cache" => true]);
66
?>
77

88
<h1>News Archive - 2000</h1>
@@ -165,4 +165,4 @@ functions for gd make this release a must for every user of PHP. The
165165
ChangeLog provides a complete list of changes.
166166
</p>
167167

168-
<?php site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
168+
<?php site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]);

archive/2001.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$_SERVER['BASE_PAGE'] = 'archive/2001.php';
33
include_once __DIR__ . '/../include/prepend.inc';
44
news_archive_sidebar();
5-
site_header("News Archive - 2001", array("cache" => true));
5+
site_header("News Archive - 2001", ["cache" => true]);
66
?>
77

88
<h1>News Archive - 2001</h1>
@@ -314,4 +314,4 @@
314314
were discovered in PHP 4.0.4.
315315
</p>
316316

317-
<?php site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
317+
<?php site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]);

archive/2002.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$_SERVER['BASE_PAGE'] = 'archive/2002.php';
33
include_once __DIR__ . '/../include/prepend.inc';
44
news_archive_sidebar();
5-
site_header("News Archive - 2002", array("cache" => true));
5+
site_header("News Archive - 2002", ["cache" => true]);
66
?>
77

88
<h1>News Archive - 2002</h1>
@@ -601,4 +601,4 @@
601601
<li><a href="http://www.phpconference.de/2001/images/PHP_Konferenz/">Conference photos</a></li>
602602
</ul>
603603

604-
<?php site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
604+
<?php site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]);

archive/2003.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$_SERVER['BASE_PAGE'] = 'archive/2003.php';
33
include_once __DIR__ . '/../include/prepend.inc';
44
news_archive_sidebar();
5-
site_header("News Archive - 2003", array("cache" => true));
5+
site_header("News Archive - 2003", ["cache" => true]);
66
?>
77

88
<h1>News Archive - 2003</h1>
@@ -795,4 +795,4 @@
795795
of beta-quality.
796796
</p>
797797

798-
<?php site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
798+
<?php site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]);

archive/2004.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$_SERVER['BASE_PAGE'] = 'archive/2004.php';
33
include_once __DIR__ . '/../include/prepend.inc';
44
news_archive_sidebar();
5-
site_header("News Archive - 2004", array("cache" => true));
5+
site_header("News Archive - 2004", ["cache" => true]);
66
?>
77

88
<h1>News Archive - 2004</h1>
@@ -654,4 +654,4 @@ functions starting with the letters you typed in. You can browse the list
654654
one of a kind conference!
655655
</p>
656656

657-
<?php site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
657+
<?php site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]);

archive/2005.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$_SERVER['BASE_PAGE'] = 'archive/2005.php';
33
include_once __DIR__ . '/../include/prepend.inc';
44
news_archive_sidebar();
5-
site_header("News Archive - 2005", array("cache" => true));
5+
site_header("News Archive - 2005", ["cache" => true]);
66
?>
77

88
<h1>News Archive - 2005</h1>
@@ -536,4 +536,4 @@
536536
Congratulations to us all!
537537
</p>
538538

539-
<?php site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
539+
<?php site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]);

archive/2006.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$_SERVER['BASE_PAGE'] = 'archive/2006.php';
33
include_once __DIR__ . '/../include/prepend.inc';
44
news_archive_sidebar();
5-
site_header("News Archive - 2006", array("cache" => true));
5+
site_header("News Archive - 2006", ["cache" => true]);
66
?>
77

88
<h1>News Archive - 2006</h1>
@@ -466,4 +466,4 @@
466466
and the full list of changes is available in the <a href="/ChangeLog-5.php#5.1.2">PHP 5 ChangeLog</a>.
467467
</p>
468468

469-
<?php site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
469+
<?php site_footer(['elephpants' => true, 'sidebar' => $SIDEBAR_DATA]);

0 commit comments

Comments
 (0)