@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class ApiAuthenticationInterface |
| 54 | 54 | * @package Platine\Framework\Auth |
| 55 | 55 | */ |
| 56 | -interface ApiAuthenticationInterface |
|
| 57 | -{ |
|
| 56 | +interface ApiAuthenticationInterface { |
|
| 58 | 57 | |
| 59 | 58 | /** |
| 60 | 59 | * Whether the request is authenticated |
@@ -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'), |