Test Failed
Push — develop ( acdfb2...2de2bf )
by nguereza
02:53
created
src/Service/Provider/ErrorHandlerServiceProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@
 block discarded – undo
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'),
77 77
                 $app->get(LoggerInterface::class)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
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
     /**
66 65
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Service/Provider/LoggerServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     public function register(): void
68 68
     {
69
-        $this->app->bind(LoggerInterface::class, function (ContainerInterface $app) {
69
+        $this->app->bind(LoggerInterface::class, function(ContainerInterface $app) {
70 70
             return new Logger(
71 71
                 new LoggerConfiguration($app->get(Config::class)->get('logging', []))
72 72
             );
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
  * class LoggerServiceProvider
59 59
  * @package Platine\Framework\Service\Provider
60 60
  */
61
-class LoggerServiceProvider extends ServiceProvider
62
-{
61
+class LoggerServiceProvider extends ServiceProvider {
63 62
 
64 63
     /**
65 64
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Service/ServiceProvider.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * class ServiceProvider
54 54
  * @package Platine\Framework\Service
55 55
  */
56
-class ServiceProvider
57
-{
56
+class ServiceProvider {
58 57
 
59 58
     /**
60 59
      * The Application instance
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
      * Create new instance
67 66
      * @param AbstractApplication $app
68 67
      */
69
-    public function __construct(AbstractApplication $app)
70
-    {
68
+    public function __construct(AbstractApplication $app) {
71 69
         $this->app = $app;
72 70
     }
73 71
 
Please login to merge, or discard this patch.
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.