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

Enhancement: Enable and configure increment_style fixer

Co-authored-by: Mathias Reker <mathias@reker.dk>

Closes GH-698.
This commit is contained in:
Andreas Möller
2022-09-12 15:27:05 +02:00
committed by GitHub
parent a0352f2138
commit 2ae10ff262
3 changed files with 5 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ $config
'spacing' => 'one',
],
'constant_case' => true,
'increment_style' => [
'style' => 'post',
],
'indentation_type' => true,
'line_ending' => true,
'no_extra_blank_lines' => true,

View File

@@ -404,7 +404,7 @@ function print_news($news, $dog, $max = 5, $onlyyear = null, $return = false) {
foreach ($item["category"] as $category) {
if (is_null($dog) || in_array($category["term"], (array)$dog, true)) {
$ok = true;
++$count;
$count++;
break;
}
}

View File

@@ -183,7 +183,7 @@ class Entry {
$filename = date("Y-m-d", $_SERVER["REQUEST_TIME"]);
$count = 0;
do {
++$count;
$count++;
$id = $filename . "-" . $count;
$basename = "{$id}.xml";
} while (file_exists(self::ARCHIVE_ENTRIES_ABS . $basename));