@@ -138,15 +138,15 @@ |
||
| 138 | 138 | public function jsonSerialize() |
| 139 | 139 | { |
| 140 | 140 | return [ |
| 141 | - 'id' => $this->mapper()->getColumn('id'), |
|
| 142 | - 'username' => $this->mapper()->getColumn('username'), |
|
| 143 | - 'email' => $this->mapper()->getColumn('email'), |
|
| 144 | - 'status' => $this->mapper()->getColumn('status'), |
|
| 145 | - 'lastname' => $this->mapper()->getColumn('lastname'), |
|
| 146 | - 'firstname' => $this->mapper()->getColumn('firstname'), |
|
| 147 | - 'role' => $this->mapper()->getColumn('role'), |
|
| 148 | - 'created_at' => $this->mapper()->getColumn('created_at'), |
|
| 149 | - 'updated_at' => $this->mapper()->getColumn('updated_at'), |
|
| 141 | + 'id' => $this->mapper()->getColumn('id'), |
|
| 142 | + 'username' => $this->mapper()->getColumn('username'), |
|
| 143 | + 'email' => $this->mapper()->getColumn('email'), |
|
| 144 | + 'status' => $this->mapper()->getColumn('status'), |
|
| 145 | + 'lastname' => $this->mapper()->getColumn('lastname'), |
|
| 146 | + 'firstname' => $this->mapper()->getColumn('firstname'), |
|
| 147 | + 'role' => $this->mapper()->getColumn('role'), |
|
| 148 | + 'created_at' => $this->mapper()->getColumn('created_at'), |
|
| 149 | + 'updated_at' => $this->mapper()->getColumn('updated_at'), |
|
| 150 | 150 | ]; |
| 151 | 151 | } |
| 152 | 152 | } |
@@ -56,8 +56,7 @@ discard block |
||
| 56 | 56 | * @class User |
| 57 | 57 | * @package Platine\Framework\Auth\Entity |
| 58 | 58 | */ |
| 59 | -class User extends Entity implements IdentityInterface |
|
| 60 | -{ |
|
| 59 | +class User extends Entity implements IdentityInterface { |
|
| 61 | 60 | |
| 62 | 61 | /** |
| 63 | 62 | * {@inheritdoc} |
@@ -107,8 +106,7 @@ discard block |
||
| 107 | 106 | /** |
| 108 | 107 | * {@inheritdoc} |
| 109 | 108 | */ |
| 110 | - public function getId() |
|
| 111 | - { |
|
| 109 | + public function getId() { |
|
| 112 | 110 | return $this->mapper()->getColumn('id'); |
| 113 | 111 | } |
| 114 | 112 | |
@@ -135,8 +133,7 @@ discard block |
||
| 135 | 133 | /** |
| 136 | 134 | * {@inheritdoc} |
| 137 | 135 | */ |
| 138 | - public function jsonSerialize() |
|
| 139 | - { |
|
| 136 | + public function jsonSerialize() { |
|
| 140 | 137 | return [ |
| 141 | 138 | 'id' => $this->mapper()->getColumn('id'), |
| 142 | 139 | 'username' => $this->mapper()->getColumn('username'), |
@@ -75,12 +75,12 @@ |
||
| 75 | 75 | public function jsonSerialize() |
| 76 | 76 | { |
| 77 | 77 | return [ |
| 78 | - 'id' => $this->mapper()->getColumn('id'), |
|
| 79 | - 'code' => $this->mapper()->getColumn('code'), |
|
| 80 | - 'description' => $this->mapper()->getColumn('description'), |
|
| 81 | - 'depend' => $this->mapper()->getColumn('depend'), |
|
| 82 | - 'created_at' => $this->mapper()->getColumn('created_at'), |
|
| 83 | - 'updated_at' => $this->mapper()->getColumn('updated_at'), |
|
| 78 | + 'id' => $this->mapper()->getColumn('id'), |
|
| 79 | + 'code' => $this->mapper()->getColumn('code'), |
|
| 80 | + 'description' => $this->mapper()->getColumn('description'), |
|
| 81 | + 'depend' => $this->mapper()->getColumn('depend'), |
|
| 82 | + 'created_at' => $this->mapper()->getColumn('created_at'), |
|
| 83 | + 'updated_at' => $this->mapper()->getColumn('updated_at'), |
|
| 84 | 84 | ]; |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -54,8 +54,7 @@ discard block |
||
| 54 | 54 | * @class Permission |
| 55 | 55 | * @package Platine\Framework\Auth\Entity |
| 56 | 56 | */ |
| 57 | -class Permission extends Entity |
|
| 58 | -{ |
|
| 57 | +class Permission extends Entity { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
@@ -72,8 +71,7 @@ discard block |
||
| 72 | 71 | /** |
| 73 | 72 | * {@inheritdoc} |
| 74 | 73 | */ |
| 75 | - public function jsonSerialize() |
|
| 76 | - { |
|
| 74 | + public function jsonSerialize() { |
|
| 77 | 75 | return [ |
| 78 | 76 | 'id' => $this->mapper()->getColumn('id'), |
| 79 | 77 | 'code' => $this->mapper()->getColumn('code'), |
@@ -104,11 +104,11 @@ |
||
| 104 | 104 | public function jsonSerialize() |
| 105 | 105 | { |
| 106 | 106 | return [ |
| 107 | - 'id' => $this->mapper()->getColumn('id'), |
|
| 108 | - 'name' => $this->mapper()->getColumn('name'), |
|
| 109 | - 'description' => $this->mapper()->getColumn('description'), |
|
| 110 | - 'created_at' => $this->mapper()->getColumn('created_at'), |
|
| 111 | - 'updated_at' => $this->mapper()->getColumn('updated_at'), |
|
| 107 | + 'id' => $this->mapper()->getColumn('id'), |
|
| 108 | + 'name' => $this->mapper()->getColumn('name'), |
|
| 109 | + 'description' => $this->mapper()->getColumn('description'), |
|
| 110 | + 'created_at' => $this->mapper()->getColumn('created_at'), |
|
| 111 | + 'updated_at' => $this->mapper()->getColumn('updated_at'), |
|
| 112 | 112 | ]; |
| 113 | 113 | } |
| 114 | 114 | } |
@@ -54,8 +54,7 @@ discard block |
||
| 54 | 54 | * @class Role |
| 55 | 55 | * @package Platine\Framework\Auth\Entity |
| 56 | 56 | */ |
| 57 | -class Role extends Entity |
|
| 58 | -{ |
|
| 57 | +class Role extends Entity { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
@@ -101,8 +100,7 @@ discard block |
||
| 101 | 100 | /** |
| 102 | 101 | * {@inheritdoc} |
| 103 | 102 | */ |
| 104 | - public function jsonSerialize() |
|
| 105 | - { |
|
| 103 | + public function jsonSerialize() { |
|
| 106 | 104 | return [ |
| 107 | 105 | 'id' => $this->mapper()->getColumn('id'), |
| 108 | 106 | 'name' => $this->mapper()->getColumn('name'), |