From 3dc9e1966ae1cb3831eb0b053acc616b12172c80 Mon Sep 17 00:00:00 2001 From: Eli Hovis Date: Tue, 6 Feb 2024 11:42:14 -0500 Subject: [PATCH] Fix CI --- Model/ModelRegistry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Model/ModelRegistry.php b/Model/ModelRegistry.php index e2da02141..625621293 100644 --- a/Model/ModelRegistry.php +++ b/Model/ModelRegistry.php @@ -127,11 +127,11 @@ private function generateModelName(Model $model): string ); $i = 1; while (\in_array($name, $names, true)) { - $i++; + ++$i; $name = $base.$i; } - if($i > 1) { + if ($i > 1) { $this->logger->info(sprintf('Can not assign a name for the model, the name "%s" is now being used %s times', $base, $i), [ 'model' => $this->modelToArray($model), 'taken_by' => $this->modelToArray($this->registeredModelNames[$base]),