@@ -54,8 +54,8 @@ discard block |
||
54 | 54 | protected function mapWebRoutes() |
55 | 55 | { |
56 | 56 | Route::middleware('web') |
57 | - ->namespace($this->namespace) |
|
58 | - ->group(base_path('routes/web.php')); |
|
57 | + ->namespace($this->namespace) |
|
58 | + ->group(base_path('routes/web.php')); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | protected function mapApiRoutes() |
69 | 69 | { |
70 | 70 | Route::prefix('api') |
71 | - ->namespace($this->apiNamespace) |
|
72 | - ->group(base_path('routes/api.php')); |
|
71 | + ->namespace($this->apiNamespace) |
|
72 | + ->group(base_path('routes/api.php')); |
|
73 | 73 | } |
74 | 74 | } |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | public function toMail($notifiable) |
47 | 47 | { |
48 | 48 | return (new MailMessage) |
49 | - ->subject($this->project->title . ' is at 100% time utilized!') |
|
50 | - ->line('Hey '. $this->user->name) |
|
49 | + ->subject($this->project->title.' is at 100% time utilized!') |
|
50 | + ->line('Hey '.$this->user->name) |
|
51 | 51 | ->line('We just thought we\'d let you know that your project '.$this->project->title.' on Trackr is at 100% time utilised.') |
52 | 52 | ->action('Check Time Logs', route('projects.show', $this->project)) |
53 | 53 | ->line('Thanks for using Trackr!'); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | return [ |
65 | 65 | 'author' => 'Trackr Bot', |
66 | - 'title' => $this->project->title . ' is at 100% time utilised!', |
|
66 | + 'title' => $this->project->title.' is at 100% time utilised!', |
|
67 | 67 | 'message' => $this->project->title.' is at 100% time utilised!', |
68 | 68 | 'link' => route('projects.show', $this->project) |
69 | 69 | ]; |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | public function toMail($notifiable) |
47 | 47 | { |
48 | 48 | return (new MailMessage) |
49 | - ->subject($this->project->title . ' is at 50% time utilized!') |
|
50 | - ->line('Hey '. $this->user->name) |
|
49 | + ->subject($this->project->title.' is at 50% time utilized!') |
|
50 | + ->line('Hey '.$this->user->name) |
|
51 | 51 | ->line('We just thought we\'d let you know that your project '.$this->project->title.' on Trackr is at 50% time utilised.') |
52 | 52 | ->action('Check Time Logs', route('projects.show', $this->project)) |
53 | 53 | ->line('Thanks for using Trackr!'); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | return [ |
65 | 65 | 'author' => 'Trackr Bot', |
66 | - 'title' => $this->project->title . ' is at 50% time utilised!', |
|
66 | + 'title' => $this->project->title.' is at 50% time utilised!', |
|
67 | 67 | 'message' => $this->project->title.' is at 50% time utilised!', |
68 | 68 | 'link' => route('projects.show', $this->project) |
69 | 69 | ]; |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | public function toMail($notifiable) |
47 | 47 | { |
48 | 48 | return (new MailMessage) |
49 | - ->subject($this->project->title . ' is at 80% time utilized!') |
|
50 | - ->line('Hey '. $this->user->name) |
|
49 | + ->subject($this->project->title.' is at 80% time utilized!') |
|
50 | + ->line('Hey '.$this->user->name) |
|
51 | 51 | ->line('We just thought we\'d let you know that your project '.$this->project->title.' on Trackr is at 80% time utilised.') |
52 | 52 | ->action('Check Time Logs', route('projects.show', $this->project)) |
53 | 53 | ->line('Thanks for using Trackr!'); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | return [ |
65 | 65 | 'author' => 'Trackr Bot', |
66 | - 'title' => $this->project->title . ' is at 80% time utilised!', |
|
66 | + 'title' => $this->project->title.' is at 80% time utilised!', |
|
67 | 67 | 'message' => $this->project->title.' is at 80% time utilised!', |
68 | 68 | 'link' => route('projects.show', $this->project) |
69 | 69 | ]; |
@@ -14,7 +14,7 @@ |
||
14 | 14 | foreach ($data as $k => $v) { |
15 | 15 | if ($diffInSeconds >= $v) { |
16 | 16 | $diff = floor($diffInSeconds / $v); |
17 | - $result .= " $diff " . ($diff > 1 ? $k : substr($k, 0, -1)); |
|
17 | + $result .= " $diff ".($diff > 1 ? $k : substr($k, 0, -1)); |
|
18 | 18 | $diffInSeconds -= $v * $diff; |
19 | 19 | } |
20 | 20 | } |
@@ -21,9 +21,9 @@ |
||
21 | 21 | public function __construct(User $user) |
22 | 22 | { |
23 | 23 | UserSetting::firstOrCreate([ |
24 | - 'user_id' => $user->id, |
|
25 | - 'hourly_rate' => 0, |
|
26 | - 'currency' => 'GBP', |
|
24 | + 'user_id' => $user->id, |
|
25 | + 'hourly_rate' => 0, |
|
26 | + 'currency' => 'GBP', |
|
27 | 27 | ]); |
28 | 28 | } |
29 | 29 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | return redirect()->route('home'); |
93 | 93 | } |
94 | 94 | |
95 | - $this->seo()->setTitle('Update Project: '. $project->title); |
|
95 | + $this->seo()->setTitle('Update Project: '.$project->title); |
|
96 | 96 | $this->seo()->setDescription($project->description); |
97 | 97 | |
98 | 98 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $project->milestones()->create([ |
46 | 46 | 'title' => $request->title, |
47 | 47 | 'user_id' => $request->user()->id ?? auth()->id(), |
48 | - 'completed_at' => ((bool)$request->completed === true) ? now() : null |
|
48 | + 'completed_at' => ((bool) $request->completed === true) ? now() : null |
|
49 | 49 | ]); |
50 | 50 | |
51 | 51 | return redirect()->route('projects.show', [$project]); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | $milestone->update([ |
92 | 92 | 'title' => $request->title, |
93 | - 'completed_at' => ((bool)$request->completed === true) ? now() : null |
|
93 | + 'completed_at' => ((bool) $request->completed === true) ? now() : null |
|
94 | 94 | ]); |
95 | 95 | |
96 | 96 | return redirect()->route('projects.show', [$project]); |