@@ -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 | } |
@@ -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); |