@@ -33,8 +33,9 @@ |
||
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 | /** |
@@ -90,8 +90,9 @@ |
||
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 |
@@ -90,8 +90,9 @@ |
||
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 |
@@ -114,14 +114,16 @@ |
||
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 | } |