@@ -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 |
@@ -53,15 +53,13 @@ |
||
53 | 53 | * @class RedirectResponse |
54 | 54 | * @package Platine\Framework\Http\Response |
55 | 55 | */ |
56 | -class RedirectResponse extends Response |
|
57 | -{ |
|
56 | +class RedirectResponse extends Response { |
|
58 | 57 | |
59 | 58 | /** |
60 | 59 | * Create new instance |
61 | 60 | * @param string $url |
62 | 61 | */ |
63 | - public function __construct(string $url = '/') |
|
64 | - { |
|
62 | + public function __construct(string $url = '/') { |
|
65 | 63 | parent::__construct(302); |
66 | 64 | $this->headers['location'] = [$url]; |
67 | 65 | } |
@@ -67,11 +67,11 @@ |
||
67 | 67 | */ |
68 | 68 | public function register(): void |
69 | 69 | { |
70 | - $this->app->bind(ErrorHandlerInterface::class, function (ContainerInterface $app) { |
|
70 | + $this->app->bind(ErrorHandlerInterface::class, function(ContainerInterface $app) { |
|
71 | 71 | return new ErrorHandler($app->get(LoggerInterface::class)); |
72 | 72 | }); |
73 | 73 | |
74 | - $this->app->bind(ErrorHandlerMiddleware::class, function (ContainerInterface $app) { |
|
74 | + $this->app->bind(ErrorHandlerMiddleware::class, function(ContainerInterface $app) { |
|
75 | 75 | return new ErrorHandlerMiddleware( |
76 | 76 | $app->get(Config::class)->get('app.debug', false), |
77 | 77 | $app->get(LoggerInterface::class) |
@@ -59,8 +59,7 @@ |
||
59 | 59 | * @class ErrorHandlerServiceProvider |
60 | 60 | * @package Platine\Framework\Service\Provider |
61 | 61 | */ |
62 | -class ErrorHandlerServiceProvider extends ServiceProvider |
|
63 | -{ |
|
62 | +class ErrorHandlerServiceProvider extends ServiceProvider { |
|
64 | 63 | /** |
65 | 64 | * {@inheritdoc} |
66 | 65 | */ |
@@ -168,7 +168,7 @@ |
||
168 | 168 | continue; |
169 | 169 | } |
170 | 170 | |
171 | - $value = preg_replace_callback('~\$\{(\w+)\}~', function ($m) { |
|
171 | + $value = preg_replace_callback('~\$\{(\w+)\}~', function($m) { |
|
172 | 172 | return (null === $ref = Env::get($m[1], null)) ? $m[0] : $ref; |
173 | 173 | }, $value); |
174 | 174 |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class Loader |
56 | 56 | * @package Platine\Framework\Env |
57 | 57 | */ |
58 | -class Loader |
|
59 | -{ |
|
58 | +class Loader { |
|
60 | 59 | /** |
61 | 60 | * Put the parsed key value pair into |
62 | 61 | * $_ENV super global. |