@@ -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 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $project->milestones()->create([ |
43 | 43 | 'title' => $request->title, |
44 | 44 | 'user_id' => $request->user()->id ?? auth()->id(), |
45 | - 'completed_at' => ((bool)$request->completed === true) ? now() : null |
|
45 | + 'completed_at' => ((bool) $request->completed === true) ? now() : null |
|
46 | 46 | ]); |
47 | 47 | |
48 | 48 | return redirect()->route('projects.show', $project); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | $milestone->update([ |
86 | 86 | 'title' => $request->title, |
87 | - 'completed_at' => ((bool)$request->completed == true) ? now() : null |
|
87 | + 'completed_at' => ((bool) $request->completed == true) ? now() : null |
|
88 | 88 | ]); |
89 | 89 | |
90 | 90 | return redirect()->route('projects.show', $project); |