Skip to content

Commit 79ec4f5

Browse files
laravelwebdevgithub-actions[bot]
authored andcommitted
Fixes coding style
1 parent d019d84 commit 79ec4f5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

app/Policies/JenisNaskahPolicy.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use App\Models\JenisNaskah;
66
use App\Models\User;
7-
use Illuminate\Auth\Access\Response;
87

98
class JenisNaskahPolicy
109
{
@@ -13,62 +12,62 @@ class JenisNaskahPolicy
1312
*/
1413
public function viewAny(User $user): bool
1514
{
16-
return (session('role') === 'admin');
15+
return session('role') === 'admin';
1716
}
1817

1918
/**
2019
* Determine whether the user can view the model.
2120
*/
2221
public function view(User $user, JenisNaskah $jenisNaskah): bool
2322
{
24-
return (session('role') === 'admin');
23+
return session('role') === 'admin';
2524
}
2625

2726
/**
2827
* Determine whether the user can create models.
2928
*/
3029
public function create(User $user): bool
3130
{
32-
return (session('role') === 'admin');
31+
return session('role') === 'admin';
3332
}
3433

3534
/**
3635
* Determine whether the user can update the model.
3736
*/
3837
public function update(User $user, JenisNaskah $jenisNaskah): bool
3938
{
40-
return (session('role') === 'admin');
39+
return session('role') === 'admin';
4140
}
4241

4342
/**
4443
* Determine whether the user can delete the model.
4544
*/
4645
public function delete(User $user, JenisNaskah $jenisNaskah): bool
4746
{
48-
return (session('role') === 'admin');
47+
return session('role') === 'admin';
4948
}
5049

5150
/**
5251
* Determine whether the user can restore the model.
5352
*/
5453
public function restore(User $user, JenisNaskah $jenisNaskah): bool
5554
{
56-
return (session('role') === 'admin');
55+
return session('role') === 'admin';
5756
}
5857

5958
/**
6059
* Determine whether the user can permanently delete the model.
6160
*/
6261
public function forceDelete(User $user, JenisNaskah $jenisNaskah): bool
6362
{
64-
return (session('role') === 'admin');
63+
return session('role') === 'admin';
6564
}
6665

6766
/**
6867
* Determine whether the user can replicate the model.
6968
*/
7069
public function replicate(User $user, JenisNaskah $jenisNaskah): bool
7170
{
72-
return (session('role') === 'admin');
71+
return session('role') === 'admin';
7372
}
7473
}

0 commit comments

Comments
 (0)