Passed
Push — develop ( c77ba7...d3c53a )
by nguereza
04:05
created
src/Migration/Seed/AbstractSeed.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class AbstractSeed
54 54
  * @package Platine\Framework\Migration\Seed
55 55
  */
56
-abstract class AbstractSeed extends QueryBuilder
57
-{
56
+abstract class AbstractSeed extends QueryBuilder {
58 57
     /**
59 58
      * Run the seed
60 59
      * @return void
Please login to merge, or discard this patch.
src/Kernel/HttpKernel.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
  * @package Platine\Framework\Kernel
67 67
  * @template T
68 68
  */
69
-class HttpKernel extends BaseKernel implements RequestHandlerInterface
70
-{
69
+class HttpKernel extends BaseKernel implements RequestHandlerInterface {
71 70
     /**
72 71
      * The router instance
73 72
      * @var Router
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
      * @return $this
109 109
      */
110 110
     public function use(
111
-        string|MiddlewareInterface|RequestHandlerInterface|callable $middleware
111
+        string | MiddlewareInterface | RequestHandlerInterface | callable $middleware
112 112
     ): self {
113 113
         $this->middlewares[] = $this->middlewareResolver->resolve($middleware);
114 114
 
Please login to merge, or discard this patch.
src/Env/Env.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * @class Env
53 53
  * @package Platine\Framework\Env
54 54
  */
55
-class Env
56
-{
55
+class Env {
57 56
     /**
58 57
      * Get the environment variable by its key/name.
59 58
      * @param string $key
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,12 +115,12 @@
 block discarded – undo
115 115
         int|array $options = 0
116 116
     ): mixed {
117 117
         static $special = [
118
-          'true' => true,
119
-          'TRUE' => true,
120
-          'false' => false,
121
-          'FALSE' => false,
122
-          'null' => null,
123
-          'NULL' => null,
118
+            'true' => true,
119
+            'TRUE' => true,
120
+            'false' => false,
121
+            'FALSE' => false,
122
+            'null' => null,
123
+            'NULL' => null,
124 124
         ];
125 125
 
126 126
         $valueResolved = static::resolveReference($value);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         string $key,
67 67
         mixed $default = null,
68 68
         ?string $filter = null,
69
-        int|array $options = 0
69
+        int | array $options = 0
70 70
     ): mixed {
71 71
         if ($filter !== null) {
72 72
             $filterMaps = [
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     protected static function prepareValue(
113 113
         string $value,
114 114
         ?int $filter = null,
115
-        int|array $options = 0
115
+        int | array $options = 0
116 116
     ): mixed {
117 117
         static $special = [
118 118
           'true' => true,
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             return $value;
149 149
         }
150 150
 
151
-        $valueResolved = preg_replace_callback('~\$\{(\w+)\}~', function ($m) {
151
+        $valueResolved = preg_replace_callback('~\$\{(\w+)\}~', function($m) {
152 152
             return (null === $ref = static::get($m[1], null)) ? $m[0] : $ref;
153 153
         }, $value);
154 154
 
Please login to merge, or discard this patch.
src/Pagination/ServerRequestUrlGenerator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class ServerRequestUrlGenerator
55 55
  * @package Platine\Framework\Pagination
56 56
  */
57
-class ServerRequestUrlGenerator implements UrlGeneratorInterface
58
-{
57
+class ServerRequestUrlGenerator implements UrlGeneratorInterface {
59 58
     /**
60 59
      * The server request instance
61 60
      * @var ServerRequestInterface
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
      * @param ServerRequestInterface $request
80 79
      * @param string $queryName
81 80
      */
82
-    public function __construct(ServerRequestInterface $request, string $queryName)
83
-    {
81
+    public function __construct(ServerRequestInterface $request, string $queryName) {
84 82
         $this->request = $request;
85 83
         $this->queryVarName = $queryName;
86 84
 
Please login to merge, or discard this patch.
src/Service/Provider/EventServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
  * @class EventServiceProvider
58 58
  * @package Platine\Framework\Service\Provider
59 59
  */
60
-class EventServiceProvider extends ServiceProvider
61
-{
60
+class EventServiceProvider extends ServiceProvider {
62 61
     /**
63 62
      * {@inheritdoc}
64 63
      */
Please login to merge, or discard this patch.
src/Service/Provider/MigrationServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
64 64
  * @class MigrationServiceProvider
65 65
  * @package Platine\Framework\Service\Provider
66 66
  */
67
-class MigrationServiceProvider extends ServiceProvider
68
-{
67
+class MigrationServiceProvider extends ServiceProvider {
69 68
     /**
70 69
      * {@inheritdoc}
71 70
      */
Please login to merge, or discard this patch.
src/Service/Provider/TemplateServiceProvider.php 2 patches
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
      * {@inheritdoc}
68 67
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     {
71 71
         $config = $this->app->get(Config::class)->get('template', []);
72 72
 
73
-        $this->app->bind(Configuration::class, function (ContainerInterface $app) use ($config) {
73
+        $this->app->bind(Configuration::class, function(ContainerInterface $app) use ($config) {
74 74
             return new Configuration($config);
75 75
         });
76 76
         $this->app->bind(AbstractCache::class, $config['cache_driver'] ?? NullCache::class);
Please login to merge, or discard this patch.
src/Service/Provider/SecurityServiceProvider.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @class SecurityServiceProvider
56 56
  * @package Platine\Framework\Service\Provider
57 57
  */
58
-class SecurityServiceProvider extends ServiceProvider
59
-{
58
+class SecurityServiceProvider extends ServiceProvider {
60 59
     /**
61 60
      * {@inheritdoc}
62 61
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 $app->get(Config::class)->get('security.policies', [])
79 79
             );
80 80
         });
81
-          $this->app->bind(SecurityPolicyMiddleware::class);
81
+            $this->app->bind(SecurityPolicyMiddleware::class);
82 82
 
83 83
         // CSRF
84 84
         $this->app->bind(CsrfStorageInterface::class, CsrfSessionStorage::class);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     public function register(): void
72 72
     {
73 73
         // Security policy
74
-        $this->app->bind(SecurityPolicy::class, function (ContainerInterface $app) {
74
+        $this->app->bind(SecurityPolicy::class, function(ContainerInterface $app) {
75 75
             return new SecurityPolicy(
76 76
                 $app->get(Config::class),
77 77
                 $app->get(Router::class),
Please login to merge, or discard this patch.
src/Service/Provider/SessionServiceProvider.php 2 patches
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
      * {@inheritdoc}
67 66
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,10 +67,10 @@
 block discarded – undo
67 67
      */
68 68
     public function register(): void
69 69
     {
70
-        $this->app->bind(Configuration::class, function (ContainerInterface $app) {
70
+        $this->app->bind(Configuration::class, function(ContainerInterface $app) {
71 71
             return new Configuration($app->get(Config::class)->get('session', []));
72 72
         });
73
-        $this->app->bind(SessionHandlerInterface::class, function (ContainerInterface $app) {
73
+        $this->app->bind(SessionHandlerInterface::class, function(ContainerInterface $app) {
74 74
             return new LocalStorage(
75 75
                 $app->get(Filesystem::class),
76 76
                 $app->get(Configuration::class)
Please login to merge, or discard this patch.