Skip to content

Commit 2ae10ff

Browse files
authored
Enhancement: Enable and configure increment_style fixer
Co-authored-by: Mathias Reker <[email protected]> Closes GH-698.
1 parent a0352f2 commit 2ae10ff

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.php-cs-fixer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
'spacing' => 'one',
2828
],
2929
'constant_case' => true,
30+
'increment_style' => [
31+
'style' => 'post',
32+
],
3033
'indentation_type' => true,
3134
'line_ending' => true,
3235
'no_extra_blank_lines' => true,

include/layout.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ function print_news($news, $dog, $max = 5, $onlyyear = null, $return = false) {
404404
foreach ($item["category"] as $category) {
405405
if (is_null($dog) || in_array($category["term"], (array)$dog, true)) {
406406
$ok = true;
407-
++$count;
407+
$count++;
408408
break;
409409
}
410410
}

src/News/Entry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private static function selectNextId(): string {
183183
$filename = date("Y-m-d", $_SERVER["REQUEST_TIME"]);
184184
$count = 0;
185185
do {
186-
++$count;
186+
$count++;
187187
$id = $filename . "-" . $count;
188188
$basename = "{$id}.xml";
189189
} while (file_exists(self::ARCHIVE_ENTRIES_ABS . $basename));

0 commit comments

Comments
 (0)