@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | use Spatie\Permission\Models\Permission; |
4 | 4 | use Spatie\Permission\Models\Role; |
5 | 5 | |
6 | -if (!function_exists('initialize_task_permission')) { |
|
6 | +if ( ! function_exists('initialize_task_permission')) { |
|
7 | 7 | function initialize_task_permissions() |
8 | 8 | { |
9 | 9 | Permission::firstOrCreate(['name' => 'list-tasks']); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | } |
23 | 23 | } |
24 | 24 | |
25 | -if (!function_exists('create_user')) { |
|
25 | +if ( ! function_exists('create_user')) { |
|
26 | 26 | function create_user() |
27 | 27 | { |
28 | 28 | factory(User::class)->create([ |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | } |
35 | 35 | |
36 | -if (!function_exists('first_user_as_task_manager')) { |
|
36 | +if ( ! function_exists('first_user_as_task_manager')) { |
|
37 | 37 | function first_user_as_task_manager() |
38 | 38 | { |
39 | 39 | User::all()->first()->assignRole('task-manager'); |
@@ -72,7 +72,7 @@ |
||
72 | 72 | if ($this->username() === 'email') { |
73 | 73 | return $this->attemptLoginAtAuthenticatesUsers($request); |
74 | 74 | } |
75 | - if (!$this->attemptLoginAtAuthenticatesUsers($request)) { |
|
75 | + if ( ! $this->attemptLoginAtAuthenticatesUsers($request)) { |
|
76 | 76 | return $this->attempLoginUsingUsernameAsAnEmail($request); |
77 | 77 | } |
78 | 78 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | // will update the password on an actual user model and persist it to the |
39 | 39 | // database. Otherwise we will parse the error and return the response. |
40 | 40 | $response = $this->broker()->reset( |
41 | - $this->credentials($request), function ($user, $password) { |
|
41 | + $this->credentials($request), function($user, $password) { |
|
42 | 42 | $this->resetPassword($user, $password); |
43 | 43 | } |
44 | 44 | ); |
@@ -46,10 +46,10 @@ |
||
46 | 46 | $headers = ['Key', 'Value']; |
47 | 47 | |
48 | 48 | $fields = [ |
49 | - ['Name:', $task->name], |
|
49 | + ['Name:', $task->name], |
|
50 | 50 | ['Completed:', $task->completed ? 'Yes' : 'No'], |
51 | - ['User id:', $task->user_id], |
|
52 | - ['User name:', $user->name], |
|
51 | + ['User id:', $task->user_id], |
|
52 | + ['User name:', $user->name], |
|
53 | 53 | ]; |
54 | 54 | |
55 | 55 | $this->table($headers, $fields); |
@@ -11,6 +11,6 @@ |
||
11 | 11 | public function index() |
12 | 12 | { |
13 | 13 | $task_events = TaskEvent::all(); |
14 | - return view('timeline',['task_events' => $task_events]); |
|
14 | + return view('timeline', ['task_events' => $task_events]); |
|
15 | 15 | } |
16 | 16 | } |
@@ -20,12 +20,12 @@ |
||
20 | 20 | public function boot() |
21 | 21 | { |
22 | 22 | View::composer('*', function ($view) { |
23 | - if (Auth::user()){ |
|
24 | - $view->with('user',Auth::user()); |
|
25 | - } else { |
|
26 | - // NullObject |
|
27 | - $view->with('user', new GuestUser()); |
|
28 | - } |
|
23 | + if (Auth::user()){ |
|
24 | + $view->with('user',Auth::user()); |
|
25 | + } else { |
|
26 | + // NullObject |
|
27 | + $view->with('user', new GuestUser()); |
|
28 | + } |
|
29 | 29 | }); |
30 | 30 | |
31 | 31 | Task::observe(TaskObserver::class); |
@@ -19,9 +19,9 @@ |
||
19 | 19 | */ |
20 | 20 | public function boot() |
21 | 21 | { |
22 | - View::composer('*', function ($view) { |
|
23 | - if (Auth::user()){ |
|
24 | - $view->with('user',Auth::user()); |
|
22 | + View::composer('*', function($view) { |
|
23 | + if (Auth::user()) { |
|
24 | + $view->with('user', Auth::user()); |
|
25 | 25 | } else { |
26 | 26 | // NullObject |
27 | 27 | $view->with('user', new GuestUser()); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | // $schedule->command('inspire') |
32 | 32 | // ->hourly(); |
33 | 33 | |
34 | - $schedule->call(function () { |
|
34 | + $schedule->call(function() { |
|
35 | 35 | Mail::to(User::find(1))->send(new HelloUser()); |
36 | 36 | })->everyMinute(); |
37 | 37 | } |