Test Failed
Push — develop ( afcd85...c5c862 )
by nguereza
03:41
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/Http/Middleware/ErrorHandlerMiddleware.php 2 patches
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.
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.
src/Service/Provider/TemplateServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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('template', []));
74 74
         });
75 75
         $this->app->bind(AbstractCache::class, NullCache::class);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
  * @class TemplateServiceProvider
62 62
  * @package Platine\Framework\Service\Provider
63 63
  */
64
-class TemplateServiceProvider extends ServiceProvider
65
-{
64
+class TemplateServiceProvider extends ServiceProvider {
66 65
 
67 66
     /**
68 67
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Service/Provider/CacheServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      */
71 71
     public function register(): void
72 72
     {
73
-        $this->app->bind(Configuration::class, function (ContainerInterface $app) {
73
+        $this->app->bind(Configuration::class, function(ContainerInterface $app) {
74 74
             return new Configuration($app->get(Config::class)->get('cache', []));
75 75
         });
76 76
         $this->app->bind(AdapterInterface::class, LocalAdapter::class);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@
 block discarded – undo
63 63
  * @class CacheServiceProvider
64 64
  * @package Platine\Framework\Service\Provider
65 65
  */
66
-class CacheServiceProvider extends ServiceProvider
67
-{
66
+class CacheServiceProvider extends ServiceProvider {
68 67
 
69 68
     /**
70 69
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Service/Provider/LangServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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->bind(StorageInterface::class, MemoryStorage::class);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
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
     /**
68 67
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Helper/functions.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
      *  application instance will be returned
55 55
      * @return mixed
56 56
      */
57
-    function app(?string $identifier = null)
58
-    {
57
+    function app(?string $identifier = null) {
59 58
         $app = Application::getInstance();
60 59
 
61 60
         return $identifier ? $app->get($identifier) : $app;
Please login to merge, or discard this patch.
src/Service/Provider/SessionServiceProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,11 +71,11 @@
 block discarded – undo
71 71
     public function register(): void
72 72
     {
73 73
         $cfg = $this->app->get(Config::class)->get('session', []);
74
-        $this->app->bind(Configuration::class, function (ContainerInterface $app) use ($cfg) {
74
+        $this->app->bind(Configuration::class, function(ContainerInterface $app) use ($cfg) {
75 75
             return new Configuration($cfg);
76 76
         });
77 77
         $this->app->bind(Filesystem::class);
78
-        $this->app->bind(SessionHandlerInterface::class, function (ContainerInterface $app) {
78
+        $this->app->bind(SessionHandlerInterface::class, function(ContainerInterface $app) {
79 79
             return new LocalStorage(
80 80
                 $app->get(Filesystem::class),
81 81
                 $app->get(Configuration::class)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
  * @class SessionServiceProvider
61 61
  * @package Platine\Framework\Service\Provider
62 62
  */
63
-class SessionServiceProvider extends ServiceProvider
64
-{
63
+class SessionServiceProvider extends ServiceProvider {
65 64
 
66 65
     /**
67 66
      * {@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
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      */
68 68
     public function register(): void
69 69
     {
70
-        $this->app->bind(LoggerInterface::class, function (ContainerInterface $app) {
70
+        $this->app->bind(LoggerInterface::class, function(ContainerInterface $app) {
71 71
             $cfg = new LoggerConfiguration(
72 72
                 $app->get(Config::class)->get('logging', [])
73 73
             );
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 LoggerServiceProvider
60 60
  * @package Platine\Framework\Service\Provider
61 61
  */
62
-class LoggerServiceProvider extends ServiceProvider
63
-{
62
+class LoggerServiceProvider extends ServiceProvider {
64 63
 
65 64
     /**
66 65
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Demo/Form/Validator/AuthValidator.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
     public function setRules(): void
33 33
     {
34 34
         $this->validator->addRules('username', [
35
-           new NotEmpty(),
36
-           new MinLength(3)
35
+            new NotEmpty(),
36
+            new MinLength(3)
37 37
         ]);
38 38
 
39 39
         $this->validator->addRules('password', [
40
-           new NotEmpty(),
40
+            new NotEmpty(),
41 41
         ]);
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
  * @class AuthValidator
58 58
  * @package Platine\Framework\Demo\Form\Validator
59 59
  */
60
-class AuthValidator extends AbstractValidator
61
-{
60
+class AuthValidator extends AbstractValidator {
62 61
     /**
63 62
      * The parameter instance
64 63
      * @var AuthParam
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
      * @param AuthParam $param
71 70
      * @param Validator|null $validator
72 71
      */
73
-    public function __construct(AuthParam $param, ?Validator $validator = null)
74
-    {
72
+    public function __construct(AuthParam $param, ?Validator $validator = null) {
75 73
         parent::__construct($validator);
76 74
         $this->param = $param;
77 75
     }
Please login to merge, or discard this patch.