Passed
Push — master ( 03c6de...014a65 )
by Innocent
03:17
created
database/migrations/2020_03_15_084928_create_reviews_table.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
      */
15 15
     public function up()
16 16
     {
17
-        Schema::create('fg_reviews', function (Blueprint $table) {
17
+        Schema::create('fg_reviews', function(Blueprint $table) {
18 18
             $table->string('id')->index();
19 19
             $table->string('ministry_id', 150)->index();
20 20
             $table->enum('type', Helper::$reviewTypes);
Please login to merge, or discard this patch.
database/migrations/2019_10_10_130626_create_a_p_i_keys_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('fg_a_p_i_keys', function (Blueprint $table) {
16
+        Schema::create('fg_a_p_i_keys', function(Blueprint $table) {
17 17
             $table->string('id');
18 18
             $table->string('ministry_id', 150)->unique()->index();
19 19
             $table->string('api_key')->unique();
Please login to merge, or discard this patch.
database/migrations/2019_12_10_120712_create_daily_services_table.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
      */
15 15
     public function up()
16 16
     {
17
-        Schema::create('fg_daily_services', function (Blueprint $table) {
17
+        Schema::create('fg_daily_services', function(Blueprint $table) {
18 18
             $table->string('id')->index();
19 19
             $table->string('ministry_id', 150)->index();
20 20
             $table->enum('day', Helper::$weekDays);
Please login to merge, or discard this patch.
database/migrations/2019_09_04_135557_create_ministry_users_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('fg_ministry_users', function (Blueprint $table) {
16
+        Schema::create('fg_ministry_users', function(Blueprint $table) {
17 17
             $table->string('id', 150)->primary();
18 18
             $table->string('ministry_id', 150)->index();
19 19
             $table->string('user_id', 150)->index();
Please login to merge, or discard this patch.
database/migrations/2019_10_10_130626_create_activations_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('fg_activations', function (Blueprint $table) {
16
+        Schema::create('fg_activations', function(Blueprint $table) {
17 17
             $table->string('id')->index();
18 18
             $table->string('ministry_id', 150)->unique()->index();
19 19
             $table->string('code')->unique();
Please login to merge, or discard this patch.
database/migrations/2019_09_04_135556_create_profiles_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('fg_profiles', function (Blueprint $table) {
16
+        Schema::create('fg_profiles', function(Blueprint $table) {
17 17
             $table->string('id', 150)->primary();
18 18
             $table->string('ministry_id', 150)->index();
19 19
             $table->text('about_us')->nullable();
Please login to merge, or discard this patch.
database/migrations/2019_09_04_203237_create_comments_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('fg_comments', function (Blueprint $table) {
16
+        Schema::create('fg_comments', function(Blueprint $table) {
17 17
             $table->string('id', 150);
18 18
             $table->string('creatable_id', 150)->index();
19 19
             $table->string('creatable_type');
Please login to merge, or discard this patch.
database/migrations/2019_09_04_201959_create_images_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('fg_images', function (Blueprint $table) {
16
+        Schema::create('fg_images', function(Blueprint $table) {
17 17
             $table->string('id', 150);
18 18
             $table->string('imageable_id', 150)->index();
19 19
             $table->string('imageable_type');
Please login to merge, or discard this patch.
src/Models/Ministry.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     use CreatableTrait;
26 26
 
27 27
     protected $table = 'fg_ministries';
28
-    protected $guarded = ['id'];
28
+    protected $guarded = [ 'id' ];
29 29
     public $incrementing = false;
30 30
     protected $hidden = [
31 31
         'password',
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function getJWTCustomClaims()
42 42
     {
43
-        return [];
43
+        return [ ];
44 44
     }
45 45
 
46 46
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
             return $phones;
107 107
         } else {
108
-            return [$this->phone];
108
+            return [ $this->phone ];
109 109
         }
110 110
     }
111 111
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
             return $emails;
119 119
         } else {
120
-            return [$this->email];
120
+            return [ $this->email ];
121 121
         }
122 122
     }
123 123
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     public function getUsersAttribute()
143 143
     {
144 144
         return $this->ministryUsers()
145
-            ->map(fn ($minUser) => $minUser->user)
145
+            ->map(fn($minUser) => $minUser->user)
146 146
             ->flatten();
147 147
     }
148 148
 }
Please login to merge, or discard this patch.