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:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user