@@ -148,8 +148,8 @@ |
||
| 148 | 148 | )); |
| 149 | 149 | } else { |
| 150 | 150 | $this->setHeaders($headers) |
| 151 | - ->setPayload($payload) |
|
| 152 | - ->setOriginalToken($token) |
|
| 151 | + ->setPayload($payload) |
|
| 152 | + ->setOriginalToken($token) |
|
| 153 | 153 | ->setEncodedSignature($parts[2]); |
| 154 | 154 | |
| 155 | 155 | if (!$this->verify()) { |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | * @class JWT |
| 58 | 58 | * @package Platine\Framework\Security\JWT |
| 59 | 59 | */ |
| 60 | -class JWT |
|
| 61 | -{ |
|
| 60 | +class JWT { |
|
| 62 | 61 | /** |
| 63 | 62 | * The payload |
| 64 | 63 | * @var array<string, mixed> |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function register(): void |
| 71 | 71 | { |
| 72 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
| 72 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
| 73 | 73 | return new Configuration($app->get(Config::class)->get('lang', [])); |
| 74 | 74 | }); |
| 75 | 75 | $this->app->share(StorageInterface::class, MemoryStorage::class); |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * @class LangServiceProvider |
| 62 | 62 | * @package Platine\Framework\Service\Provider |
| 63 | 63 | */ |
| 64 | -class LangServiceProvider extends ServiceProvider |
|
| 65 | -{ |
|
| 64 | +class LangServiceProvider extends ServiceProvider { |
|
| 66 | 65 | /** |
| 67 | 66 | * {@inheritdoc} |
| 68 | 67 | */ |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | 'updated_at' => '?date', |
| 71 | 71 | ]); |
| 72 | 72 | |
| 73 | - $mapper->filter('not_expire', function (Query $q, $date) { |
|
| 73 | + $mapper->filter('not_expire', function(Query $q, $date) { |
|
| 74 | 74 | $q->where('expire_at')->gt($date); |
| 75 | 75 | }); |
| 76 | 76 | } |
@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * @package Platine\Framework\Auth\Entity |
| 57 | 57 | * @extends Entity<Token> |
| 58 | 58 | */ |
| 59 | -class Token extends Entity |
|
| 60 | -{ |
|
| 59 | +class Token extends Entity { |
|
| 61 | 60 | /** |
| 62 | 61 | * |
| 63 | 62 | * @param EntityMapperInterface<Token> $mapper |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | public function register(): void |
| 68 | 68 | { |
| 69 | - $this->app->bind(Dompdf::class, function (ContainerInterface $app) { |
|
| 69 | + $this->app->bind(Dompdf::class, function(ContainerInterface $app) { |
|
| 70 | 70 | $defaultOptions = array( |
| 71 | 71 | 'isRemoteEnabled' => true |
| 72 | 72 | ); |
@@ -58,8 +58,7 @@ |
||
| 58 | 58 | * @class PDFServiceProvider |
| 59 | 59 | * @package Platine\Framework\Service\Provider |
| 60 | 60 | */ |
| 61 | -class PDFServiceProvider extends ServiceProvider |
|
| 62 | -{ |
|
| 61 | +class PDFServiceProvider extends ServiceProvider { |
|
| 63 | 62 | /** |
| 64 | 63 | * {@inheritdoc} |
| 65 | 64 | */ |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpBadRequestException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpBadRequestException extends HttpSpecialException |
|
| 41 | -{ |
|
| 40 | +class HttpBadRequestException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |
@@ -39,8 +39,7 @@ |
||
| 39 | 39 | * @class HttpForbiddenException |
| 40 | 40 | * @package Platine\Framework\Http\Exception |
| 41 | 41 | */ |
| 42 | -class HttpForbiddenException extends HttpSpecialException |
|
| 43 | -{ |
|
| 42 | +class HttpForbiddenException extends HttpSpecialException { |
|
| 44 | 43 | /** |
| 45 | 44 | * |
| 46 | 45 | * @var int |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpUnauthorizedException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpUnauthorizedException extends HttpSpecialException |
|
| 41 | -{ |
|
| 40 | +class HttpUnauthorizedException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpNotImplementedException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpNotImplementedException extends HttpSpecialException |
|
| 41 | -{ |
|
| 40 | +class HttpNotImplementedException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpInternalServerErrorException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpInternalServerErrorException extends HttpSpecialException |
|
| 41 | -{ |
|
| 40 | +class HttpInternalServerErrorException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |