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 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public function formColumn()
80 80
     {
81 81
         $forms = [
82
-           'date' =>  [
82
+            'date' =>  [
83 83
                 'label' => trans('postman::dashboard.date'),
84 84
                 'rule' => [
85 85
                     'required'=> true, 'message'=> 'Please input Activity name', 'trigger'=> 'blur',
@@ -99,21 +99,21 @@  discard block
 block discarded – undo
99 99
                 'label' => trans('postman::dashboard.users.name'),
100 100
                 'placeholder' => trans('postman::dashboard.users.placeholder'),
101 101
             ],
102
-           'statuses' => [
103
-               'label' => trans('postman::dashboard.statuses.name'),
104
-               'placeholder' => trans('postman::dashboard.statuses.placeholder'),
105
-           ],
102
+            'statuses' => [
103
+                'label' => trans('postman::dashboard.statuses.name'),
104
+                'placeholder' => trans('postman::dashboard.statuses.placeholder'),
105
+            ],
106 106
             'button' => [
107 107
                 'success' => trans('postman::dashboard.form.button.success'),
108 108
                 'cancel' => trans('postman::dashboard.form.button.cancel'),
109 109
             ],
110 110
             'popup' => [
111
-              'question' => trans('postman::dashboard.popup.question'),
112
-              'title' => trans('postman::dashboard.popup.title'),
113
-              'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'),
114
-              'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'),
115
-              'success.message' => trans('postman::dashboard.popup.success.message'),
116
-              'info.message' => trans('postman::dashboard.popup.info.message'),
111
+                'question' => trans('postman::dashboard.popup.question'),
112
+                'title' => trans('postman::dashboard.popup.title'),
113
+                'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'),
114
+                'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'),
115
+                'success.message' => trans('postman::dashboard.popup.success.message'),
116
+                'info.message' => trans('postman::dashboard.popup.info.message'),
117 117
             ],
118 118
         ];
119 119
 
Please login to merge, or discard this 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.
resources/lang/ru/statuses.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 return [
3
-   [
4
-       'name' => 'В процессе',
5
-       'description' => 'Это задача находится в процессе',
6
-       'color_rgb' => '#c9e5f5'
7
-   ],
3
+    [
4
+        'name' => 'В процессе',
5
+        'description' => 'Это задача находится в процессе',
6
+        'color_rgb' => '#c9e5f5'
7
+    ],
8 8
     [
9 9
         'name' => 'Выполнена',
10 10
         'description' => 'Эта задача закончена.',
Please login to merge, or discard this patch.
resources/lang/en/statuses.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 return [
3
-   [
4
-       'name' => 'In process',
5
-       'description' => 'This task is in the process',
6
-       'color_rgb' => '#c9e5f5'
7
-   ],
3
+    [
4
+        'name' => 'In process',
5
+        'description' => 'This task is in the process',
6
+        'color_rgb' => '#c9e5f5'
7
+    ],
8 8
     [
9 9
         'name' => 'Done',
10 10
         'description' => 'It is the task finished',
Please login to merge, or discard this patch.