@@ -17,7 +17,7 @@ |
||
| 17 | 17 | return [ |
| 18 | 18 | 'full_name' => $user->full_name, |
| 19 | 19 | 'email' => $user->email, |
| 20 | - 'role_id' => (int) $user->role_id, |
|
| 20 | + 'role_id' => (int)$user->role_id, |
|
| 21 | 21 | 'created_at' => Carbon::parse($user->created_at)->setTimezone('UTC')->format(Carbon::ISO8601), |
| 22 | 22 | 'updated_at' => Carbon::parse($user->updated_at)->setTimezone('UTC')->format(Carbon::ISO8601), |
| 23 | 23 | 'created_by' => $user->created_by, |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | public function creating(BaseModel $model) |
| 16 | 16 | { |
| 17 | 17 | $user = Auth::getUser(); |
| 18 | - if(!is_null($user)){ |
|
| 18 | + if (!is_null($user)) { |
|
| 19 | 19 | $model->created_by = $user->id; |
| 20 | 20 | } |
| 21 | 21 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function updating(BaseModel $model) |
| 31 | 31 | { |
| 32 | 32 | $user = Auth::getUser(); |
| 33 | - if(!is_null($user)){ |
|
| 33 | + if (!is_null($user)) { |
|
| 34 | 34 | $model->updated_by = $user->id; |
| 35 | 35 | } |
| 36 | 36 | } |
@@ -119,5 +119,5 @@ |
||
| 119 | 119 | | ], |
| 120 | 120 | | |
| 121 | 121 | */ |
| 122 | - 'attributes' => [ ], |
|
| 122 | + 'attributes' => [], |
|
| 123 | 123 | ]; |
| 124 | 124 | \ No newline at end of file |
@@ -96,5 +96,5 @@ |
||
| 96 | 96 | | of "email". This simply helps us make messages a little cleaner. |
| 97 | 97 | | |
| 98 | 98 | */ |
| 99 | - 'attributes' => [ ], |
|
| 99 | + 'attributes' => [], |
|
| 100 | 100 | ]; |
| 101 | 101 | \ No newline at end of file |