Passed
Push — main ( 21b81c...b80092 )
by PRATIK
14:07
created
src/Http/Livewire/Admin/Post/PostsTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
     {
196 196
         $search = $this->search ?? null;
197 197
         if ($search != '') {
198
-            return Post::where(function ($query) use ($search) {
198
+            return Post::where(function($query) use ($search) {
199 199
                 $query->where('name', 'LIKE', '%'.$search.'%')
200 200
                     ->orWhere('excerpt', 'LIKE', '%'.$search.'%')
201 201
                     ->orWhere('seo_name', 'LIKE', '%'.$search.'%')
Please login to merge, or discard this patch.
src/Http/Livewire/Admin/Post/PostFeatured.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 featuredChanged(Post $post)
15 15
     {
16 16
         $post->update([
17
-            'featured' => ! $post->featured,
17
+            'featured' => !$post->featured,
18 18
         ]);
19 19
 
20 20
         $this->post = $post;
Please login to merge, or discard this patch.
src/Repositories/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/Repositories/FacilityRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function indexFacility()
15 15
     {
16 16
         $facilities = config('adminetic.caching', true)
17
-            ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function () {
17
+            ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function() {
18 18
                 return Facility::orderBy('position')->get();
19 19
             }))
20 20
             : Facility::orderBy('position')->get();
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                 'icon_image' => request()->icon_image->store('website/facility/image', 'public'),
70 70
             ]);
71 71
             $image = Image::make(request()->file('icon_image')->getRealPath());
72
-            $image->save(public_path('storage/' . $facility->icon_image));
72
+            $image->save(public_path('storage/'.$facility->icon_image));
73 73
         }
74 74
 
75 75
         if (request()->image) {
Please login to merge, or discard this patch.
src/Repositories/CounterRepository.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 indexCounter()
14 14
     {
15 15
         $counters = config('adminetic.caching', true)
16
-            ? (Cache::has('counters') ? Cache::get('counters') : Cache::rememberForever('counters', function () {
16
+            ? (Cache::has('counters') ? Cache::get('counters') : Cache::rememberForever('counters', function() {
17 17
                 return Counter::latest()->get();
18 18
             }))
19 19
             : Counter::latest()->get();
Please login to merge, or discard this patch.
src/Repositories/FaqRepository.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 indexFaq()
14 14
     {
15 15
         $faqs = config('adminetic.caching', true)
16
-            ? (Cache::has('faqs') ? Cache::get('faqs') : Cache::rememberForever('faqs', function () {
16
+            ? (Cache::has('faqs') ? Cache::get('faqs') : Cache::rememberForever('faqs', function() {
17 17
                 return Faq::latest()->get();
18 18
             }))
19 19
             : Faq::latest()->get();
Please login to merge, or discard this patch.
src/Models/Admin/Event.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.
database/migrations/2021_10_09_144311_create_events_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('events', function (Blueprint $table) {
16
+        Schema::create('events', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->string('code')->unique();
19 19
             $table->string('name')->unique();
Please login to merge, or discard this patch.
src/Repositories/GalleryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function indexGallery()
16 16
     {
17 17
         $galleries = config('adminetic.caching', true)
18
-            ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function () {
18
+            ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function() {
19 19
                 return Gallery::latest()->get();
20 20
             }))
21 21
             : Gallery::latest()->get();
Please login to merge, or discard this patch.