@@ -50,14 +50,14 @@ discard block |
||
| 50 | 50 | * |
| 51 | 51 | * @var array |
| 52 | 52 | */ |
| 53 | - protected $fillable = ['name', 'email', 'password']; |
|
| 53 | + protected $fillable = [ 'name', 'email', 'password' ]; |
|
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * The attributes excluded from the model's JSON form. |
| 57 | 57 | * |
| 58 | 58 | * @var array |
| 59 | 59 | */ |
| 60 | - protected $hidden = ['password', 'remember_token', 'pivot']; |
|
| 60 | + protected $hidden = [ 'password', 'remember_token', 'pivot' ]; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | * to get all meetings where the user can go user groups with meetings |
| 89 | 89 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
| 90 | 90 | */ |
| 91 | - public function meetings(){ |
|
| 91 | + public function meetings() { |
|
| 92 | 92 | //TODO durign the inserting chek if the meeting is of a group of the user |
| 93 | 93 | return $this->belongsToMany(Meeting::class); |
| 94 | 94 | } |
@@ -104,16 +104,16 @@ discard block |
||
| 104 | 104 | public function getEmailForPasswordReset() |
| 105 | 105 | { |
| 106 | 106 | list(, $caller) = debug_backtrace(false); |
| 107 | - if(isset($caller['class'])) |
|
| 108 | - $caller = explode('\\', $caller['class']); |
|
| 107 | + if (isset($caller[ 'class' ])) |
|
| 108 | + $caller = explode('\\', $caller[ 'class' ]); |
|
| 109 | 109 | else |
| 110 | 110 | $caller = ''; |
| 111 | 111 | |
| 112 | 112 | //check if this function is called by email sender |
| 113 | - if ((count($caller) && $caller[count($caller) - 1] == 'PasswordBroker') || (defined('HHVM_VERSION') && $caller == '')) |
|
| 113 | + if ((count($caller) && $caller[ count($caller) - 1 ] == 'PasswordBroker') || (defined('HHVM_VERSION') && $caller == '')) |
|
| 114 | 114 | return $this->email; |
| 115 | 115 | //return unique identify for token repository |
| 116 | - return $this->email . $this->company->id; |
|
| 116 | + return $this->email.$this->company->id; |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | /** |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | public function belongsToGroup(Group $group) |
| 124 | 124 | { |
| 125 | 125 | $group = $this->groups()->where('id', $group->id)->first(); |
| 126 | - if(is_object($group) && $group->exists) |
|
| 126 | + if (is_object($group) && $group->exists) |
|
| 127 | 127 | return true; |
| 128 | 128 | return false; |
| 129 | 129 | } |
@@ -46,14 +46,14 @@ |
||
| 46 | 46 | * |
| 47 | 47 | * @var array |
| 48 | 48 | */ |
| 49 | - protected $fillable = ['title', 'description', 'duration']; |
|
| 49 | + protected $fillable = [ 'title', 'description', 'duration' ]; |
|
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * The attributes excluded from the model's JSON form. |
| 53 | 53 | * |
| 54 | 54 | * @var array |
| 55 | 55 | */ |
| 56 | - protected $hidden = ['pivot']; |
|
| 56 | + protected $hidden = [ 'pivot' ]; |
|
| 57 | 57 | |
| 58 | 58 | |
| 59 | 59 | /** |