Passed
Push — main ( 0230d8...7f267a )
by PRATIK
03:52
created
src/Http/Livewire/Admin/Software/SoftwareTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                     '1' => 'Active',
36 36
                     '0' => 'Inactive',
37 37
                 ])
38
-                ->filter(function (Builder $builder, string $value) {
38
+                ->filter(function(Builder $builder, string $value) {
39 39
                     if ($value === '1') {
40 40
                         $builder->where('active', true);
41 41
                     } elseif ($value === '0') {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                     '1' => 'Featured',
49 49
                     '0' => 'Not Featured',
50 50
                 ])
51
-                ->filter(function (Builder $builder, string $value) {
51
+                ->filter(function(Builder $builder, string $value) {
52 52
                     if ($value === '1') {
53 53
                         $builder->where('featured', true);
54 54
                     } elseif ($value === '0') {
Please login to merge, or discard this patch.
src/Http/Requests/TeamRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     protected function prepareForValidation(): void
22 22
     {
23 23
         $this->merge([
24
-            'slug' => ! is_null($this->name) ? Str::slug($this->name) : null,
24
+            'slug' => !is_null($this->name) ? Str::slug($this->name) : null,
25 25
         ]);
26 26
     }
27 27
 
Please login to merge, or discard this patch.
src/Http/Requests/GalleryRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     protected function prepareForValidation(): void
22 22
     {
23 23
         $this->merge([
24
-            'slug' => ! is_null($this->name) ? Str::slug($this->name) : null,
24
+            'slug' => !is_null($this->name) ? Str::slug($this->name) : null,
25 25
         ]);
26 26
     }
27 27
 
Please login to merge, or discard this patch.
src/Http/Requests/ServiceRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     protected function prepareForValidation(): void
22 22
     {
23 23
         $this->merge([
24
-            'slug' => ! is_null($this->name) ? Str::slug($this->name) : null,
24
+            'slug' => !is_null($this->name) ? Str::slug($this->name) : null,
25 25
             'meta_name' => $this->service->meta_name ?? $this->meta_name ?? $this->name ?? null,
26 26
             'meta_description' => $this->service->meta_description ?? $this->meta_description ?? $this->excerpt ?? null,
27 27
         ]);
Please login to merge, or discard this patch.
src/Http/Livewire/Admin/Slider/SliderTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
                     '1' => 'Active',
36 36
                     '0' => 'Inactive',
37 37
                 ])
38
-                ->filter(function (Builder $builder, string $value) {
38
+                ->filter(function(Builder $builder, string $value) {
39 39
                     if ($value === '1') {
40 40
                         $builder->where('active', true);
41 41
                     } elseif ($value === '0') {
Please login to merge, or discard this patch.
src/Models/Admin/Gallery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
     {
20 20
         parent::boot();
21 21
 
22
-        static::saving(function () {
22
+        static::saving(function() {
23 23
             self::cacheKey();
24 24
         });
25 25
 
26
-        static::deleting(function () {
26
+        static::deleting(function() {
27 27
             self::cacheKey();
28 28
         });
29 29
     }
@@ -50,6 +50,6 @@  discard block
 block discarded – undo
50 50
     // Accessors
51 51
     public function getImagesAttribute()
52 52
     {
53
-        return ! is_null($this->getMedia('images')) ? $this->getMedia('images') : null;
53
+        return !is_null($this->getMedia('images')) ? $this->getMedia('images') : null;
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
src/Repositories/SliderRepository.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 indexSlider()
15 15
     {
16 16
         $sliders = config('adminetic.caching', true)
17
-            ? (Cache::has('sliders') ? Cache::get('sliders') : Cache::rememberForever('sliders', function () {
17
+            ? (Cache::has('sliders') ? Cache::get('sliders') : Cache::rememberForever('sliders', function() {
18 18
                 return Slider::latest()->get();
19 19
             }))
20 20
             : Slider::latest()->get();
Please login to merge, or discard this patch.
database/migrations/2023_07_17_095004_create_abouts_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function up(): void
13 13
     {
14
-        Schema::create('abouts', function (Blueprint $table) {
14
+        Schema::create('abouts', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->string('title');
17 17
             $table->string('slug');
Please login to merge, or discard this patch.
database/migrations/2023_07_12_091323_create_sliders_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function up(): void
13 13
     {
14
-        Schema::create('sliders', function (Blueprint $table) {
14
+        Schema::create('sliders', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->string('title')->nullable();
17 17
             $table->string('text')->nullable();
Please login to merge, or discard this patch.