@@ -61,13 +61,13 @@ |
||
61 | 61 | private function loadRoutes(): void |
62 | 62 | { |
63 | 63 | foreach (static::$webRoutes as $filePath => $namespace) { |
64 | - Route::group(['prefix' => '/', 'namespace' => $namespace], function (Router $router) use ($filePath) { |
|
64 | + Route::group(['prefix' => '/', 'namespace' => $namespace], function(Router $router) use ($filePath) { |
|
65 | 65 | require $filePath; |
66 | 66 | }); |
67 | 67 | } |
68 | 68 | |
69 | 69 | foreach (static::$apiRoutes as $filePath => $namespace) { |
70 | - Route::group(['prefix' => 'api', 'namespace' => $namespace], function (Router $router) use ($filePath) { |
|
70 | + Route::group(['prefix' => 'api', 'namespace' => $namespace], function(Router $router) use ($filePath) { |
|
71 | 71 | require $filePath; |
72 | 72 | }); |
73 | 73 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * @param string|null $namespace |
37 | 37 | * @psalm-suppress DuplicateFunction |
38 | 38 | */ |
39 | - function route_register_api(string $filePath, ?string $namespace=null): void |
|
39 | + function route_register_api(string $filePath, ?string $namespace = null): void |
|
40 | 40 | { |
41 | 41 | RouteServiceProvider::addApiRoute($filePath, $namespace); |
42 | 42 | } |
@@ -14,6 +14,6 @@ |
||
14 | 14 | use Illuminate\Http\JsonResponse; |
15 | 15 | use Illuminate\Support\Facades\Route; |
16 | 16 | |
17 | -Route::get('/', function () { |
|
17 | +Route::get('/', function() { |
|
18 | 18 | return new JsonResponse(['message' => 'hello world']); |
19 | 19 | }); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | use Illuminate\Support\Facades\Route; |
15 | 15 | |
16 | -Route::get('/', function () { |
|
16 | +Route::get('/', function() { |
|
17 | 17 | return view('core::welcome'); |
18 | 18 | //return "sembarang aja"; |
19 | 19 | }); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | declare(strict_types=1); |
13 | 13 | |
14 | -if (is_dir($dir =__DIR__.'/../storage/logs')) { |
|
14 | +if (is_dir($dir = __DIR__.'/../storage/logs')) { |
|
15 | 15 | try { |
16 | 16 | include __DIR__.'/../public/index.php'; |
17 | 17 | } catch (\Exception $e) { |