Skip to content

Commit 692e074

Browse files
scottgraysongithub-actions[bot]
authored andcommitted
Fix styling
1 parent 86ee9ac commit 692e074

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/FilamentLibraryPlugin.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function getId(): string
1818
/**
1919
* Set a custom callback to determine if a user is a library admin.
2020
*
21-
* @param callable $callback Function that receives a user and returns bool
21+
* @param callable $callback Function that receives a user and returns bool
2222
*/
2323
public static function setLibraryAdminCallback(callable $callback): void
2424
{
@@ -28,12 +28,11 @@ public static function setLibraryAdminCallback(callable $callback): void
2828
/**
2929
* Check if a user is a library admin.
3030
*
31-
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
32-
* @return bool
31+
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
3332
*/
3433
public static function isLibraryAdmin($user): bool
3534
{
36-
if (!$user) {
35+
if (! $user) {
3736
return false;
3837
}
3938

src/Resources/Pages/EditFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema
157157
->preload()
158158
->disabled(function () {
159159
// Only allow changes if user has library admin access (Admin role)
160-
return !\Tapp\FilamentLibrary\FilamentLibraryPlugin::isLibraryAdmin(auth()->user());
160+
return ! \Tapp\FilamentLibrary\FilamentLibraryPlugin::isLibraryAdmin(auth()->user());
161161
})
162162
->helperText('Creator receives owner permissions'),
163163
]);

src/Resources/Pages/EditFolder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema
148148
->preload()
149149
->disabled(function () {
150150
// Only allow changes if user has library admin access (Admin role)
151-
return !\Tapp\FilamentLibrary\FilamentLibraryPlugin::isLibraryAdmin(auth()->user());
151+
return ! \Tapp\FilamentLibrary\FilamentLibraryPlugin::isLibraryAdmin(auth()->user());
152152
})
153153
->helperText('Creator receives owner permissions'),
154154
]);

src/Resources/Pages/EditLink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema
152152
->preload()
153153
->disabled(function () {
154154
// Only allow changes if user has library admin access (Admin role)
155-
return !\Tapp\FilamentLibrary\FilamentLibraryPlugin::isLibraryAdmin(auth()->user());
155+
return ! \Tapp\FilamentLibrary\FilamentLibraryPlugin::isLibraryAdmin(auth()->user());
156156
})
157157
->helperText('Creator receives owner permissions'),
158158
]);

0 commit comments

Comments
 (0)