From 56b76d1f846804f36c5f838241515578b4a4bc64 Mon Sep 17 00:00:00 2001 From: Achmad Hadi Kurnia Date: Thu, 19 Oct 2023 20:18:21 +0700 Subject: [PATCH 1/2] Add operation duration on command --- src/Commands/GetAngkaKreditIdCommand.php | 4 ++++ src/Commands/GetDataAnakCommand.php | 4 ++++ src/Commands/GetDataOrtuCommand.php | 4 ++++ src/Commands/GetDataPasanganCommand.php | 4 ++++ src/Commands/GetDataUtamaCommand.php | 4 ++++ src/Commands/GetDiklatIdCommand.php | 4 ++++ src/Commands/GetDownloadDokCommand.php | 6 +++++- src/Commands/GetHukdisIdCommand.php | 4 ++++ src/Commands/GetJabatanIdCommand.php | 4 ++++ src/Commands/GetJabatanPnsCommand.php | 4 ++++ src/Commands/GetKursusIdCommand.php | 4 ++++ src/Commands/GetListKpInstansiCommand.php | 4 ++++ src/Commands/GetListPengadaanInstansiCommand.php | 4 ++++ src/Commands/GetListPensiunInstansiCommand.php | 4 ++++ src/Commands/GetPenghargaanIdCommand.php | 4 ++++ src/Commands/GetReferensiUnorCommand.php | 4 ++++ src/Commands/GetRwAngkaKreditCommand.php | 4 ++++ src/Commands/GetRwCltnCommand.php | 4 ++++ src/Commands/GetRwDiklatCommand.php | 4 ++++ src/Commands/GetRwDp3Command.php | 4 ++++ src/Commands/GetRwGolonganCommand.php | 4 ++++ src/Commands/GetRwHukdisCommand.php | 4 ++++ src/Commands/GetRwJabatanCommand.php | 4 ++++ src/Commands/GetRwKursusCommand.php | 4 ++++ src/Commands/GetRwMasaKerjaCommand.php | 4 ++++ src/Commands/GetRwPemberhentianCommand.php | 4 ++++ src/Commands/GetRwPendidikanCommand.php | 4 ++++ src/Commands/GetRwPenghargaanCommand.php | 4 ++++ src/Commands/GetRwPindahInstansiCommand.php | 4 ++++ src/Commands/GetRwPwkCommand.php | 4 ++++ src/Commands/GetRwSkp22Command.php | 4 ++++ src/Commands/GetRwSkpCommand.php | 4 ++++ src/Commands/GetRwUnorCommand.php | 4 ++++ src/Commands/GetSkp22IdCommand.php | 4 ++++ src/Commands/GetSkpIdCommand.php | 4 ++++ src/Commands/PostAngkaKreditSaveCommand.php | 6 +++++- src/Commands/PostCpnsSaveCommand.php | 6 +++++- src/Commands/PostDataUtamaUpdateCommand.php | 6 +++++- src/Commands/PostDiklatSaveCommand.php | 6 +++++- src/Commands/PostHukdisSaveCommand.php | 6 +++++- src/Commands/PostJabatanSaveCommand.php | 6 +++++- src/Commands/PostKursusSaveCommand.php | 6 +++++- src/Commands/PostPenghargaanSaveCommand.php | 6 +++++- src/Commands/PostSkp2021SaveCommand.php | 6 +++++- src/Commands/PostSkp22SaveCommand.php | 6 +++++- src/Commands/PostSkpSaveCommand.php | 6 +++++- src/Commands/PostUploadDokCommand.php | 6 +++++- src/Commands/PostUploadDokRwCommand.php | 6 +++++- src/Commands/PostUploadDokSkKpCommand.php | 6 +++++- 49 files changed, 211 insertions(+), 15 deletions(-) diff --git a/src/Commands/GetAngkaKreditIdCommand.php b/src/Commands/GetAngkaKreditIdCommand.php index ba860de..8b85d09 100644 --- a/src/Commands/GetAngkaKreditIdCommand.php +++ b/src/Commands/GetAngkaKreditIdCommand.php @@ -27,6 +27,7 @@ class GetAngkaKreditIdCommand extends Command */ public function handle() { + $start = now(); $id = $this->argument('id'); $paths = [ 'idRiwayatAngkaKredit' => $id, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetDataAnakCommand.php b/src/Commands/GetDataAnakCommand.php index 4a8de38..aef6ec7 100644 --- a/src/Commands/GetDataAnakCommand.php +++ b/src/Commands/GetDataAnakCommand.php @@ -27,6 +27,7 @@ class GetDataAnakCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetDataOrtuCommand.php b/src/Commands/GetDataOrtuCommand.php index 1f185b6..89219ef 100644 --- a/src/Commands/GetDataOrtuCommand.php +++ b/src/Commands/GetDataOrtuCommand.php @@ -27,6 +27,7 @@ class GetDataOrtuCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetDataPasanganCommand.php b/src/Commands/GetDataPasanganCommand.php index 4b1bcb4..4fd564a 100644 --- a/src/Commands/GetDataPasanganCommand.php +++ b/src/Commands/GetDataPasanganCommand.php @@ -27,6 +27,7 @@ class GetDataPasanganCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetDataUtamaCommand.php b/src/Commands/GetDataUtamaCommand.php index 88e0540..f714ff7 100644 --- a/src/Commands/GetDataUtamaCommand.php +++ b/src/Commands/GetDataUtamaCommand.php @@ -27,6 +27,7 @@ class GetDataUtamaCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetDiklatIdCommand.php b/src/Commands/GetDiklatIdCommand.php index 6339e35..8be4d03 100644 --- a/src/Commands/GetDiklatIdCommand.php +++ b/src/Commands/GetDiklatIdCommand.php @@ -27,6 +27,7 @@ class GetDiklatIdCommand extends Command */ public function handle() { + $start = now(); $id = $this->argument('id'); $paths = [ 'idRiwayatDiklat' => $id, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetDownloadDokCommand.php b/src/Commands/GetDownloadDokCommand.php index 1134b27..9df928e 100644 --- a/src/Commands/GetDownloadDokCommand.php +++ b/src/Commands/GetDownloadDokCommand.php @@ -27,11 +27,12 @@ class GetDownloadDokCommand extends Command */ public function handle() { + $start = now(); $this->comment('{"filePath":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -42,6 +43,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetHukdisIdCommand.php b/src/Commands/GetHukdisIdCommand.php index ada755c..2e2bbdd 100644 --- a/src/Commands/GetHukdisIdCommand.php +++ b/src/Commands/GetHukdisIdCommand.php @@ -27,6 +27,7 @@ class GetHukdisIdCommand extends Command */ public function handle() { + $start = now(); $id = $this->argument('id'); $paths = [ 'idRiwayatHukdis' => $id, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetJabatanIdCommand.php b/src/Commands/GetJabatanIdCommand.php index c9c2ea9..9f2b5f2 100644 --- a/src/Commands/GetJabatanIdCommand.php +++ b/src/Commands/GetJabatanIdCommand.php @@ -27,6 +27,7 @@ class GetJabatanIdCommand extends Command */ public function handle() { + $start = now(); $id = $this->argument('id'); $paths = [ 'idRiwayatJabatan' => $id, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetJabatanPnsCommand.php b/src/Commands/GetJabatanPnsCommand.php index f1e61a7..2dfee7e 100644 --- a/src/Commands/GetJabatanPnsCommand.php +++ b/src/Commands/GetJabatanPnsCommand.php @@ -27,6 +27,7 @@ class GetJabatanPnsCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetKursusIdCommand.php b/src/Commands/GetKursusIdCommand.php index b009e7e..1fe4681 100644 --- a/src/Commands/GetKursusIdCommand.php +++ b/src/Commands/GetKursusIdCommand.php @@ -27,6 +27,7 @@ class GetKursusIdCommand extends Command */ public function handle() { + $start = now(); $id = $this->argument('id'); $paths = [ 'idRiwayatKursus' => $id, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetListKpInstansiCommand.php b/src/Commands/GetListKpInstansiCommand.php index f99e6bb..4b09c7c 100644 --- a/src/Commands/GetListKpInstansiCommand.php +++ b/src/Commands/GetListKpInstansiCommand.php @@ -27,6 +27,7 @@ class GetListKpInstansiCommand extends Command */ public function handle() { + $start = now(); $periode = $this->argument('periode'); $query = [ 'periode' => $periode, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetListPengadaanInstansiCommand.php b/src/Commands/GetListPengadaanInstansiCommand.php index da9a151..525c586 100644 --- a/src/Commands/GetListPengadaanInstansiCommand.php +++ b/src/Commands/GetListPengadaanInstansiCommand.php @@ -27,6 +27,7 @@ class GetListPengadaanInstansiCommand extends Command */ public function handle() { + $start = now(); $tahun = $this->argument('tahun'); $query = [ 'tahun' => $tahun, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetListPensiunInstansiCommand.php b/src/Commands/GetListPensiunInstansiCommand.php index 6b2cb86..7452904 100644 --- a/src/Commands/GetListPensiunInstansiCommand.php +++ b/src/Commands/GetListPensiunInstansiCommand.php @@ -28,6 +28,7 @@ class GetListPensiunInstansiCommand extends Command */ public function handle() { + $start = now(); $tglAwal = $this->argument('tglAwal'); $tglAkhir = $this->argument('tglAkhir'); $query = [ @@ -40,6 +41,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetPenghargaanIdCommand.php b/src/Commands/GetPenghargaanIdCommand.php index 9345572..b061d82 100644 --- a/src/Commands/GetPenghargaanIdCommand.php +++ b/src/Commands/GetPenghargaanIdCommand.php @@ -27,6 +27,7 @@ class GetPenghargaanIdCommand extends Command */ public function handle() { + $start = now(); $id = $this->argument('id'); $paths = [ 'idRiwayatPenghargaan' => $id, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetReferensiUnorCommand.php b/src/Commands/GetReferensiUnorCommand.php index 4117334..0eec824 100644 --- a/src/Commands/GetReferensiUnorCommand.php +++ b/src/Commands/GetReferensiUnorCommand.php @@ -26,11 +26,15 @@ class GetReferensiUnorCommand extends Command */ public function handle() { + $start = now(); $this->info(json_encode( Simpeg::getReferensiUnor()->object(), JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwAngkaKreditCommand.php b/src/Commands/GetRwAngkaKreditCommand.php index 894be16..321bc93 100644 --- a/src/Commands/GetRwAngkaKreditCommand.php +++ b/src/Commands/GetRwAngkaKreditCommand.php @@ -27,6 +27,7 @@ class GetRwAngkaKreditCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwCltnCommand.php b/src/Commands/GetRwCltnCommand.php index e92cd38..5160308 100644 --- a/src/Commands/GetRwCltnCommand.php +++ b/src/Commands/GetRwCltnCommand.php @@ -27,6 +27,7 @@ class GetRwCltnCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwDiklatCommand.php b/src/Commands/GetRwDiklatCommand.php index 44676c6..37f9193 100644 --- a/src/Commands/GetRwDiklatCommand.php +++ b/src/Commands/GetRwDiklatCommand.php @@ -27,6 +27,7 @@ class GetRwDiklatCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwDp3Command.php b/src/Commands/GetRwDp3Command.php index 52ee0e7..63d6963 100644 --- a/src/Commands/GetRwDp3Command.php +++ b/src/Commands/GetRwDp3Command.php @@ -27,6 +27,7 @@ class GetRwDp3Command extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwGolonganCommand.php b/src/Commands/GetRwGolonganCommand.php index a840da5..d3ebe68 100644 --- a/src/Commands/GetRwGolonganCommand.php +++ b/src/Commands/GetRwGolonganCommand.php @@ -27,6 +27,7 @@ class GetRwGolonganCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwHukdisCommand.php b/src/Commands/GetRwHukdisCommand.php index b895f5a..4bb5794 100644 --- a/src/Commands/GetRwHukdisCommand.php +++ b/src/Commands/GetRwHukdisCommand.php @@ -27,6 +27,7 @@ class GetRwHukdisCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwJabatanCommand.php b/src/Commands/GetRwJabatanCommand.php index 85181ea..c43bfdf 100644 --- a/src/Commands/GetRwJabatanCommand.php +++ b/src/Commands/GetRwJabatanCommand.php @@ -27,6 +27,7 @@ class GetRwJabatanCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwKursusCommand.php b/src/Commands/GetRwKursusCommand.php index 64d49eb..d93a301 100644 --- a/src/Commands/GetRwKursusCommand.php +++ b/src/Commands/GetRwKursusCommand.php @@ -27,6 +27,7 @@ class GetRwKursusCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwMasaKerjaCommand.php b/src/Commands/GetRwMasaKerjaCommand.php index b3dbb80..80baf20 100644 --- a/src/Commands/GetRwMasaKerjaCommand.php +++ b/src/Commands/GetRwMasaKerjaCommand.php @@ -27,6 +27,7 @@ class GetRwMasaKerjaCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwPemberhentianCommand.php b/src/Commands/GetRwPemberhentianCommand.php index 91f7a3f..a48a683 100644 --- a/src/Commands/GetRwPemberhentianCommand.php +++ b/src/Commands/GetRwPemberhentianCommand.php @@ -27,6 +27,7 @@ class GetRwPemberhentianCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwPendidikanCommand.php b/src/Commands/GetRwPendidikanCommand.php index 4894c43..7829b1a 100644 --- a/src/Commands/GetRwPendidikanCommand.php +++ b/src/Commands/GetRwPendidikanCommand.php @@ -27,6 +27,7 @@ class GetRwPendidikanCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwPenghargaanCommand.php b/src/Commands/GetRwPenghargaanCommand.php index 5215781..255b987 100644 --- a/src/Commands/GetRwPenghargaanCommand.php +++ b/src/Commands/GetRwPenghargaanCommand.php @@ -27,6 +27,7 @@ class GetRwPenghargaanCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwPindahInstansiCommand.php b/src/Commands/GetRwPindahInstansiCommand.php index c02e90c..a3dc05b 100644 --- a/src/Commands/GetRwPindahInstansiCommand.php +++ b/src/Commands/GetRwPindahInstansiCommand.php @@ -27,6 +27,7 @@ class GetRwPindahInstansiCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwPwkCommand.php b/src/Commands/GetRwPwkCommand.php index e6f6370..787fcf8 100644 --- a/src/Commands/GetRwPwkCommand.php +++ b/src/Commands/GetRwPwkCommand.php @@ -27,6 +27,7 @@ class GetRwPwkCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwSkp22Command.php b/src/Commands/GetRwSkp22Command.php index 7404dc1..447e16c 100644 --- a/src/Commands/GetRwSkp22Command.php +++ b/src/Commands/GetRwSkp22Command.php @@ -27,6 +27,7 @@ class GetRwSkp22Command extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwSkpCommand.php b/src/Commands/GetRwSkpCommand.php index 56b7df7..6de71ea 100644 --- a/src/Commands/GetRwSkpCommand.php +++ b/src/Commands/GetRwSkpCommand.php @@ -27,6 +27,7 @@ class GetRwSkpCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetRwUnorCommand.php b/src/Commands/GetRwUnorCommand.php index 6d13af4..2f43c7f 100644 --- a/src/Commands/GetRwUnorCommand.php +++ b/src/Commands/GetRwUnorCommand.php @@ -27,6 +27,7 @@ class GetRwUnorCommand extends Command */ public function handle() { + $start = now(); $nipBaru = $this->argument('nipBaru'); $paths = [ 'nipBaru' => $nipBaru, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetSkp22IdCommand.php b/src/Commands/GetSkp22IdCommand.php index 2b76ebc..8a70f03 100644 --- a/src/Commands/GetSkp22IdCommand.php +++ b/src/Commands/GetSkp22IdCommand.php @@ -27,6 +27,7 @@ class GetSkp22IdCommand extends Command */ public function handle() { + $start = now(); $id = $this->argument('id'); $paths = [ 'idRiwayatSkp' => $id, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/GetSkpIdCommand.php b/src/Commands/GetSkpIdCommand.php index b2e4dcf..779c36c 100644 --- a/src/Commands/GetSkpIdCommand.php +++ b/src/Commands/GetSkpIdCommand.php @@ -27,6 +27,7 @@ class GetSkpIdCommand extends Command */ public function handle() { + $start = now(); $id = $this->argument('id'); $paths = [ 'idRiwayatSkp' => $id, @@ -37,6 +38,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostAngkaKreditSaveCommand.php b/src/Commands/PostAngkaKreditSaveCommand.php index 6c06946..2cfea52 100644 --- a/src/Commands/PostAngkaKreditSaveCommand.php +++ b/src/Commands/PostAngkaKreditSaveCommand.php @@ -27,13 +27,14 @@ class PostAngkaKreditSaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"bulanMulaiPenailan":"string","bulanSelesaiPenailan":"string","id":"string","isAngkaKreditPertama":"string","isIntegrasi":"string","isKonversi":"string","kreditBaruTotal":"string","kreditPenunjangBaru":"string","kreditUtamaBaru":"string","nomorSk":"string","path":[{"dok_id":"string","dok_nama":"string","dok_uri":"string","object":"string","slug":"string"}],"pnsId":"string","rwJabatanId":"string","tahunMulaiPenailan":"string","tahunSelesaiPenailan":"string","tanggalSk":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostCpnsSaveCommand.php b/src/Commands/PostCpnsSaveCommand.php index 4b7232e..4967f75 100644 --- a/src/Commands/PostCpnsSaveCommand.php +++ b/src/Commands/PostCpnsSaveCommand.php @@ -27,13 +27,14 @@ class PostCpnsSaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"id":"string","kartu_pegawai":"string","nama_jabatan_angkat_cpns":"string","nomor_dokter_pns":"string","nomor_sk_cpns":"string","nomor_sk_pns":"string","nomor_spmt":"string","nomor_sttpl":"string","path":[{"dok_id":"string","dok_nama":"string","dok_uri":"string","object":"string","slug":"string"}],"pertek_cpns_pns_l2th_nomor":"string","pertek_cpns_pns_l2th_tanggal":"string","pns_orang_id":"string","status_cpns_pns":"string","tanggal_dokter_pns":"string","tgl_sk_cpns":"string","tgl_sk_pns":"string","tgl_sttpl":"string","tmt_pns":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostDataUtamaUpdateCommand.php b/src/Commands/PostDataUtamaUpdateCommand.php index efa8f9d..297eaeb 100644 --- a/src/Commands/PostDataUtamaUpdateCommand.php +++ b/src/Commands/PostDataUtamaUpdateCommand.php @@ -27,13 +27,14 @@ class PostDataUtamaUpdateCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"agama_id":"string","alamat":"string","email":"string","email_gov":"string","kabupaten_id":"string","karis_karsu":"string","kelas_jabatan":"string","kpkn_id":"string","lokasi_kerja_id":"string","nomor_bpjs":"string","nomor_hp":"string","nomor_telpon":"string","npwp_nomor":"string","npwp_tanggal":"string","pns_orang_id":"string","tanggal_taspen":"string","tapera_nomor":"string","taspen_nomor":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostDiklatSaveCommand.php b/src/Commands/PostDiklatSaveCommand.php index 1793adc..4fb4d53 100644 --- a/src/Commands/PostDiklatSaveCommand.php +++ b/src/Commands/PostDiklatSaveCommand.php @@ -27,13 +27,14 @@ class PostDiklatSaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"bobot":0,"id":"string","institusiPenyelenggara":"string","jenisKompetensi":"string","jumlahJam":0,"latihanStrukturalId":"string","nomor":"string","path":[{"dok_id":"string","dok_nama":"string","dok_uri":"string","object":"string","slug":"string"}],"pnsOrangId":"string","tahun":0,"tanggal":"string","tanggalSelesai":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostHukdisSaveCommand.php b/src/Commands/PostHukdisSaveCommand.php index 60fecef..c2791a1 100644 --- a/src/Commands/PostHukdisSaveCommand.php +++ b/src/Commands/PostHukdisSaveCommand.php @@ -27,13 +27,14 @@ class PostHukdisSaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"akhirHukumanTanggal":"string","alasanHukumanDisiplinId":"string","golonganId":"string","golonganLama":"string","hukdisYangDiberhentikanId":"string","hukumanTanggal":"string","id":"string","jenisHukumanId":"string","jenisTingkatHukumanId":"string","kedudukanHukumId":"string","keterangan":"string","masaBulan":"string","masaTahun":"string","nomorPp":"string","path":[{"dok_id":"string","dok_nama":"string","dok_uri":"string","object":"string","slug":"string"}],"pnsOrangId":"string","skNomor":"string","skPembatalanNomor":"string","skPembatalanTanggal":"string","skTanggal":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostJabatanSaveCommand.php b/src/Commands/PostJabatanSaveCommand.php index 7cf6c3b..9490db7 100644 --- a/src/Commands/PostJabatanSaveCommand.php +++ b/src/Commands/PostJabatanSaveCommand.php @@ -27,13 +27,14 @@ class PostJabatanSaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"eselonId":"string","id":"string","instansiId":"string","jabatanFungsionalId":"string","jabatanFungsionalUmumId":"string","jenisJabatan":"string","nomorSk":"string","path":[{"dok_id":"string","dok_nama":"string","dok_uri":"string","object":"string","slug":"string"}],"pnsId":"string","satuanKerjaId":"string","tanggalSk":"string","tmtJabatan":"string","tmtPelantikan":"string","unorId":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostKursusSaveCommand.php b/src/Commands/PostKursusSaveCommand.php index 93e1c67..95e5626 100644 --- a/src/Commands/PostKursusSaveCommand.php +++ b/src/Commands/PostKursusSaveCommand.php @@ -27,13 +27,14 @@ class PostKursusSaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"id":"string","instansiId":"string","institusiPenyelenggara":"string","jenisDiklatId":"string","jenisKursus":"string","jenisKursusSertipikat":"string","jumlahJam":0,"lokasiId":"string","namaKursus":"string","nomorSertipikat":"string","path":[{"dok_id":"string","dok_nama":"string","dok_uri":"string","object":"string","slug":"string"}],"pnsOrangId":"string","tahunKursus":0,"tanggalKursus":"string","tanggalSelesaiKursus":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostPenghargaanSaveCommand.php b/src/Commands/PostPenghargaanSaveCommand.php index 5058409..e7959ec 100644 --- a/src/Commands/PostPenghargaanSaveCommand.php +++ b/src/Commands/PostPenghargaanSaveCommand.php @@ -27,13 +27,14 @@ class PostPenghargaanSaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"hargaId":"string","id":"string","path":[{"dok_id":"string","dok_nama":"string","dok_uri":"string","object":"string","slug":"string"}],"pnsOrangId":"string","skDate":"string","skNomor":"string","tahun":0}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostSkp2021SaveCommand.php b/src/Commands/PostSkp2021SaveCommand.php index 68bd2da..efd320d 100644 --- a/src/Commands/PostSkp2021SaveCommand.php +++ b/src/Commands/PostSkp2021SaveCommand.php @@ -27,13 +27,14 @@ class PostSkp2021SaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"atasanPejabatPenilai":"string","atasanPenilaiGolongan":"string","atasanPenilaiJabatan":"string","atasanPenilaiNama":"string","atasanPenilaiNipNrp":"string","atasanPenilaiTmtGolongan":"string","atasanPenilaiUnorNama":"string","disiplin":0,"id":"string","inisiatifKerja":0,"integritas":0,"jenisJabatan":"string","jenisPeraturanKinerjaKd":"string","jumlah":0,"kepemimpinan":0,"kerjasama":0,"komitmen":0,"konversiNilai":0,"nilaiIntegrasi":0,"nilaiPerilakuKerja":0,"nilaiPrestasiKerja":0,"nilaiSkp":0,"nilairatarata":0,"orientasiPelayanan":0,"pejabatPenilai":"string","penilaiGolongan":"string","penilaiJabatan":"string","penilaiNama":"string","penilaiNipNrp":"string","penilaiTmtGolongan":"string","penilaiUnorNama":"string","pnsDinilaiOrang":"string","statusAtasanPenilai":"string","statusPenilai":"string","tahun":0}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostSkp22SaveCommand.php b/src/Commands/PostSkp22SaveCommand.php index 063cb4f..c102313 100644 --- a/src/Commands/PostSkp22SaveCommand.php +++ b/src/Commands/PostSkp22SaveCommand.php @@ -27,13 +27,14 @@ class PostSkp22SaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"hasilKinerjaNilai":0,"id":"string","kuadranKinerjaNilai":0,"path":[{"dok_id":"string","dok_nama":"string","dok_uri":"string","object":"string","slug":"string"}],"penilaiGolongan":"string","penilaiJabatan":"string","penilaiNama":"string","penilaiNipNrp":"string","penilaiUnorNama":"string","perilakuKerjaNilai":0,"pnsDinilaiOrang":"string","statusPenilai":"string","tahun":0}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostSkpSaveCommand.php b/src/Commands/PostSkpSaveCommand.php index 2b5b2c6..d06539e 100644 --- a/src/Commands/PostSkpSaveCommand.php +++ b/src/Commands/PostSkpSaveCommand.php @@ -27,13 +27,14 @@ class PostSkpSaveCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"atasanPejabatPenilai":"string","atasanPenilaiGolongan":"string","atasanPenilaiJabatan":"string","atasanPenilaiNama":"string","atasanPenilaiNipNrp":"string","atasanPenilaiTmtGolongan":"string","atasanPenilaiUnorNama":"string","disiplin":0,"id":"string","integritas":0,"jenisJabatan":"string","jumlah":0,"kepemimpinan":0,"kerjasama":0,"komitmen":0,"nilaiPerilakuKerja":0,"nilaiPrestasiKerja":0,"nilaiSkp":0,"nilairatarata":0,"orientasiPelayanan":0,"pejabatPenilai":"string","penilaiGolongan":"string","penilaiJabatan":"string","penilaiNama":"string","penilaiNipNrp":"string","penilaiTmtGolongan":"string","penilaiUnorNama":"string","pnsDinilaiOrang":"string","pnsUserId":"string","statusAtasanPenilai":"string","statusPenilai":"string","tahun":0}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostUploadDokCommand.php b/src/Commands/PostUploadDokCommand.php index e69bbcf..2d05405 100644 --- a/src/Commands/PostUploadDokCommand.php +++ b/src/Commands/PostUploadDokCommand.php @@ -27,13 +27,14 @@ class PostUploadDokCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"file":"string","id_ref_dokumen":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostUploadDokRwCommand.php b/src/Commands/PostUploadDokRwCommand.php index f13f030..b351d5d 100644 --- a/src/Commands/PostUploadDokRwCommand.php +++ b/src/Commands/PostUploadDokRwCommand.php @@ -27,13 +27,14 @@ class PostUploadDokRwCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"file":"string","id_riwayat":"string","id_ref_dokumen":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } diff --git a/src/Commands/PostUploadDokSkKpCommand.php b/src/Commands/PostUploadDokSkKpCommand.php index b499556..0c5abea 100644 --- a/src/Commands/PostUploadDokSkKpCommand.php +++ b/src/Commands/PostUploadDokSkKpCommand.php @@ -27,13 +27,14 @@ class PostUploadDokSkKpCommand extends Command */ public function handle() { + $start = now(); $this->line(' BE CAREFUL! This action can change the data on SIASN BKN.'); $this->newLine(); $this->comment('{"id_usulan":"string","no_sk":"string","tgl_sk":"string","file":"string"}'); $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (! is_array($query)) { + if (!is_array($query)) { throw new InvalidJsonException; return self::FAILURE; @@ -44,6 +45,9 @@ public function handle() JSON_PRETTY_PRINT )); + $this->newLine(); + $this->comment("Processed in {$start->shortAbsoluteDiffForHumans(now(), 1)}"); + return self::SUCCESS; } } From 38a6ee1c8565f7c3bec972247e41287299ebef71 Mon Sep 17 00:00:00 2001 From: achmadhadikurnia Date: Thu, 19 Oct 2023 13:19:34 +0000 Subject: [PATCH 2/2] Fix styling --- src/Commands/GetDownloadDokCommand.php | 2 +- src/Commands/PostAngkaKreditSaveCommand.php | 2 +- src/Commands/PostCpnsSaveCommand.php | 2 +- src/Commands/PostDataUtamaUpdateCommand.php | 2 +- src/Commands/PostDiklatSaveCommand.php | 2 +- src/Commands/PostHukdisSaveCommand.php | 2 +- src/Commands/PostJabatanSaveCommand.php | 2 +- src/Commands/PostKursusSaveCommand.php | 2 +- src/Commands/PostPenghargaanSaveCommand.php | 2 +- src/Commands/PostSkp2021SaveCommand.php | 2 +- src/Commands/PostSkp22SaveCommand.php | 2 +- src/Commands/PostSkpSaveCommand.php | 2 +- src/Commands/PostUploadDokCommand.php | 2 +- src/Commands/PostUploadDokRwCommand.php | 2 +- src/Commands/PostUploadDokSkKpCommand.php | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Commands/GetDownloadDokCommand.php b/src/Commands/GetDownloadDokCommand.php index 9df928e..326f32c 100644 --- a/src/Commands/GetDownloadDokCommand.php +++ b/src/Commands/GetDownloadDokCommand.php @@ -32,7 +32,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostAngkaKreditSaveCommand.php b/src/Commands/PostAngkaKreditSaveCommand.php index 2cfea52..8ceee4a 100644 --- a/src/Commands/PostAngkaKreditSaveCommand.php +++ b/src/Commands/PostAngkaKreditSaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostCpnsSaveCommand.php b/src/Commands/PostCpnsSaveCommand.php index 4967f75..9d90f02 100644 --- a/src/Commands/PostCpnsSaveCommand.php +++ b/src/Commands/PostCpnsSaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostDataUtamaUpdateCommand.php b/src/Commands/PostDataUtamaUpdateCommand.php index 297eaeb..03971e8 100644 --- a/src/Commands/PostDataUtamaUpdateCommand.php +++ b/src/Commands/PostDataUtamaUpdateCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostDiklatSaveCommand.php b/src/Commands/PostDiklatSaveCommand.php index 4fb4d53..18037de 100644 --- a/src/Commands/PostDiklatSaveCommand.php +++ b/src/Commands/PostDiklatSaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostHukdisSaveCommand.php b/src/Commands/PostHukdisSaveCommand.php index c2791a1..1395012 100644 --- a/src/Commands/PostHukdisSaveCommand.php +++ b/src/Commands/PostHukdisSaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostJabatanSaveCommand.php b/src/Commands/PostJabatanSaveCommand.php index 9490db7..6746908 100644 --- a/src/Commands/PostJabatanSaveCommand.php +++ b/src/Commands/PostJabatanSaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostKursusSaveCommand.php b/src/Commands/PostKursusSaveCommand.php index 95e5626..12a182e 100644 --- a/src/Commands/PostKursusSaveCommand.php +++ b/src/Commands/PostKursusSaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostPenghargaanSaveCommand.php b/src/Commands/PostPenghargaanSaveCommand.php index e7959ec..050485d 100644 --- a/src/Commands/PostPenghargaanSaveCommand.php +++ b/src/Commands/PostPenghargaanSaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostSkp2021SaveCommand.php b/src/Commands/PostSkp2021SaveCommand.php index efd320d..5e0cbcc 100644 --- a/src/Commands/PostSkp2021SaveCommand.php +++ b/src/Commands/PostSkp2021SaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostSkp22SaveCommand.php b/src/Commands/PostSkp22SaveCommand.php index c102313..8a51e70 100644 --- a/src/Commands/PostSkp22SaveCommand.php +++ b/src/Commands/PostSkp22SaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostSkpSaveCommand.php b/src/Commands/PostSkpSaveCommand.php index d06539e..58302a5 100644 --- a/src/Commands/PostSkpSaveCommand.php +++ b/src/Commands/PostSkpSaveCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostUploadDokCommand.php b/src/Commands/PostUploadDokCommand.php index 2d05405..e73f9f5 100644 --- a/src/Commands/PostUploadDokCommand.php +++ b/src/Commands/PostUploadDokCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostUploadDokRwCommand.php b/src/Commands/PostUploadDokRwCommand.php index b351d5d..690f573 100644 --- a/src/Commands/PostUploadDokRwCommand.php +++ b/src/Commands/PostUploadDokRwCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE; diff --git a/src/Commands/PostUploadDokSkKpCommand.php b/src/Commands/PostUploadDokSkKpCommand.php index 0c5abea..ae6ef0c 100644 --- a/src/Commands/PostUploadDokSkKpCommand.php +++ b/src/Commands/PostUploadDokSkKpCommand.php @@ -34,7 +34,7 @@ public function handle() $query = json_decode($this->ask('Copy the json above, fill it and paste it here'), true); - if (!is_array($query)) { + if (! is_array($query)) { throw new InvalidJsonException; return self::FAILURE;