1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Enhancement: Update friendsofphp/php-cs-fixer (#849)

* Enhancement: Update friendsofphp/php-cs-fixer

* Fix: Run 'make coding-standards'

* Fix: Do not configure deprecated fixers
This commit is contained in:
Andreas Möller
2023-12-05 14:10:35 +01:00
committed by GitHub
parent a8c736a079
commit b8df60d5a9
5 changed files with 339 additions and 604 deletions

View File

@@ -33,12 +33,18 @@ $config
],
'indentation_type' => true,
'line_ending' => true,
'new_with_braces' => true,
'new_with_parentheses' => true,
'no_extra_blank_lines' => true,
'no_trailing_whitespace' => true,
'ordered_class_elements' => true,
'random_api_migration' => true,
'single_space_after_construct' => true,
'single_space_around_construct' => [
'constructs_contain_a_single_space' => [
'yield_from',
],
'constructs_preceded_by_a_single_space' => [],
'constructs_followed_by_a_single_space' => [],
],
'strict_param' => true,
'switch_case_space' => true,
'trim_array_spaces' => true,

View File

@@ -11,7 +11,7 @@
"php": "~8.2.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.4.0"
"friendsofphp/php-cs-fixer": "^3.40.2"
},
"autoload": {
"psr-4": {

927
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -139,7 +139,7 @@ if (preg_match("!^get/([^/]+)/from/([^/]+)(/mirror)?$!", $URI, $dlinfo)) {
$df = $dlinfo[1];
if (strpos($df, "7-LATEST") !== false) {
include_once __DIR__ . "/include/version.inc";
[ $latest ] = release_get_latest();
[$latest] = release_get_latest();
$df = str_replace("7-LATEST", $latest, $df);
}

View File

@@ -12,7 +12,7 @@ header("Content-type: text/plain; charset=utf-8");
$mirror_stats = (int) (isset($_SERVER['MIRROR_STATS']) && $_SERVER['MIRROR_STATS'] == '1');
// SHA256 check last release file (identifies rsync setup problems)
[ , $latest ] = release_get_latest();
[, $latest] = release_get_latest();
$dist = $latest['source'][0];
$filename = __DIR__ . "/distributions/{$dist['filename']}";
if (!file_exists($filename)) {