Passed
Push — dev5 ( 0d97ef...978ab8 )
by Ron
08:29
created
app/Http/Controllers/Customers/CustomerNotesController.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,8 @@  discard block
 block discarded – undo
29 29
 
30 30
         //  Determine if the note should go to the customer, or its parent
31 31
         $details = Customers::find($request->cust_id);
32
-        if ($details->parent_id && $request->shared == 'true') {
32
+        if ($details->parent_id && $request->shared == 'true')
33
+        {
33 34
             $request->cust_id = $details->parent_id;
34 35
         }
35 36
 
@@ -55,7 +56,8 @@  discard block
 block discarded – undo
55 56
 
56 57
         //  Determine if there is a parent site with shared notes
57 58
         $parent = Customers::find($id)->parent_id;
58
-        if ($parent) {
59
+        if ($parent)
60
+        {
59 61
             $parentList = CustomerNotes::where('cust_id', $parent)->where('shared', 1)->orderBy('urgent', 'desc')->get();
60 62
 
61 63
             $notes = $notes->merge($parentList);
@@ -76,7 +78,8 @@  discard block
 block discarded – undo
76 78
         ]);
77 79
 
78 80
         $details = Customers::find($request->cust_id);
79
-        if ($details->parent_id && $request->shared == 'true') {
81
+        if ($details->parent_id && $request->shared == 'true')
82
+        {
80 83
             $request->cust_id = $details->parent_id;
81 84
         }
82 85
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/InitializeUserController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@  discard block
 block discarded – undo
25 25
         //  Validate the hash token
26 26
         $user = UserInitialize::where('token', $hash)->get();
27 27
 
28
-        if ($user->isEmpty()) {
28
+        if ($user->isEmpty())
29
+        {
29 30
             Log::warning('Visitor at IP Address ' . \Request::ip() . ' tried to access invalid initialize hash - ' . $hash);
30 31
             return abort(404);
31 32
         }
@@ -40,7 +41,8 @@  discard block
 block discarded – undo
40 41
     {
41 42
         //  Verify that the link matches the assigned email address
42 43
         $valid = UserInitialize::where('token', $hash)->first();
43
-        if (empty($valid)) {
44
+        if (empty($valid))
45
+        {
44 46
             Log::warning('Visitor at IP Address ' . \Request::ip() . ' tried to submit an invalid User Initialization link - ' . $hash);
45 47
             return abort(404);
46 48
         }
Please login to merge, or discard this patch.