Skip to content

Commit a621cbe

Browse files
committed
Apply fixes from StyleCI
1 parent eac984a commit a621cbe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/Policies/IzinKeluarPolicy.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function viewAny(): bool
2020
*/
2121
public function view(User $user, IzinKeluar $izinKeluar): bool
2222
{
23-
$allowedyear = ((session('year') == $izinKeluar->tahun));
23+
$allowedyear = (session('year') == $izinKeluar->tahun);
2424
if (session('role') === 'kepala') {
2525
return $allowedyear;
2626
}
@@ -47,7 +47,7 @@ public function create(User $user): bool
4747
*/
4848
public function update(User $user, IzinKeluar $izinKeluar): bool
4949
{
50-
$allowedyear = ((session('year') == $izinKeluar->tahun));
50+
$allowedyear = (session('year') == $izinKeluar->tahun);
5151

5252
return $allowedyear && ($user->id === $izinKeluar->user_id);
5353
}
@@ -57,7 +57,7 @@ public function update(User $user, IzinKeluar $izinKeluar): bool
5757
*/
5858
public function delete(User $user, IzinKeluar $izinKeluar): bool
5959
{
60-
$allowedyear = ((session('year') == $izinKeluar->tahun));
60+
$allowedyear = (session('year') == $izinKeluar->tahun);
6161

6262
return $allowedyear && ($user->id === $izinKeluar->user_id);
6363
}
@@ -67,7 +67,7 @@ public function delete(User $user, IzinKeluar $izinKeluar): bool
6767
*/
6868
public function restore(User $user, IzinKeluar $izinKeluar): bool
6969
{
70-
$allowedyear = ((session('year') == $izinKeluar->tahun));
70+
$allowedyear = (session('year') == $izinKeluar->tahun);
7171

7272
return $allowedyear && ($user->id === $izinKeluar->user_id);
7373
}
@@ -77,7 +77,7 @@ public function restore(User $user, IzinKeluar $izinKeluar): bool
7777
*/
7878
public function forceDelete(User $user, IzinKeluar $izinKeluar): bool
7979
{
80-
$allowedyear = ((session('year') == $izinKeluar->tahun));
80+
$allowedyear = (session('year') == $izinKeluar->tahun);
8181

8282
return $allowedyear && ($user->id === $izinKeluar->user_id);
8383
}
@@ -87,7 +87,7 @@ public function forceDelete(User $user, IzinKeluar $izinKeluar): bool
8787
*/
8888
public function replicate(User $user, IzinKeluar $izinKeluar): bool
8989
{
90-
$allowedyear = ((session('year') == $izinKeluar->tahun));
90+
$allowedyear = (session('year') == $izinKeluar->tahun);
9191

9292
return $allowedyear && ($user->id === $izinKeluar->user_id);
9393
}

0 commit comments

Comments
 (0)