@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | $this->table($headers, $tasks); |
49 | 49 | } catch (exception $e) { |
50 | - $this->error('Error: '.$e); |
|
50 | + $this->error('Error: ' . $e); |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | 'password' => $this->argument('password') ? $this->argument('password') : $this->ask('User password?'), |
46 | 46 | ]); |
47 | 47 | } catch (Exception $e) { |
48 | - $this->error('error'.$e); |
|
48 | + $this->error('error' . $e); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | $this->info('User has been added to database succesfully'); |
@@ -42,11 +42,11 @@ |
||
42 | 42 | $id = $this->argument('id') ? $this->argument('id') : $this->ask('User id?'); |
43 | 43 | $count = User::destroy($id); |
44 | 44 | } catch (Exception $e) { |
45 | - $this->error('error'.$e); |
|
45 | + $this->error('error' . $e); |
|
46 | 46 | } |
47 | 47 | if ($count == 0) { |
48 | 48 | $this->alert('User does not exist'); |
49 | - } else { |
|
49 | + }else { |
|
50 | 50 | $this->info('User has been deleted to database succesfully'); |
51 | 51 | } |
52 | 52 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | ]; |
57 | 57 | $this->table($headers, $info); |
58 | 58 | } catch (Exception $e) { |
59 | - $this->error('error'.$e); |
|
59 | + $this->error('error' . $e); |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | 'email' => $this->argument('email') ? $this->argument('user_id') : $this->ask('User email?'), |
52 | 52 | ]); |
53 | 53 | } catch (Exception $e) { |
54 | - $this->error('error'.$e); |
|
54 | + $this->error('error' . $e); |
|
55 | 55 | } |
56 | 56 | $this->info('User has been edited succesfully'); |
57 | 57 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * Time: 21:13 |
12 | 12 | */ |
13 | 13 | |
14 | -class TaskObserver{ |
|
14 | +class TaskObserver { |
|
15 | 15 | |
16 | 16 | |
17 | 17 | /** |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | |
46 | - public function updated (Task $task) |
|
46 | + public function updated(Task $task) |
|
47 | 47 | { |
48 | 48 | |
49 | 49 | } |
@@ -19,13 +19,13 @@ |
||
19 | 19 | */ |
20 | 20 | public function boot() |
21 | 21 | { |
22 | - View::composer('*', function($view){ |
|
22 | + View::composer('*', function($view) { |
|
23 | 23 | |
24 | - if(Auth::user()){ |
|
24 | + if (Auth::user()) { |
|
25 | 25 | |
26 | - $view->with('user',Auth::user()); |
|
26 | + $view->with('user', Auth::user()); |
|
27 | 27 | |
28 | - } else { |
|
28 | + }else { |
|
29 | 29 | //nullObject |
30 | 30 | $view->with('user', new GuestUser); |
31 | 31 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | |
12 | 12 | |
13 | - public function index(){ |
|
13 | + public function index() { |
|
14 | 14 | |
15 | 15 | $tasks_events = TaskEvent::all()->reverse(); |
16 | 16 | return view('timeline', ['task_events'=> $tasks_events]); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | |
32 | 32 | |
33 | - $schedule->call(function () { |
|
33 | + $schedule->call(function() { |
|
34 | 34 | Mail::to(User::find(1))->send(new HelloUser()); |
35 | 35 | |
36 | 36 | })->everyMinute(); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | protected function commands() |
45 | 45 | { |
46 | - $this->load(__DIR__.'/Commands'); |
|
46 | + $this->load(__DIR__ . '/Commands'); |
|
47 | 47 | |
48 | 48 | require base_path('routes/console.php'); |
49 | 49 | } |