Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and actions-user committed Mar 20, 2021
1 parent 804ad20 commit 1eee4cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/HasTranslatableSlug.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Spatie\Sluggable;

use Illuminate\Support\Str;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Illuminate\Support\Traits\Localizable;

trait HasTranslatableSlug
Expand Down Expand Up @@ -60,10 +60,10 @@ protected function generateNonUniqueSlug(): string

$slug = $this->getTranslations($slugField)[$this->getLocale()] ?? null;

$hasCustomSlug = $this->hasCustomSlugBeenUsed() && !empty($slug);
$hasNonChangedCustomSlug = !$this->slugIsBasedOnTitle() && !empty($slug);
$hasCustomSlug = $this->hasCustomSlugBeenUsed() && ! empty($slug);
$hasNonChangedCustomSlug = ! $this->slugIsBasedOnTitle() && ! empty($slug);

if($hasCustomSlug || $hasNonChangedCustomSlug){
if ($hasCustomSlug || $hasNonChangedCustomSlug) {
$slugString = $slug;
}

Expand Down

0 comments on commit 1eee4cd

Please sign in to comment.