Passed
Pull Request — main (#23)
by PRATIK
07:08 queued 03:10
created
src/Repositories/ImageRepository.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 indexImage()
14 14
     {
15 15
         $images = config('adminetic.caching', true)
16
-            ? (Cache::has('images') ? Cache::get('images') : Cache::rememberForever('images', function () {
16
+            ? (Cache::has('images') ? Cache::get('images') : Cache::rememberForever('images', function() {
17 17
                 return Image::latest()->get();
18 18
             }))
19 19
             : Image::latest()->get();
Please login to merge, or discard this patch.
src/Repositories/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/Repositories/TeamRepository.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 indexTeam()
14 14
     {
15 15
         $teams = config('adminetic.caching', true)
16
-            ? (Cache::has('teams') ? Cache::get('teams') : Cache::rememberForever('teams', function () {
16
+            ? (Cache::has('teams') ? Cache::get('teams') : Cache::rememberForever('teams', function() {
17 17
                 return Team::orderBy('position')->get();
18 18
             }))
19 19
             : Team::orderBy('position')->get();
Please login to merge, or discard this patch.
src/Repositories/ClientRepository.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 indexClient()
15 15
     {
16 16
         $clients = config('adminetic.caching', true)
17
-            ? (Cache::has('clients') ? Cache::get('clients') : Cache::rememberForever('clients', function () {
17
+            ? (Cache::has('clients') ? Cache::get('clients') : Cache::rememberForever('clients', function() {
18 18
                 return Client::latest()->get();
19 19
             }))
20 20
             : Client::latest()->get();
Please login to merge, or discard this patch.
src/Repositories/EventRepository.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 indexEvent()
15 15
     {
16 16
         $events = config('adminetic.caching', true)
17
-            ? (Cache::has('events') ? Cache::get('events') : Cache::rememberForever('events', function () {
17
+            ? (Cache::has('events') ? Cache::get('events') : Cache::rememberForever('events', function() {
18 18
                 return Event::latest()->get();
19 19
             }))
20 20
             : Event::latest()->get();
Please login to merge, or discard this patch.
src/Models/Admin/Block.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 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
 
28
-        Block::creating(function ($model) {
28
+        Block::creating(function($model) {
29 29
             $model->position = Block::max('position') + 1;
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
src/Repositories/BlockRepository.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 indexBlock()
15 15
     {
16 16
         $blocks = config('adminetic.caching', true)
17
-            ? (Cache::has('blocks') ? Cache::get('blocks') : Cache::rememberForever('blocks', function () {
17
+            ? (Cache::has('blocks') ? Cache::get('blocks') : Cache::rememberForever('blocks', function() {
18 18
                 return Block::orderBy('position')->get();
19 19
             }))
20 20
             : Block::orderBy('position')->get();
Please login to merge, or discard this patch.
src/Repositories/PackageRepository.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 indexPackage()
14 14
     {
15 15
         $packages = config('adminetic.caching', true)
16
-            ? (Cache::has('packages') ? Cache::get('packages') : Cache::rememberForever('packages', function () {
16
+            ? (Cache::has('packages') ? Cache::get('packages') : Cache::rememberForever('packages', function() {
17 17
                 return Package::orderBy('position')->get();
18 18
             }))
19 19
             : Package::orderBy('position')->get();
Please login to merge, or discard this patch.
src/Repositories/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::orderBy('position')->get();
19 19
             }))
20 20
             : Video::orderBy('position')->get();
Please login to merge, or discard this patch.