Passed
Push — master ( 2c5ae0...bb9420 )
by ANTHONIUS
11:03 queued 06:26
created
src/Packages/Core/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,13 +61,13 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Packages/Core/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Packages/Core/Resources/routes/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
src/Packages/Core/Resources/routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
config/preload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.