Skip to content

Commit d019d84

Browse files
committed
2 parents 46553dd + 8f2e285 commit d019d84

20 files changed

+18
-60
lines changed

.github/lint.yml renamed to .github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
- name: Commit linted files
3131
uses: stefanzweifel/git-auto-commit-action@v5
3232
with:
33-
commit_message: "Fixes coding style"
33+
commit_message: "Fixes coding style"

app/Helpers/Helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static function setOptions($collection, $value, $label, $group = '')
186186
}
187187
}
188188

189-
return $options;
189+
return $options;
190190
}
191191

192192
/**
@@ -207,7 +207,7 @@ public static function nomor($tahun, $kode_naskah_id, $unit_kerja_id, $kode_arsi
207207
$max = NaskahKeluar::where('tahun', $tahun)->where('kode_naskah_id', $kode_naskah->id)->max('no_urut');
208208
$format = $kode_naskah->format;
209209
($max > 0) ? $no_urut = $max + 1 : $no_urut = 1;
210-
$replaces ['<tahun>'] = $tahun;
210+
$replaces['<tahun>'] = $tahun;
211211
$replaces['<no_urut>'] = $no_urut;
212212
$replaces['<unit_kerja_id>'] = $unit_kerja->kode;
213213
$replaces['<kode_arsip_id>'] = $kode_arsip->kode;

app/Imports/KodeArsipsImport.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
class KodeArsipsImport implements ToModel, WithHeadingRow
1010
{
1111
/**
12-
* @param array $row
1312
* @return \Illuminate\Database\Eloquent\Model|null
1413
*/
1514
public function model(array $row)

app/Models/IzinKeluar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class IzinKeluar extends Model
1313
{
1414
use HasFactory;
15+
1516
protected $casts = [
1617
'tanggal' => 'date',
1718
];

app/Models/KodeArsip.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class KodeArsip extends Model
1111
{
1212
use HasFactory, LaraCache;
13+
1314
protected $guarded = [];
1415

1516
public static function cacheEntities(): array

app/Models/NaskahKeluar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class NaskahKeluar extends Model
1111
{
1212
use HasFactory;
13+
1314
protected $casts = [
1415
'tanggal' => 'date',
1516
'tanggal_kirim' => 'date',

app/Models/NaskahMasuk.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
class NaskahMasuk extends Model
99
{
1010
use HasFactory;
11+
1112
protected $casts = [
1213
'tanggal' => 'date',
1314
];

app/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class User extends Authenticatable
1414
{
15-
use HasFactory, Notifiable, LaraCache;
15+
use HasFactory, LaraCache, Notifiable;
1616

1717
public static function cacheEntities(): array
1818
{

app/Nova/Actions/ImportKodeArsip.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ class ImportKodeArsip extends Action
2020
/**
2121
* Perform the action on the given models.
2222
*
23-
* @param \Laravel\Nova\Fields\ActionFields $fields
24-
* @param \Illuminate\Support\Collection $models
2523
* @return mixed
2624
*/
2725
public function handle(ActionFields $fields, Collection $models)
@@ -35,7 +33,6 @@ public function handle(ActionFields $fields, Collection $models)
3533
/**
3634
* Get the fields available on the action.
3735
*
38-
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
3936
* @return array
4037
*/
4138
public function fields(NovaRequest $request)

app/Nova/Filters/GroupArsip.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class GroupArsip extends Filter
2525
/**
2626
* Apply the filter to the given query.
2727
*
28-
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
2928
* @param \Illuminate\Database\Eloquent\Builder $query
3029
* @param mixed $value
3130
* @return \Illuminate\Database\Eloquent\Builder
@@ -38,12 +37,10 @@ public function apply(NovaRequest $request, $query, $value)
3837
/**
3938
* Get the filter's available options.
4039
*
41-
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
4240
* @return array
4341
*/
4442
public function options(NovaRequest $request)
4543
{
46-
return
47-
KodeArsip::distinct()->get('group')->pluck('group', 'group');
44+
return KodeArsip::distinct()->get('group')->pluck('group', 'group');
4845
}
4946
}

0 commit comments

Comments
 (0)