Test Failed
Push — master ( e27e96...62a61a )
by Chubarov
05:17
created
database/migrations/2017_09_13_154810_create_statuses_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function up()
18 18
     {
19
-        Schema::create('statuses', function (Blueprint $table) {
19
+        Schema::create('statuses', function(Blueprint $table) {
20 20
             $table->increments('id');
21 21
             $table->string('name');
22 22
             $table->text('description');
Please login to merge, or discard this patch.
database/seeds/StatusesSeeder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
     {
18 18
         foreach (trans('postman::statuses') as $status) {
19 19
             Status::firstOrCreate([
20
-                'name' => $status['name'],
21
-                'description' => $status['description'],
22
-                'color_rgb' => $status['color_rgb'],
20
+                'name' => $status[ 'name' ],
21
+                'description' => $status[ 'description' ],
22
+                'color_rgb' => $status[ 'color_rgb' ],
23 23
             ]);
24 24
         }
25 25
     }
Please login to merge, or discard this patch.
src/Models/Status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 class Status extends Model
8 8
 {
9
-    protected $fillable = ['name', 'description', 'color_rgb'];
9
+    protected $fillable = [ 'name', 'description', 'color_rgb' ];
10 10
 }
Please login to merge, or discard this patch.
src/Models/SheduleEmail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     use SoftDeletes;
11 11
 
12
-    protected $fillable = ['date' , 'email_id', 'mode_id', 'status_id'];
12
+    protected $fillable = [ 'date', 'email_id', 'mode_id', 'status_id' ];
13 13
 
14 14
     public function email()
15 15
     {
Please login to merge, or discard this patch.
src/Http/Controllers/DashboardController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function index() : Collection
22 22
     {
23
-        return SheduleEmail::with(['email.users', 'mode', 'status'])->get();
23
+        return SheduleEmail::with([ 'email.users', 'mode', 'status' ])->get();
24 24
     }
25 25
 
26 26
     /**
@@ -54,17 +54,17 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function tableColumn() : JsonResponse
56 56
     {
57
-        $response = [];
57
+        $response = [ ];
58 58
 
59 59
         foreach (config('postman.ui.table') as $column => $size) {
60
-            $response['columns'][] = [
60
+            $response[ 'columns' ][ ] = [
61 61
                 'prop' => $column,
62 62
                 'size' => $size,
63 63
                 'label' => trans("postman::dashboard.{$column}")
64 64
             ];
65 65
         }
66 66
         
67
-        $response['button'] = [
67
+        $response[ 'button' ] = [
68 68
             'edit' => trans('postman::dashboard.button.edit'),
69 69
             'remove' => trans('postman::dashboard.button.remove'),
70 70
         ];
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             'status_id' => $request->statuses
147 147
         ]);
148 148
 
149
-        return response()->json(['status' => true]);
149
+        return response()->json([ 'status' => true ]);
150 150
     }
151 151
 
152 152
     /**
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
         $goalList->whereIn('user_id', $removal)->delete();
176 176
 
177 177
         collect($request->users)->each(function($user_id) use($task, &$usersToEmail) {
178
-            EmailUser::firstOrCreate(['email_id' => $task->email->id, 'user_id' => $user_id]);
178
+            EmailUser::firstOrCreate([ 'email_id' => $task->email->id, 'user_id' => $user_id ]);
179 179
         });
180
-        return response()->json(['status' => true]);
180
+        return response()->json([ 'status' => true ]);
181 181
     }
182 182
     /**
183 183
      * @param $id
Please login to merge, or discard this patch.