Skip to content

Commit 532f7f6

Browse files
cklei-carlygithub-actions[bot]
authored andcommitted
Fix styling
1 parent 3f9fd4a commit 532f7f6

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/Commands/ImportDefaultDataCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
use Illuminate\Support\Str;
77
use RuntimeException;
88
use SolutionForest\InspireCms\Database\Seeders\SampleSeeder;
9-
use SolutionForest\InspireCms\Helpers\AuthHelper;
109
use SolutionForest\InspireCms\Helpers\ModelHelper;
1110
use SolutionForest\InspireCms\Helpers\PermissionHelper;
1211
use SolutionForest\InspireCms\Helpers\TemplateHelper;
1312
use SolutionForest\InspireCms\InspireCmsConfig;
14-
use Spatie\Permission\Contracts\Permission as SpatiePermissionContract;
1513
use Symfony\Component\Console\Attribute\AsCommand;
1614
use Symfony\Component\Console\Input\InputArgument;
1715

src/Filament/Resources/RoleResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ private static function getCommonCheckboxListForSection($name, $attribute, $opti
362362
]);
363363
}
364364
// endregion Form field(s)/component(s)
365-
365+
366366
public static function canCreate(): bool
367367
{
368368
if (! app(LicenseManager::class)->canCreateRole()) {

src/Licensing/LicenseManager.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ public function canUpgrade(): bool
108108
if (! $tier || ! is_string($tier)) {
109109
return true;
110110
}
111+
111112
return $this->isFree();
112113
}
113-
114+
114115
public function getLimitedUserCount(): ?int
115116
{
116117
return match ($this->getLicenseTier()) {
@@ -136,6 +137,7 @@ public function canCreateUser(): bool
136137
$existingUserCount = InspireCmsConfig::getUserModelClass()::query()
137138
->withoutGlobalScope(SoftDeletingScope::class)
138139
->count();
140+
139141
return $existingUserCount < $limitedUserCount;
140142
}
141143

@@ -148,6 +150,7 @@ public function canCreateRole(): bool
148150
$existingRoleCount = InspireCmsConfig::getRoleModelClass()::query()
149151
->withoutGlobalScope(SoftDeletingScope::class)
150152
->count();
153+
151154
return $existingRoleCount < $limitedRoleCount;
152155
}
153156

0 commit comments

Comments
 (0)