Passed
Pull Request — main (#23)
by PRATIK
07:08 queued 03:10
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/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.
src/Repositories/PageRepository.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 indexPage()
14 14
     {
15 15
         $pages = config('adminetic.caching', true)
16
-            ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function () {
16
+            ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function() {
17 17
                 return Page::orderBy('position')->get();
18 18
             }))
19 19
             : Page::orderBy('position')->get();
Please login to merge, or discard this patch.