Test Failed
Push — develop ( ebbd0c...8a31ce )
by nguereza
03:10
created
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.
src/Http/Emitter/ResponseEmitter.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * class ResponseEmitter
59 59
  * @package Platine\Framework\Http\Emitter
60 60
  */
61
-class ResponseEmitter implements EmitterInterface
62
-{
61
+class ResponseEmitter implements EmitterInterface {
63 62
 
64 63
     /**
65 64
      * The response before length
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
      * Create new instance
72 71
      * @param int|null $bufferLength
73 72
      */
74
-    public function __construct(?int $bufferLength = null)
75
-    {
73
+    public function __construct(?int $bufferLength = null) {
76 74
         if ($bufferLength !== null && $bufferLength < 1) {
77 75
             throw new InvalidArgumentException(sprintf(
78 76
                 'The response buffer length must be greater than zero; received [%d].',
Please login to merge, or discard this patch.
src/Http/Middleware/RouteDispatcherMiddleware.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * class RouteDispatcherMiddleware
60 60
  * @package Platine\Framework\Http\Middleware
61 61
  */
62
-class RouteDispatcherMiddleware implements MiddlewareInterface
63
-{
62
+class RouteDispatcherMiddleware implements MiddlewareInterface {
64 63
 
65 64
     /**
66 65
      * The Middleware resolver instance
@@ -72,8 +71,7 @@  discard block
 block discarded – undo
72 71
      * Create new instance
73 72
      * @param MiddlewareResolverInterface $resolver
74 73
      */
75
-    public function __construct(MiddlewareResolverInterface $resolver)
76
-    {
74
+    public function __construct(MiddlewareResolverInterface $resolver) {
77 75
         $this->resolver = $resolver;
78 76
     }
79 77
 
Please login to merge, or discard this patch.