Test Failed
Branch master (e7f8df)
by Michael
09:48 queued 04:58
created
app/Notifications/ProjectIsAtOneHundredPercentTime.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
app/Notifications/ProjectIsAtFiftyPercentTime.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
app/Notifications/ProjectIsAtEightyPercentTime.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
app/Http/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Http/Controllers/ProjectMilestoneController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.