@@ -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 | } |
@@ -77,9 +77,12 @@ |
||
77 | 77 | $group = Group::findOrFail($groupId); |
78 | 78 | $this->authorize($group); |
79 | 79 | $input = $request->all(); |
80 | - if ($this->checkTitleAlreadyExists($input['title'], $group))//TODO create methods inside model is nto the correct way |
|
80 | + if ($this->checkTitleAlreadyExists($input['title'], $group)) { |
|
81 | + //TODO create methods inside model is nto the correct way |
|
81 | 82 | { |
82 | - abort(422); //TODO thsi is note the correct way |
|
83 | + abort(422); |
|
84 | + } |
|
85 | + //TODO thsi is note the correct way |
|
83 | 86 | //TODO This is not a contraint to do. but anyway if we want to do constraints we have to use requests |
84 | 87 | } |
85 | 88 | $meeting = $group->meetings()->create($input); |