Skip to content

Commit

Permalink
Rilis 2407 (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
habibie11 authored Jul 1, 2024
2 parents 4f5d9de + 5256b33 commit f6f76cc
Show file tree
Hide file tree
Showing 354 changed files with 4,664 additions and 5,158 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/phpcs.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Pint
on:
push:
branches:
- master
jobs:
phplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: "laravel-pint"
uses: aglipanci/[email protected]
with:
preset: laravel
2 changes: 1 addition & 1 deletion app/Console/Commands/InstallDev.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function handle()

$this->line('Kunci akses penginstal web');

if (!sudahInstal()) {
if (! sudahInstal()) {
file_put_contents(
storage_path('installed'),
sprintf('%s berhasil DIPASANG pada %s', config('app.name'), now())
Expand Down
2 changes: 0 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@
namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;

use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
Expand Down
6 changes: 4 additions & 2 deletions app/Enums/JenisJabatan.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
*/
final class JenisJabatan extends Enum
{
public const Camat = 1;
public const Sekretaris = 2;
public const Camat = 1;

public const Sekretaris = 2;

public const JabatanLainnya = 3;
}
15 changes: 10 additions & 5 deletions app/Enums/LogVerifikasiSurat.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@
*/
final class LogVerifikasiSurat extends Enum
{
public const Operator = 1;
public const Operator = 1;

public const Sekretaris = 2;
public const Camat = 3;
public const ProsesTTE = 4;
public const SudahTTE = 5;
public const Ditolak = 6;

public const Camat = 3;

public const ProsesTTE = 4;

public const SudahTTE = 5;

public const Ditolak = 6;
}
3 changes: 2 additions & 1 deletion app/Enums/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
final class Status extends Enum
{
public const TidakAktif = 0;
public const Aktif = 1;

public const Aktif = 1;
}
6 changes: 4 additions & 2 deletions app/Enums/StatusSurat.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
final class StatusSurat extends Enum
{
public const Permohonan = 1;
public const Arsip = 2;
public const Ditolak = 3;

public const Arsip = 2;

public const Ditolak = 3;
}
6 changes: 4 additions & 2 deletions app/Enums/StatusVerifikasiSurat.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
*/
final class StatusVerifikasiSurat extends Enum
{
public const TidakAktif = 1;
public const TidakAktif = 1;

public const MenungguVerifikasi = 2;
public const TelahDiverifikasi = 3;

public const TelahDiverifikasi = 3;
}
48 changes: 24 additions & 24 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,30 +75,30 @@ class Handler extends ExceptionHandler
*/
public function register()
{
$this->reportable(function (Throwable $e) {
\Sentry\configureScope(function (\Sentry\State\Scope $scope): void {
$profil = Profil::first();
$scope->setUser(
[
'nama_provinsi' => $profil->nama_provinsi,
'nama_kabupaten' => $profil->nama_kabupaten,
'nama_kecamatan' => $profil->nama_kecamatan
]
);
if (Auth::check()) {
$scope->setUser([
'email' => auth()->user()->email,
'name' => auth()->user()->name,
'role' => Auth::user()->getRoleNames()
]);
}
$scope->setTags([
'kecamatan' => $profil->nama_kecamatan,
'versi' => config('app.version')
]);
});
// $this->reportable(function (Throwable $e) {
// \Sentry\configureScope(function (\Sentry\State\Scope $scope): void {
// $profil = Profil::first();
// $scope->setUser(
// [
// 'nama_provinsi' => $profil->nama_provinsi,
// 'nama_kabupaten' => $profil->nama_kabupaten,
// 'nama_kecamatan' => $profil->nama_kecamatan,
// ]
// );
// if (Auth::check()) {
// $scope->setUser([
// 'email' => auth()->user()->email,
// 'name' => auth()->user()->name,
// 'role' => Auth::user()->getRoleNames(),
// ]);
// }
// $scope->setTags([
// 'kecamatan' => $profil->nama_kecamatan,
// 'versi' => config('app.version'),
// ]);
// });

Integration::captureUnhandledException($e);
});
// Integration::captureUnhandledException($e);
// });
}
}
Loading

0 comments on commit f6f76cc

Please sign in to comment.