Passed
Push — main ( 0b9d15...079b27 )
by mohsen
03:01
created
src/Models/ResourceLog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     use HasFactory;
12 12
 
13
-    protected $guarded = [];
13
+    protected $guarded = [ ];
14 14
 
15 15
     protected static function newFactory()
16 16
     {
Please login to merge, or discard this patch.
database/migrations/2022_12_03_070906_create_resource_logs_table.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
     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');
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
src/Notifications/Notifiable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Notifications/LogReportNotification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Http/Middleware/CheckAccessToMonitoringPanel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/StethoscopeServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Traits/MessageCreatorTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,6 +66,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.