@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class Email extends Model |
8 | 8 | { |
9 | - protected $fillable = ['theme', 'text']; |
|
9 | + protected $fillable = [ 'theme', 'text' ]; |
|
10 | 10 | |
11 | 11 | public function users() |
12 | 12 | { |
@@ -7,5 +7,5 @@ |
||
7 | 7 | class EmailUser extends Model |
8 | 8 | { |
9 | 9 | protected $table = 'email_user'; |
10 | - protected $fillable = ['user_id', 'email_id']; |
|
10 | + protected $fillable = [ 'user_id', 'email_id' ]; |
|
11 | 11 | } |
@@ -6,5 +6,5 @@ |
||
6 | 6 | |
7 | 7 | class ModePostEmail extends Model |
8 | 8 | { |
9 | - protected $fillable = ['name', 'description']; |
|
9 | + protected $fillable = [ 'name', 'description' ]; |
|
10 | 10 | } |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | class SheduleEmail extends Model |
9 | 9 | { |
10 | 10 | use SoftDeletes; |
11 | - protected $fillable = ['date' , 'email_id', 'mode_id', 'status_action']; |
|
11 | + protected $fillable = [ 'date', 'email_id', 'mode_id', 'status_action' ]; |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * The attributes that should be cast to native types. |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function getStatusActionAttribute($value) |
29 | 29 | { |
30 | - return trans("postman::dashboard.status_action." . $value); |
|
30 | + return trans("postman::dashboard.status_action.".$value); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | public function email() |
@@ -6,5 +6,5 @@ |
||
6 | 6 | |
7 | 7 | class User extends Model |
8 | 8 | { |
9 | - protected $fillable = ['name', 'email', 'password']; |
|
9 | + protected $fillable = [ 'name', 'email', 'password' ]; |
|
10 | 10 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function boot() |
23 | 23 | { |
24 | - $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
|
24 | + $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
|
25 | 25 | |
26 | 26 | $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'postman'); |
27 | 27 | $this->publishes([ |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | ]); |
50 | 50 | $this->loadViews(); |
51 | 51 | |
52 | - Request::macro('datePostman', function (Request $request) { |
|
53 | - $request-> date = Carbon::parse($request->date)->toDateTimeString(); |
|
52 | + Request::macro('datePostman', function(Request $request) { |
|
53 | + $request-> date = Carbon::parse($request->date)->toDateTimeString(); |
|
54 | 54 | }); |
55 | 55 | |
56 | 56 | $this->mergeConfigFrom( |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | 'prefix' => 'postman', |
70 | 70 | 'namespace' => 'agoalofalife\postman\Http\Controllers', |
71 | 71 | 'middleware' => 'web', |
72 | - ], function () { |
|
72 | + ], function() { |
|
73 | 73 | $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); |
74 | 74 | }); |
75 | 75 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | foreach ($this->seeds as $seed) { |
39 | 39 | if (!class_exists($seed)) { |
40 | - require_once $this->seedersPath . $seed .'.php'; |
|
40 | + require_once $this->seedersPath.$seed.'.php'; |
|
41 | 41 | } |
42 | 42 | (new $seed())->run(); |
43 | 43 | } |
@@ -27,10 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | public function handle() |
29 | 29 | { |
30 | - $this->call('vendor:publish', ['--tag' => 'postman-migration']); |
|
30 | + $this->call('vendor:publish', [ '--tag' => 'postman-migration' ]); |
|
31 | 31 | $this->call('migrate'); |
32 | 32 | $this->call('postman:seed'); |
33 | 33 | |
34 | - $this->call('vendor:publish', ['--provider' => 'Themsaid\Transformers\TransformersServiceProvider']); |
|
34 | + $this->call('vendor:publish', [ '--provider' => 'Themsaid\Transformers\TransformersServiceProvider' ]); |
|
35 | 35 | } |
36 | 36 | } |
37 | 37 | \ No newline at end of file |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | public function formColumn() |
70 | 70 | { |
71 | 71 | $forms = [ |
72 | - 'date' => [ |
|
72 | + 'date' => [ |
|
73 | 73 | 'label' => trans('postman::dashboard.date'), |
74 | 74 | 'rule' => [ |
75 | 75 | 'required'=> true, 'message'=> 'Please input Activity name', 'trigger'=> 'blur', |
@@ -94,12 +94,12 @@ discard block |
||
94 | 94 | 'cancel' => trans('postman::dashboard.form.button.cancel'), |
95 | 95 | ], |
96 | 96 | 'popup' => [ |
97 | - 'question' => trans('postman::dashboard.popup.question'), |
|
98 | - 'title' => trans('postman::dashboard.popup.title'), |
|
99 | - 'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'), |
|
100 | - 'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'), |
|
101 | - 'success.message' => trans('postman::dashboard.popup.success.message'), |
|
102 | - 'info.message' => trans('postman::dashboard.popup.info.message'), |
|
97 | + 'question' => trans('postman::dashboard.popup.question'), |
|
98 | + 'title' => trans('postman::dashboard.popup.title'), |
|
99 | + 'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'), |
|
100 | + 'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'), |
|
101 | + 'success.message' => trans('postman::dashboard.popup.success.message'), |
|
102 | + 'info.message' => trans('postman::dashboard.popup.info.message'), |
|
103 | 103 | ], |
104 | 104 | ]; |
105 | 105 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function index() : Collection |
20 | 20 | { |
21 | - return SheduleEmail::with(['email.users', 'mode'])->get(); |
|
21 | + return SheduleEmail::with([ 'email.users', 'mode' ])->get(); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
@@ -44,17 +44,17 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function tableColumn() : JsonResponse |
46 | 46 | { |
47 | - $response = []; |
|
47 | + $response = [ ]; |
|
48 | 48 | |
49 | 49 | foreach (config('postman.ui.table') as $column => $size) { |
50 | - $response['columns'][] = [ |
|
50 | + $response[ 'columns' ][ ] = [ |
|
51 | 51 | 'prop' => $column, |
52 | 52 | 'size' => $size, |
53 | 53 | 'label' => trans("postman::dashboard.{$column}") |
54 | 54 | ]; |
55 | 55 | } |
56 | 56 | |
57 | - $response['button'] = [ |
|
57 | + $response[ 'button' ] = [ |
|
58 | 58 | 'edit' => trans('postman::dashboard.button.edit'), |
59 | 59 | 'remove' => trans('postman::dashboard.button.remove'), |
60 | 60 | ]; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | 'mode_id' => $request->mode, |
132 | 132 | 'status_action' => 0 |
133 | 133 | ]); |
134 | - return response()->json(['status' => true]); |
|
134 | + return response()->json([ 'status' => true ]); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
@@ -157,9 +157,9 @@ discard block |
||
157 | 157 | $goalList->whereIn('user_id', $removal)->delete(); |
158 | 158 | |
159 | 159 | collect($request->users)->each(function($user_id) use($task, &$usersToEmail) { |
160 | - EmailUser::firstOrCreate(['email_id' => $task->email->id, 'user_id' => $user_id]); |
|
160 | + EmailUser::firstOrCreate([ 'email_id' => $task->email->id, 'user_id' => $user_id ]); |
|
161 | 161 | }); |
162 | - return response()->json(['status' => true]); |
|
162 | + return response()->json([ 'status' => true ]); |
|
163 | 163 | } |
164 | 164 | /** |
165 | 165 | * @param $id |