Passed
Pull Request — main (#35)
by PRATIK
16:09 queued 12:17
created
src/Models/Admin/Category.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
     {
21 21
         parent::boot();
22 22
 
23
-        static::saving(function () {
23
+        static::saving(function() {
24 24
             self::cacheKey();
25 25
         });
26 26
 
27
-        static::deleting(function () {
27
+        static::deleting(function() {
28 28
             self::cacheKey();
29 29
         });
30 30
     }
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
     // Accessors
103 103
     public function getImageAttribute()
104 104
     {
105
-        return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : null;
105
+        return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : null;
106 106
     }
107 107
 
108 108
     public function getIconImageAttribute()
109 109
     {
110
-        return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : null;
110
+        return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : null;
111 111
     }
112 112
 }
Please login to merge, or discard this patch.
src/Models/Admin/History.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
     {
21 21
         parent::boot();
22 22
 
23
-        static::saving(function () {
23
+        static::saving(function() {
24 24
             self::cacheKey();
25 25
         });
26 26
 
27
-        static::deleting(function () {
27
+        static::deleting(function() {
28 28
             self::cacheKey();
29 29
         });
30 30
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     // Accessors
47 47
     public function getImageAttribute()
48 48
     {
49
-        return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
49
+        return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
50 50
     }
51 51
 
52 52
     public function scopeActive($qry)
Please login to merge, or discard this patch.
database/migrations/2023_05_09_085614_create_media_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up(): void
10 10
     {
11
-        Schema::create(config('website.table_prefix', 'website').'_'.'media', function (Blueprint $table) {
11
+        Schema::create(config('website.table_prefix', 'website').'_'.'media', function(Blueprint $table) {
12 12
             $table->id();
13 13
 
14 14
             $table->morphs('model');
Please login to merge, or discard this patch.
database/migrations/2023_05_25_103403_create_inquiries_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(config('website.table_prefix', 'website').'_'.'inquiries', function (Blueprint $table) {
14
+        Schema::create(config('website.table_prefix', 'website').'_'.'inquiries', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->string('name');
17 17
             $table->string('phone');
Please login to merge, or discard this patch.
database/migrations/2023_05_10_115320_create_projects_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(config('website.table_prefix', 'website').'_'.'projects', function (Blueprint $table) {
14
+        Schema::create(config('website.table_prefix', 'website').'_'.'projects', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->string('slug');
17 17
             $table->string('name');
Please login to merge, or discard this patch.
database/migrations/2023_05_11_104920_create_attributes_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(config('website.table_prefix', 'website').'_'.'attributes', function (Blueprint $table) {
14
+        Schema::create(config('website.table_prefix', 'website').'_'.'attributes', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->string('code')->unique();
17 17
             $table->string('name');
Please login to merge, or discard this patch.
database/migrations/2023_05_09_094044_create_features_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(config('website.table_prefix', 'website').'_'.'features', function (Blueprint $table) {
14
+        Schema::create(config('website.table_prefix', 'website').'_'.'features', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->string('slug');
17 17
             $table->string('name');
Please login to merge, or discard this patch.
database/migrations/2023_05_10_052830_create_clients_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(config('website.table_prefix', 'website').'_'.'clients', function (Blueprint $table) {
14
+        Schema::create(config('website.table_prefix', 'website').'_'.'clients', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->string('name');
17 17
             $table->string('slug');
Please login to merge, or discard this patch.
database/migrations/2023_05_09_092656_create_facilities_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(config('website.table_prefix', 'website').'_'.'facilities', function (Blueprint $table) {
14
+        Schema::create(config('website.table_prefix', 'website').'_'.'facilities', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->string('slug');
17 17
             $table->string('name');
Please login to merge, or discard this patch.