Completed
Pull Request — develop (#41)
by
unknown
04:01
created
app/Http/Controllers/Controller.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function __construct()
26 26
     {
27
-        view()->share(['sharingMode' => $this->sharingMode]);
27
+        view()->share([ 'sharingMode' => $this->sharingMode ]);
28 28
     }
29 29
 
30 30
     public function getEncouragementText($total_prs)
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             $encouragement_message = "Congrats, you're done!";
34 34
         elseif ($total_prs == 1)
35 35
             $encouragement_message = "A good start, just keep doing.";
36
-        elseif ((int) (config('settings.required_prs') / $total_prs) == 2 )
36
+        elseif ((int) (config('settings.required_prs') / $total_prs) == 2)
37 37
             $encouragement_message = "Almost halfway there, keep doing.";
38 38
         elseif ((config('settings.required_prs') / $total_prs) == 2)
39 39
             $encouragement_message = "You're halfway there, keep doing!";
Please login to merge, or discard this patch.
Braces   +13 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,18 +29,19 @@
 block discarded – undo
29 29
 
30 30
     public function getEncouragementText($total_prs)
31 31
     {
32
-        if ($total_prs >= config('settings.required_prs'))
33
-            $encouragement_message = "Congrats, you're done!";
34
-        elseif ($total_prs == 1)
35
-            $encouragement_message = "A good start, just keep doing.";
36
-        elseif ((int) (config('settings.required_prs') / $total_prs) == 2 )
37
-            $encouragement_message = "Almost halfway there, keep doing.";
38
-        elseif ((config('settings.required_prs') / $total_prs) == 2)
39
-            $encouragement_message = "You're halfway there, keep doing!";
40
-        elseif ((config('settings.required_prs') - $total_prs) == 2)
41
-            $encouragement_message = "Only 2 left, let's keep doing.";
42
-        else
43
-            $encouragement_message = "You're almost done.";
32
+        if ($total_prs >= config('settings.required_prs')) {
33
+                    $encouragement_message = "Congrats, you're done!";
34
+        } elseif ($total_prs == 1) {
35
+                    $encouragement_message = "A good start, just keep doing.";
36
+        } elseif ((int) (config('settings.required_prs') / $total_prs) == 2 ) {
37
+                    $encouragement_message = "Almost halfway there, keep doing.";
38
+        } elseif ((config('settings.required_prs') / $total_prs) == 2) {
39
+                    $encouragement_message = "You're halfway there, keep doing!";
40
+        } elseif ((config('settings.required_prs') - $total_prs) == 2) {
41
+                    $encouragement_message = "Only 2 left, let's keep doing.";
42
+        } else {
43
+                    $encouragement_message = "You're almost done.";
44
+        }
44 45
         return $encouragement_message;
45 46
     }
46 47
 }
Please login to merge, or discard this patch.