@@ -112,8 +112,9 @@ discard block |
||
112 | 112 | $caller = explode('\\', $caller['class']); |
113 | 113 | |
114 | 114 | //check if this function is called by email sender |
115 | - if ($caller[count($caller) - 1] == 'PasswordBroker') |
|
116 | - return $this->email; |
|
115 | + if ($caller[count($caller) - 1] == 'PasswordBroker') { |
|
116 | + return $this->email; |
|
117 | + } |
|
117 | 118 | //return unique identify for token repository |
118 | 119 | return $this->email . $this->company->id; |
119 | 120 | } |
@@ -125,8 +126,9 @@ discard block |
||
125 | 126 | public function belongsToGroup(Group $group) |
126 | 127 | { |
127 | 128 | $group = $this->groups()->where('id', $group->id)->first(); |
128 | - if(is_object($group) && $group->exists) |
|
129 | - return true; |
|
129 | + if(is_object($group) && $group->exists) { |
|
130 | + return true; |
|
131 | + } |
|
130 | 132 | return false; |
131 | 133 | } |
132 | 134 |