Test Failed
Push — develop ( 815500...0204ba )
by nguereza
02:34
created
src/Handler/Error/ErrorRenderInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * class ErrorRenderInterface
55 55
  * @package Platine\Framework\Handler\Error
56 56
  */
57
-interface ErrorRenderInterface
58
-{
57
+interface ErrorRenderInterface {
59 58
 
60 59
     /**
61 60
      * Render the error
Please login to merge, or discard this patch.
src/Handler/Error/ErrorHandlerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * class ErrorHandlerInterface
57 57
  * @package Platine\Framework\Handler\Error
58 58
  */
59
-interface ErrorHandlerInterface
60
-{
59
+interface ErrorHandlerInterface {
61 60
 
62 61
     /**
63 62
      * Handle error and generate the response
Please login to merge, or discard this patch.
src/Handler/Error/ErrorHandler.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * class ErrorHandler
62 62
  * @package Platine\Framework\Handler\Error
63 63
  */
64
-class ErrorHandler implements ErrorHandlerInterface
65
-{
64
+class ErrorHandler implements ErrorHandlerInterface {
66 65
 
67 66
     /**
68 67
      * The content type
@@ -123,8 +122,7 @@  discard block
 block discarded – undo
123 122
      * Create new instance
124 123
      * @param LoggerInterface $logger
125 124
      */
126
-    public function __construct(LoggerInterface $logger)
127
-    {
125
+    public function __construct(LoggerInterface $logger) {
128 126
         $this->logger = $logger;
129 127
 
130 128
         //Add default renderer
Please login to merge, or discard this patch.
src/Handler/Error/Renderer/HtmlErrorRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * class HtmlErrorRenderer
56 56
  * @package Platine\Framework\Handler\Error\Renderer
57 57
  */
58
-class HtmlErrorRenderer extends AbstractErrorRenderer
59
-{
58
+class HtmlErrorRenderer extends AbstractErrorRenderer {
60 59
 
61 60
     /**
62 61
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Handler/Error/Renderer/AbstractErrorRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * class AbstractErrorRenderer
56 56
  * @package Platine\Framework\Handler\Error\Renderer
57 57
  */
58
-abstract class AbstractErrorRenderer implements ErrorRenderInterface
59
-{
58
+abstract class AbstractErrorRenderer implements ErrorRenderInterface {
60 59
 
61 60
     /**
62 61
      * The default error title
Please login to merge, or discard this patch.
src/Handler/Error/Renderer/JsonErrorRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * class JsonErrorRenderer
56 56
  * @package Platine\Framework\Handler\Error\Renderer
57 57
  */
58
-class JsonErrorRenderer extends AbstractErrorRenderer
59
-{
58
+class JsonErrorRenderer extends AbstractErrorRenderer {
60 59
 
61 60
     /**
62 61
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Http/Middleware/ErrorHandlerMiddleware.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
  * class ErrorHandlerMiddleware
64 64
  * @package Platine\Framework\Http\Middleware
65 65
  */
66
-class ErrorHandlerMiddleware implements MiddlewareInterface
67
-{
66
+class ErrorHandlerMiddleware implements MiddlewareInterface {
68 67
 
69 68
     /**
70 69
      * The logger instance to use to save error
@@ -101,8 +100,7 @@  discard block
 block discarded – undo
101 100
      * @param bool $detail
102 101
      * @param LoggerInterface $logger
103 102
      */
104
-    public function __construct(bool $detail, LoggerInterface $logger)
105
-    {
103
+    public function __construct(bool $detail, LoggerInterface $logger) {
106 104
         $this->detail = $detail;
107 105
         $this->logger = $logger;
108 106
         $this->errorHandler = $this->getDefaultErrorHanlder();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
         ServerRequestInterface $request,
149 149
         RequestHandlerInterface $handler
150 150
     ): ResponseInterface {
151
-        set_error_handler(static function (
151
+        set_error_handler(static function(
152 152
             int $severity,
153 153
             string $message,
154 154
             string $file,
Please login to merge, or discard this patch.
src/Http/Middleware/RouteMatchMiddleware.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * class RouteMatchMiddleware
62 62
  * @package Platine\Framework\Http\Middleware
63 63
  */
64
-class RouteMatchMiddleware implements MiddlewareInterface
65
-{
64
+class RouteMatchMiddleware implements MiddlewareInterface {
66 65
 
67 66
     /**
68 67
      * The Router instance
@@ -81,8 +80,7 @@  discard block
 block discarded – undo
81 80
      * @param Router $router
82 81
      * @param array<string>  $allowedMethods the default allowed methods
83 82
      */
84
-    public function __construct(Router $router, array $allowedMethods = ['HEAD'])
85
-    {
83
+    public function __construct(Router $router, array $allowedMethods = ['HEAD']) {
86 84
         $this->router = $router;
87 85
 
88 86
         foreach ($allowedMethods as $method) {
Please login to merge, or discard this patch.
src/Http/Emitter/EmitterInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * class EmitterInterface
55 55
  * @package Platine\Framework\Http\Emitter
56 56
  */
57
-interface EmitterInterface
58
-{
57
+interface EmitterInterface {
59 58
 
60 59
     /**
61 60
      * Emits a HTTP response, that including status line, headers and message
Please login to merge, or discard this patch.