@@ -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 | } |
@@ -37,8 +37,9 @@ discard block |
||
37 | 37 | $meeting = Meeting::findOrFail($meetingId); |
38 | 38 | $this->authorize($meeting); |
39 | 39 | |
40 | - if ($meeting->group_id == $groupId) |
|
41 | - return $meeting->timeslots; |
|
40 | + if ($meeting->group_id == $groupId) { |
|
41 | + return $meeting->timeslots; |
|
42 | + } |
|
42 | 43 | return Response::json(['error' => 'meeting->group_id <> groupId'], 403); |
43 | 44 | } |
44 | 45 | |
@@ -59,8 +60,9 @@ discard block |
||
59 | 60 | $timeslot = MeetingTimeslot::findOrFail($timeslotId); |
60 | 61 | $this->authorize($timeslot); |
61 | 62 | |
62 | - if ($meeting->group_id == $groupId && $timeslot->meeting_id == $meetingId) |
|
63 | - return $timeslot; |
|
63 | + if ($meeting->group_id == $groupId && $timeslot->meeting_id == $meetingId) { |
|
64 | + return $timeslot; |
|
65 | + } |
|
64 | 66 | return Response::json(['error' => 'meeting->group_id <> groupId || timeslot->meeting_id <> meetingId'], 403); |
65 | 67 | } |
66 | 68 |