Completed
Push — master ( f7f9ac...c628bd )
by claudio
05:45
created
app/Listeners/Optimise/OkListener.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,9 @@
 block discarded – undo
33 33
         self::sendCompanyEmail($event->getCompany()->email);
34 34
         //send emails to employees
35 35
         $employees = $event->getCompany()->employees()->with('meetings')->get();
36
-        foreach($employees as $employee)
37
-            self::sendEmployeeEmail($employee->email, $employee->meetings);
36
+        foreach($employees as $employee) {
37
+                    self::sendEmployeeEmail($employee->email, $employee->meetings);
38
+        }
38 39
     }
39 40
 
40 41
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/Companies/Auth/AuthController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,9 @@
 block discarded – undo
90 90
         {
91 91
             config(['jwt.ttl' =>'43200']); //30 days
92 92
             $this->custom = array_merge($this->custom, ['remember'=>'true']);
93
-        }else
94
-            $this->custom = array_merge($this->custom, ['remember'=>'false']);
93
+        } else {
94
+                    $this->custom = array_merge($this->custom, ['remember'=>'false']);
95
+        }
95 96
         return $this->postLoginOriginal($request);
96 97
     }
97 98
 
Please login to merge, or discard this patch.
app/Http/Controllers/Employees/Auth/AuthController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,9 @@
 block discarded – undo
90 90
         {
91 91
             config(['jwt.ttl' =>'43200']); //30 days
92 92
             $this->custom = array_merge($this->custom, ['remember'=>'true']);
93
-        }else
94
-            $this->custom = array_merge($this->custom, ['remember'=>'false']);
93
+        } else {
94
+                    $this->custom = array_merge($this->custom, ['remember'=>'false']);
95
+        }
95 96
         return $this->postLoginOriginal($request);
96 97
     }
97 98
 
Please login to merge, or discard this patch.
app/Employee.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -114,14 +114,16 @@
 block discarded – undo
114 114
     public function getEmailForPasswordReset()
115 115
     {
116 116
         list(, $caller) = debug_backtrace(false);
117
-        if(isset($caller['class']))
118
-            $caller = explode('\\', $caller['class']);
119
-        else
120
-            $caller = '';
117
+        if(isset($caller['class'])) {
118
+                    $caller = explode('\\', $caller['class']);
119
+        } else {
120
+                    $caller = '';
121
+        }
121 122
 
122 123
         //check if this function is called by email sender
123
-        if ((count($caller) && $caller[count($caller) - 1] == 'PasswordBroker') || (defined('HHVM_VERSION') && $caller == ''))
124
-            return $this->email;
124
+        if ((count($caller) && $caller[count($caller) - 1] == 'PasswordBroker') || (defined('HHVM_VERSION') && $caller == '')) {
125
+                    return $this->email;
126
+        }
125 127
         //return unique identify for token repository
126 128
         return $this->email . $this->company->id;
127 129
     }
Please login to merge, or discard this patch.