Skip to content

Commit

Permalink
chore: fix code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
tlayh committed Mar 4, 2024
1 parent d94068d commit 76952d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions Classes/Sequenzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ private function getDefaultStartValue(string $table): int
if (!isset($row['uid'])) {
return $this->defaultStart + $this->defaultOffset;
}

$currentMax = $row['uid'] + 1;
$start = $this->defaultStart + ($this->defaultOffset * ceil($currentMax / $this->defaultOffset));

Expand Down
3 changes: 0 additions & 3 deletions code-quality/phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
parameters:
ignoreErrors:
-
message: "#^Call to an undefined method Doctrine\\\\DBAL\\\\Result\\:\\:fetch\\(\\)\\.$#"
path: ../Classes/Sequenzer.php
-
message: "#^Property Aoe\\\\AoeDbSequenzer\\\\Xclass\\\\QueryBuilder\\:\\:\\$typo3Service \\(Aoe\\\\AoeDbSequenzer\\\\Service\\\\Typo3Service\\) in isset\\(\\) is not nullable\\.$#"
count: 1
Expand Down

0 comments on commit 76952d9

Please sign in to comment.