Skip to content

Commit 4b3e3c9

Browse files
authored
Enhancement: Enable whitespace_after_comma_in_array fixer
Closes GH-637.
1 parent 3831424 commit 4b3e3c9

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
$config->setRules([
1313
'no_trailing_whitespace' => true,
14+
'whitespace_after_comma_in_array' => true,
1415
]);
1516

1617
return $config;

cached.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$abs = realpath($abs);
2323

2424
if (strncmp($abs, $pwd, strlen($pwd)) != 0) {
25-
header("Location: https://www.php.net/" . strtr($_GET["f"],array("\r"=>"","\n"=>"")));
25+
header("Location: https://www.php.net/" . strtr($_GET["f"],array("\r"=>"", "\n"=>"")));
2626
exit;
2727
}
2828

manual/change.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
include_once __DIR__ . '/../include/prepend.inc';
33

44
$page = isset($_GET['page']) ? htmlspecialchars($_GET['page'], ENT_QUOTES, 'UTF-8') : '';
5-
$page = strtr($page, array("\r"=>"","\n"=>""));
5+
$page = strtr($page, array("\r"=>"", "\n"=>""));
66

77
// Redirect to new manual page
88
mirror_redirect("/manual/" . $page);

submit-event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
$errors[] = "This does not look like a 'PHP' event";
6161
}
6262

63-
$valid_schemes = array('http','https','ftp');
63+
$valid_schemes = array('http', 'https', 'ftp');
6464

6565
$_POST['url'] = trim($_POST['url']);
6666
$pu = parse_url($_POST['url']);

0 commit comments

Comments
 (0)