diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 50c3e1ae4..fd19fe182 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -11,6 +11,7 @@ $finder = $config->getFinder() $config->setRules([ 'no_trailing_whitespace' => true, + 'whitespace_after_comma_in_array' => true, ]); return $config; diff --git a/cached.php b/cached.php index e155a44cb..cc0b9270a 100644 --- a/cached.php +++ b/cached.php @@ -22,7 +22,7 @@ $abs = $pwd. "/" .(string)$_GET["f"]; $abs = realpath($abs); if (strncmp($abs, $pwd, strlen($pwd)) != 0) { - header("Location: https://www.php.net/" . strtr($_GET["f"],array("\r"=>"","\n"=>""))); + header("Location: https://www.php.net/" . strtr($_GET["f"],array("\r"=>"", "\n"=>""))); exit; } diff --git a/manual/change.php b/manual/change.php index 5ce3e6700..2e480859f 100644 --- a/manual/change.php +++ b/manual/change.php @@ -2,7 +2,7 @@ include_once __DIR__ . '/../include/prepend.inc'; $page = isset($_GET['page']) ? htmlspecialchars($_GET['page'], ENT_QUOTES, 'UTF-8') : ''; -$page = strtr($page, array("\r"=>"","\n"=>"")); +$page = strtr($page, array("\r"=>"", "\n"=>"")); // Redirect to new manual page mirror_redirect("/manual/" . $page); diff --git a/submit-event.php b/submit-event.php index 98892a77b..18d1f5630 100644 --- a/submit-event.php +++ b/submit-event.php @@ -60,7 +60,7 @@ if ($process) { $errors[] = "This does not look like a 'PHP' event"; } - $valid_schemes = array('http','https','ftp'); + $valid_schemes = array('http', 'https', 'ftp'); $_POST['url'] = trim($_POST['url']); $pu = parse_url($_POST['url']);