diff --git a/src/Http/Controllers/GuestEntryController.php b/src/Http/Controllers/GuestEntryController.php index 277ec0b..a5a58fb 100644 --- a/src/Http/Controllers/GuestEntryController.php +++ b/src/Http/Controllers/GuestEntryController.php @@ -249,7 +249,7 @@ protected function generateEntrySlug($entry): string } $iteration++; - $slug = $originalSlug . '-' . $iteration; + $slug = $originalSlug.'-'.$iteration; } } diff --git a/tests/Http/Controllers/GuestEntryControllerTest.php b/tests/Http/Controllers/GuestEntryControllerTest.php index 8a3716e..44bb5a5 100644 --- a/tests/Http/Controllers/GuestEntryControllerTest.php +++ b/tests/Http/Controllers/GuestEntryControllerTest.php @@ -18,8 +18,8 @@ use Statamic\Facades\Collection; use Statamic\Facades\Entry; use Statamic\Facades\Site; - use Statamic\Structures\CollectionStructure; + use function PHPUnit\Framework\assertCount; beforeEach(function () {