Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
soap authored and github-actions[bot] committed Sep 4, 2024
1 parent 9e47d48 commit 37c2648
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/RunningNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function generate(string $type, string $prefix, int $length = 3, b
->first();

if (! $runningNumber) {
$runningNumber = new RunningNumberKeeper();
$runningNumber = new RunningNumberKeeper;
$runningNumber->type = $type;
$runningNumber->prefix = $prefix;
if ($reset) {
Expand Down Expand Up @@ -56,7 +56,7 @@ public static function make(string $type, string $prefix, int $length = 3, bool
->where('prefix', $prefix)
->first();
if (! $runningNumber) {
$runningNumber = new RunningNumberKeeper();
$runningNumber = new RunningNumberKeeper;
$runningNumber->type = $type;
$runningNumber->prefix = $prefix;
if ($reset) {
Expand Down Expand Up @@ -84,7 +84,7 @@ public static function reset(string $type, string $prefix, int $value = 1)
->first();

if (! $runningNumber) {
$runningNumber = new RunningNumberKeeper();
$runningNumber = new RunningNumberKeeper;
$runningNumber->type = $type;
$runningNumber->prefix = $prefix;
$runningNumber->number = $value;
Expand Down Expand Up @@ -129,7 +129,7 @@ public static function next(string $type, string $prefix)
->first();

if (! $runningNumber) {
$runningNumber = new RunningNumberKeeper();
$runningNumber = new RunningNumberKeeper;
$runningNumber->type = $type;
$runningNumber->prefix = $prefix;
$runningNumber->number = 1;
Expand Down

0 comments on commit 37c2648

Please sign in to comment.