Passed
Branch main (5c52b6)
by PRATIK
10:54
created
Category
src/Models/Admin/Project.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         parent::boot();
20 20
 
21
-        static::saving(function () {
21
+        static::saving(function() {
22 22
             self::cacheKey();
23 23
         });
24 24
 
25
-        static::deleting(function () {
25
+        static::deleting(function() {
26 26
             self::cacheKey();
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Models/Admin/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
     {
18 18
         parent::boot();
19 19
 
20
-        static::saving(function () {
20
+        static::saving(function() {
21 21
             self::cacheKey();
22 22
         });
23 23
 
24
-        static::deleting(function () {
24
+        static::deleting(function() {
25 25
             self::cacheKey();
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/Models/Admin/Image.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@
 block discarded – undo
18 18
     {
19 19
         parent::boot();
20 20
 
21
-        static::saving(function () {
21
+        static::saving(function() {
22 22
             self::cacheKey();
23 23
         });
24 24
 
25
-        static::deleting(function () {
25
+        static::deleting(function() {
26 26
             self::cacheKey();
27 27
         });
28 28
 
29
-        Image::creating(function ($model) {
29
+        Image::creating(function($model) {
30 30
             $model->position = Image::max('position') + 1;
31 31
         });
32 32
     }
Please login to merge, or discard this patch.
src/Models/Admin/Gallery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         parent::boot();
20 20
 
21
-        static::saving(function () {
21
+        static::saving(function() {
22 22
             self::cacheKey();
23 23
         });
24 24
 
25
-        static::deleting(function () {
25
+        static::deleting(function() {
26 26
             self::cacheKey();
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if (! $request->expectsJson()) {
17
+        if (!$request->expectsJson()) {
18 18
             return route('login');
19 19
         }
20 20
     }
Please login to merge, or discard this patch.
src/Provider/WebsiteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
      */
164 164
     protected function registerRoutes()
165 165
     {
166
-        Route::group($this->routeConfiguration(), function () {
166
+        Route::group($this->routeConfiguration(), function() {
167 167
             $this->loadRoutesFrom(__DIR__.'/../../routes/web.php');
168 168
         });
169 169
     }
Please login to merge, or discard this patch.
src/Repository/ProjectRepository.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
     public function indexProject()
14 14
     {
15 15
         $projects = config('adminetic.caching', true)
16
-            ? (Cache::has('projects') ? Cache::get('projects') : Cache::rememberForever('projects', function () {
16
+            ? (Cache::has('projects') ? Cache::get('projects') : Cache::rememberForever('projects', function() {
17 17
                 return Project::latest()->get();
18 18
             }))
19 19
             : Project::latest()->get();
Please login to merge, or discard this patch.
src/Repository/FacilityRepository.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
     public function indexFacility()
14 14
     {
15 15
         $facilities = config('adminetic.caching', true)
16
-            ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function () {
16
+            ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function() {
17 17
                 return Facility::orderBy('position')->get();
18 18
             }))
19 19
             : Facility::orderBy('position')->get();
Please login to merge, or discard this patch.
src/Repository/VideoRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function indexVideo()
15 15
     {
16 16
         $videos = config('adminetic.caching', true)
17
-            ? (Cache::has('videos') ? Cache::get('videos') : Cache::rememberForever('videos', function () {
17
+            ? (Cache::has('videos') ? Cache::get('videos') : Cache::rememberForever('videos', function() {
18 18
                 return Video::latest()->get();
19 19
             }))
20 20
             : Video::latest()->get();
Please login to merge, or discard this patch.