Passed
Pull Request — main (#36)
by
unknown
04:47
created
database/migrations/2023_05_15_081759_create_taggables_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('taggables', function (Blueprint $table) {
14
+        Schema::create('taggables', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->unsignedBigInteger('tag_id');
17 17
             $table->unsignedBigInteger('taggable_id');
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('media', function (Blueprint $table) {
11
+        Schema::create('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_09_090229_create_temporary_uploads_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()
10 10
     {
11
-        Schema::create('temporary_uploads', function (Blueprint $table) {
11
+        Schema::create('temporary_uploads', function(Blueprint $table) {
12 12
             $table->id();
13 13
             $table->string('session_id');
14 14
             $table->timestamps();
Please login to merge, or discard this patch.
src/Http/Requests/PopupRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     protected function prepareForValidation(): void
20 20
     {
21 21
         $this->merge([
22
-            'slug' => ! is_null($this->name) ? Str::slug($this->name) : null,
22
+            'slug' => !is_null($this->name) ? Str::slug($this->name) : null,
23 23
             'meta_name' => $this->popup->meta_name ?? $this->meta_name ?? $this->name ?? null,
24 24
             'meta_description' => $this->popup->meta_description ?? $this->meta_description ?? $this->excerpt ?? null,
25 25
         ]);
Please login to merge, or discard this patch.
database/migrations/2023_05_11_093046_create_applications_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(config('website.table_prefix', 'website').'_'.'applications', function (Blueprint $table) {
16
+        Schema::create(config('website.table_prefix', 'website').'_'.'applications', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->unsignedBigInteger('career_id')->nullable();
19 19
             $table->foreign('career_id')->references('id')->on(config('website.table_prefix', 'website').'_'.'careers')->onDelete('cascade');
Please login to merge, or discard this patch.
src/Models/Admin/Notice.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
     }
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
         // Accessors
79 79
         public function getImageAttribute()
80 80
         {
81
-            return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
81
+            return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
82 82
         }
83 83
     
84 84
         public function getIconImageAttribute()
85 85
         {
86
-            return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg');
86
+            return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg');
87 87
         }
88 88
 }
Please login to merge, or discard this patch.
src/Models/Admin/Facility.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
     }
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
         // Accessors
79 79
     public function getImageAttribute()
80 80
     {
81
-    return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
81
+    return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
82 82
     }
83 83
 
84 84
     public function getIconImageAttribute()
85 85
     {
86
-    return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg');
86
+    return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg');
87 87
     }
88 88
 }
Please login to merge, or discard this patch.
src/Models/Admin/Career.php 1 patch
Spacing   +4 added lines, -4 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
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     // Accessors
65 65
     public function getGroupAttribute($attribute)
66 66
     {
67
-        return ! is_null($attribute) ? (config('website.career_group', [
67
+        return !is_null($attribute) ? (config('website.career_group', [
68 68
             1 => 'REASEARCHERS/STAFF',
69 69
             2 => 'FIELD STAFF',
70 70
             3 => 'INTERN/VOLUNTEERS',
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     // Accessors
105 105
     public function getImageAttribute()
106 106
     {
107
-    return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
107
+    return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
108 108
     }
109 109
 
110 110
 }
Please login to merge, or discard this patch.
src/Models/Admin/Page.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
     }
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
     // Accessors
84 84
     public function getImageAttribute()
85 85
     {
86
-        return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
86
+        return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
87 87
     }
88 88
 
89 89
     public function getIconImageAttribute()
90 90
     {
91
-        return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg');
91
+        return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg');
92 92
     }
93 93
 }
Please login to merge, or discard this patch.