Skip to content

Commit 7bbc108

Browse files
committed
Apply fixes from StyleCI
1 parent b3f478e commit 7bbc108

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

app/Helpers/Helper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use App\Models\DaftarHonorMitra;
66
use App\Models\DaftarHonorPegawai;
7-
use App\Models\DaftarSp2d;
87
use App\Models\DataPegawai;
98
use App\Models\DerajatNaskah;
109
use App\Models\Dipa;

app/Models/DaftarSp2d.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace App\Models;
44

5-
use Illuminate\Database\Eloquent\Builder;
65
use Illuminate\Database\Eloquent\Model;
76
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
87
use Illuminate\Database\Eloquent\Relations\HasMany;

app/Models/KerangkaAcuan.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App\Models;
44

55
use App\Helpers\Helper;
6-
use Illuminate\Database\Eloquent\Builder;
76
use Illuminate\Database\Eloquent\Model;
87
use Illuminate\Database\Eloquent\Relations\BelongsTo;
98
use Illuminate\Database\Eloquent\Relations\BelongsToMany;

app/Nova/DaftarSp2d.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Laravel\Nova\Fields\Date;
1111
use Laravel\Nova\Fields\File;
1212
use Laravel\Nova\Fields\HasMany;
13-
use Laravel\Nova\Fields\Number;
1413
use Laravel\Nova\Fields\Select;
1514
use Laravel\Nova\Fields\Text;
1615
use Laravel\Nova\Fields\URL;
@@ -89,8 +88,8 @@ public function fields(NovaRequest $request)
8988
->options([
9089
0 => 'Belum Ada KAK',
9190
])
92-
->filterable(function ($request, $query, $value, $attribute) {
93-
$query->has('kerangkaAcuan', '<=', $value);
91+
->filterable(function ($request, $query, $value, $attribute) {
92+
$query->has('kerangkaAcuan', '<=', $value);
9493
})
9594
->onlyOnDetail(),
9695
Panel::make('Arsip', [
@@ -185,6 +184,6 @@ public function actions(NovaRequest $request)
185184

186185
public static function indexQuery(NovaRequest $request, $query)
187186
{
188-
$query->whereYear('tanggal_sp2d',session('year'))->withCount('kerangkaAcuan');
187+
$query->whereYear('tanggal_sp2d', session('year'))->withCount('kerangkaAcuan');
189188
}
190189
}

app/Policies/DaftarSp2dPolicy.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public function replicate(): bool
6060
return false;
6161
}
6262

63-
6463
public function attachKerangkaAcuan(): bool
6564
{
6665
return Policy::make()
@@ -78,9 +77,7 @@ public function attachAnyKerangkaAcuan(): bool
7877
public function detachKerangkaAcuan(): bool
7978
{
8079
return Policy::make()
81-
->allowedFor('ppspm,arsiparis')
82-
->get();
80+
->allowedFor('ppspm,arsiparis')
81+
->get();
8382
}
84-
85-
8683
}

0 commit comments

Comments
 (0)