Skip to content

Commit 087d897

Browse files
Merge pull request #56 from laravelwebdev/analysis-a6KyMZ
Apply fixes from StyleCI
2 parents 65b7386 + de73ab7 commit 087d897

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/Helpers/Helper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,10 @@ public static function nomor($tanggal, $jenis_naskah_id, $unit_kerja_id = null,
273273
{
274274
$replaces = [];
275275
$tahun = self::getYearFromDate($tanggal);
276-
$replaces['<tahun>'] = $tahun;
276+
$replaces['<tahun>'] = $tahun;
277277
$jenis_naskah = JenisNaskah::cache()->get('all')->where('id', $jenis_naskah_id)->first();
278278
$kode_naskah = KodeNaskah::cache()->get('all')->where('id', $jenis_naskah->kode_naskah_id)->first();
279-
if ($unit_kerja_id !== null) {
279+
if ($unit_kerja_id !== null) {
280280
$unit_kerja = UnitKerja::cache()->get('all')->where('id', $unit_kerja_id)->first();
281281
$replaces['<kode_unit_kerja>'] = $unit_kerja->kode;
282282
}
@@ -300,14 +300,14 @@ public static function nomor($tanggal, $jenis_naskah_id, $unit_kerja_id = null,
300300
$segmen = NaskahKeluar::where('tahun', $tahun)->where('kode_naskah_id', $kode_naskah->id)->where('no_urut', $no_urut)->max('segmen') + 1;
301301
$replaces['<no_urut>'] = $no_urut.'.'.$segmen;
302302
}
303-
$format = $jenis_naskah->format ?? $kode_naskah->format;
303+
$format = $jenis_naskah->format ?? $kode_naskah->format;
304304
$nomor = strtr($format, $replaces);
305305

306306
return [
307307
'nomor' => $nomor,
308308
'no_urut' => $no_urut,
309309
'segmen' => $segmen,
310-
'kode_naskah_id' => $kode_naskah->id
310+
'kode_naskah_id' => $kode_naskah->id,
311311
];
312312
}
313313

database/migrations/2024_09_14_155302_create_derajat_surats_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public function up(): void
1313
{
1414
Schema::create('derajat_surats', function (Blueprint $table) {
1515
$table->id();
16-
$table->string('kode',10)->nullable();
17-
$table->string('derajat',20)->nullable();
16+
$table->string('kode', 10)->nullable();
17+
$table->string('derajat', 20)->nullable();
1818
$table->timestamps();
1919
});
2020
}

0 commit comments

Comments
 (0)