@@ -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 | } |
@@ -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); |