@@ -10,7 +10,7 @@  | 
                                                    ||
| 10 | 10 |  { | 
                                                        
| 11 | 11 | use HasFactory;  | 
                                                        
| 12 | 12 | |
| 13 | - protected $guarded = [];  | 
                                                        |
| 13 | + protected $guarded = [ ];  | 
                                                        |
| 14 | 14 | |
| 15 | 15 | protected static function newFactory()  | 
                                                        
| 16 | 16 |      { | 
                                                        
@@ -13,7 +13,7 @@  | 
                                                    ||
| 13 | 13 | */  | 
                                                        
| 14 | 14 | public function up()  | 
                                                        
| 15 | 15 |      { | 
                                                        
| 16 | -        Schema::create('resource_logs', function (Blueprint $table) { | 
                                                        |
| 16 | +        Schema::create('resource_logs', function(Blueprint $table) { | 
                                                        |
| 17 | 17 | $table->id();  | 
                                                        
| 18 | 18 |              $table->string('resource'); | 
                                                        
| 19 | 19 |              $table->string('log'); | 
                                                        
@@ -3,9 +3,9 @@  | 
                                                    ||
| 3 | 3 | use Illuminate\Support\Facades\Route;  | 
                                                        
| 4 | 4 | use MohsenAbrishami\Stethoscope\Http\Controllers\MonitoringPanelController;  | 
                                                        
| 5 | 5 | |
| 6 | -Route::middleware(['check.access.to.monitoring.panel'])->group(function () { | 
                                                        |
| 6 | +Route::middleware([ 'check.access.to.monitoring.panel' ])->group(function() { | 
                                                        |
| 7 | 7 | Route::get(  | 
                                                        
| 8 | 8 |          config('stethoscope.monitoring_panel.path', 'monitoring-panel'), | 
                                                        
| 9 | - [MonitoringPanelController::class, 'index']  | 
                                                        |
| 9 | + [ MonitoringPanelController::class, 'index' ]  | 
                                                        |
| 10 | 10 |      )->name('monitoring-panel'); | 
                                                        
| 11 | 11 | });  | 
                                                        
@@ -3,7 +3,7 @@  | 
                                                    ||
| 3 | 3 | use Illuminate\Support\Facades\Route;  | 
                                                        
| 4 | 4 | use MohsenAbrishami\Stethoscope\Http\Controllers\MonitorController;  | 
                                                        
| 5 | 5 | |
| 6 | -Route::middleware(['check.access.to.monitoring.panel'])->group(function () { | 
                                                        |
| 7 | -    Route::get('monitor/current', [MonitorController::class, 'current']); | 
                                                        |
| 8 | -    Route::get('monitor/history/{from}/{to}', [MonitorController::class, 'history']); | 
                                                        |
| 6 | +Route::middleware([ 'check.access.to.monitoring.panel' ])->group(function() { | 
                                                        |
| 7 | +    Route::get('monitor/current', [ MonitorController::class, 'current' ]); | 
                                                        |
| 8 | +    Route::get('monitor/history/{from}/{to}', [ MonitorController::class, 'history' ]); | 
                                                        |
| 9 | 9 | });  | 
                                                        
@@ -8,7 +8,7 @@  | 
                                                    ||
| 8 | 8 |  { | 
                                                        
| 9 | 9 | use NotifiableTrait;  | 
                                                        
| 10 | 10 | |
| 11 | - public function routeNotificationForMail(): string|array  | 
                                                        |
| 11 | + public function routeNotificationForMail(): string | array  | 
                                                        |
| 12 | 12 |      { | 
                                                        
| 13 | 13 |          return config('stethoscope.notifications.mail.to'); | 
                                                        
| 14 | 14 | }  | 
                                                        
@@ -27,7 +27,7 @@  | 
                                                    ||
| 27 | 27 | */  | 
                                                        
| 28 | 28 | public function via($notifiable)  | 
                                                        
| 29 | 29 |      { | 
                                                        
| 30 | -        $notificationChannels = config('stethoscope.notifications.notifications.'.static::class); | 
                                                        |
| 30 | +        $notificationChannels = config('stethoscope.notifications.notifications.' . static::class); | 
                                                        |
| 31 | 31 | |
| 32 | 32 | return array_filter($notificationChannels);  | 
                                                        
| 33 | 33 | }  | 
                                                        
@@ -8,7 +8,7 @@  | 
                                                    ||
| 8 | 8 |  { | 
                                                        
| 9 | 9 | public function handle($request, Closure $next)  | 
                                                        
| 10 | 10 |      { | 
                                                        
| 11 | -        if (! config('stethoscope.monitoring_panel.status')) { | 
                                                        |
| 11 | +        if (!config('stethoscope.monitoring_panel.status')) { | 
                                                        |
| 12 | 12 | abort(404);  | 
                                                        
| 13 | 13 | }  | 
                                                        
| 14 | 14 | |
@@ -19,12 +19,12 @@ discard block  | 
                                                    ||
| 19 | 19 | */  | 
                                                        
| 20 | 20 | public function register()  | 
                                                        
| 21 | 21 |      { | 
                                                        
| 22 | -        $this->app->singleton('record', function ($app) { | 
                                                        |
| 22 | +        $this->app->singleton('record', function($app) { | 
                                                        |
| 23 | 23 | return new LogManager($app);  | 
                                                        
| 24 | 24 | });  | 
                                                        
| 25 | 25 | |
| 26 | 26 | $this->mergeConfigFrom(  | 
                                                        
| 27 | - __DIR__.'/../config/stethoscope.php',  | 
                                                        |
| 27 | + __DIR__ . '/../config/stethoscope.php',  | 
                                                        |
| 28 | 28 | 'stethoscope'  | 
                                                        
| 29 | 29 | );  | 
                                                        
| 30 | 30 | |
@@ -41,12 +41,12 @@ discard block  | 
                                                    ||
| 41 | 41 |          if ($this->app->runningInConsole()) { | 
                                                        
| 42 | 42 | // publishing the config  | 
                                                        
| 43 | 43 | $this->publishes([  | 
                                                        
| 44 | -                __DIR__.'/../config/stethoscope.php' => config_path('stethoscope.php'), | 
                                                        |
| 44 | +                __DIR__ . '/../config/stethoscope.php' => config_path('stethoscope.php'), | 
                                                        |
| 45 | 45 | ], 'stethoscope-publish-config');  | 
                                                        
| 46 | 46 | |
| 47 | 47 | // publishing the build files  | 
                                                        
| 48 | 48 | $this->publishes([  | 
                                                        
| 49 | -                __DIR__.'/../public/build' => public_path('vendor/stethoscope'), | 
                                                        |
| 49 | +                __DIR__ . '/../public/build' => public_path('vendor/stethoscope'), | 
                                                        |
| 50 | 50 | ], 'stethoscope-publish-view');  | 
                                                        
| 51 | 51 | |
| 52 | 52 | $this->commands([  | 
                                                        
@@ -56,13 +56,13 @@ discard block  | 
                                                    ||
| 56 | 56 | ]);  | 
                                                        
| 57 | 57 | }  | 
                                                        
| 58 | 58 | |
| 59 | - $this->loadMigrationsFrom(__DIR__.'/../database/migrations');  | 
                                                        |
| 59 | + $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');  | 
                                                        |
| 60 | 60 | |
| 61 | - $this->loadRoutesFrom(__DIR__.'/../routes/api.php');  | 
                                                        |
| 62 | - $this->loadRoutesFrom(__DIR__.'/../routes/web.php');  | 
                                                        |
| 61 | + $this->loadRoutesFrom(__DIR__ . '/../routes/api.php');  | 
                                                        |
| 62 | + $this->loadRoutesFrom(__DIR__ . '/../routes/web.php');  | 
                                                        |
| 63 | 63 | |
| 64 | - $this->loadViewsFrom(__DIR__.'/../resources/views', 'mohsenabrishami');  | 
                                                        |
| 64 | + $this->loadViewsFrom(__DIR__ . '/../resources/views', 'mohsenabrishami');  | 
                                                        |
| 65 | 65 | |
| 66 | -        $this->app['router']->aliasMiddleware('check.access.to.monitoring.panel', CheckAccessToMonitoringPanel::class); | 
                                                        |
| 66 | +        $this->app[ 'router' ]->aliasMiddleware('check.access.to.monitoring.panel', CheckAccessToMonitoringPanel::class); | 
                                                        |
| 67 | 67 | }  | 
                                                        
| 68 | 68 | }  | 
                                                        
@@ -66,6 +66,6 @@  | 
                                                    ||
| 66 | 66 | */  | 
                                                        
| 67 | 67 | public function webServerMessage($webServerStatus)  | 
                                                        
| 68 | 68 |      { | 
                                                        
| 69 | - return 'web server status ===> '.$webServerStatus;  | 
                                                        |
| 69 | + return 'web server status ===> ' . $webServerStatus;  | 
                                                        |
| 70 | 70 | }  | 
                                                        
| 71 | 71 | }  |