Passed
Push — 0.8.x ( dbd8e8...e4bd6c )
by Alexander
06:37 queued 03:14
created
src/components/Cache/Store/RedisStore.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     {
94 94
         $results = [];
95 95
         
96
-        $values = $this->connection()->mget(array_map(function ($key) {
96
+        $values = $this->connection()->mget(array_map(function($key) {
97 97
             return $this->prefix.$key;
98 98
         }, $keys));
99 99
         
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * 
156 156
      * @return int|bool
157 157
      */
158
-    public function increment(string $key, mixed $value = 1): int|bool
158
+    public function increment(string $key, mixed $value = 1): int | bool
159 159
     {
160 160
         return $this->connection()->incrby($this->prefix.$key, $value);
161 161
     }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * 
169 169
      * @return int|bool
170 170
      */
171
-    public function decrement(string $key, mixed $value = 1): int|bool
171
+    public function decrement(string $key, mixed $value = 1): int | bool
172 172
     {
173 173
         return $this->connection()->decrby($this->prefix.$key, $value);
174 174
     }
Please login to merge, or discard this patch.
src/components/Pipeline/Pipeline.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
      */
150 150
     protected function call(): Closure
151 151
     {
152
-        return function ($stack, $pipe) {
153
-            return function ($passable) use ($stack, $pipe) {
152
+        return function($stack, $pipe) {
153
+            return function($passable) use ($stack, $pipe) {
154 154
                 try {
155 155
                     if (is_callable($pipe)) {
156 156
                         return $pipe($passable, $stack);
@@ -203,10 +203,10 @@  discard block
 block discarded – undo
203 203
      */
204 204
     protected function prepareDestination(Closure $destination): Closure
205 205
     {
206
-        return function ($passable) use ($destination) {
206
+        return function($passable) use ($destination) {
207 207
             try {
208 208
                 return $destination($passable);
209
-            } catch(Throwable $e)  {
209
+            } catch (Throwable $e) {
210 210
                 return $this->handleException($passable, $e);
211 211
             }
212 212
         };
Please login to merge, or discard this patch.
src/components/Session/Handlers/CookieSessionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,6 +162,6 @@
 block discarded – undo
162 162
      */
163 163
     public function setRequest(Request $request): void
164 164
     {
165
-        $this->request =  $request;
165
+        $this->request = $request;
166 166
     }
167 167
 }
168 168
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Session/Handlers/DatabaseSessionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@
 block discarded – undo
229 229
             return $payload;
230 230
         }
231 231
 
232
-        return take($payload, function (&$payload) {
232
+        return take($payload, function(&$payload) {
233 233
             // Pending calling the user ID using the auth system
234 234
 
235 235
             if ($this->container->bound('request')) {
Please login to merge, or discard this patch.
src/components/Session/Handlers/FileSessionHandler.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -149,10 +149,10 @@
 block discarded – undo
149 149
     public function gc($lifetime): int
150 150
     {
151 151
         $files = Finder::create()
152
-                       ->in($this->path)
153
-                       ->files()
154
-                       ->ignoreDotFiles(true)
155
-                       ->date('<= now - '.$lifetime.' seconds');
152
+                        ->in($this->path)
153
+                        ->files()
154
+                        ->ignoreDotFiles(true)
155
+                        ->date('<= now - '.$lifetime.' seconds');
156 156
 
157 157
         $countSessions = 0;
158 158
 
Please login to merge, or discard this patch.
src/components/Session/SessionServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $this->registerSessionManager();
42 42
         $this->registerSessionDriver();
43 43
 
44
-        $this->app->singleton(StartSession::class, function ($app) {
44
+        $this->app->singleton(StartSession::class, function($app) {
45 45
             return new StartSession($app->make(SessionManager::class), fn () => $app->make(CacheFactory::class));
46 46
         });
47 47
     }
Please login to merge, or discard this patch.
src/components/Session/SessionManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     protected function createDatabaseDriver()
105 105
     {
106 106
         $table    = $this->config->get('session.table');
107
-        $lifetime = $this->config->get('session.lifetime') ;
107
+        $lifetime = $this->config->get('session.lifetime');
108 108
 
109 109
         return $this->buildSession(new DatabaseSessionHandler(
110 110
             $this->getDatabaseConnection(),
Please login to merge, or discard this patch.
src/components/Session/Store.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,9 +160,9 @@
 block discarded – undo
160 160
     {
161 161
         if ($data = $this->handler->read($this->getId())) {
162 162
             if ($this->serialization === 'json') {
163
-               $data = json_decode($this->prepareForUnserialize($data), true);
163
+                $data = json_decode($this->prepareForUnserialize($data), true);
164 164
             } else {
165
-               $data = @unserialize($this->prepareForUnserialize($data));
165
+                $data = @unserialize($this->prepareForUnserialize($data));
166 166
             }
167 167
             
168 168
             if ($data !== false && is_array($data)) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
      */
322 322
     public function ageFlashData(): void
323 323
     {
324
-        foreach($this->get('_flash.old', []) as $old) {
324
+        foreach ($this->get('_flash.old', []) as $old) {
325 325
             $this->erase($old);
326 326
         }
327 327
 
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
     {
383 383
         $placeholder = new stdClass;
384 384
         
385
-        return ! collect(is_array($key) ? $key : func_get_args())->contains(function ($key) use ($placeholder) {
385
+        return ! collect(is_array($key) ? $key : func_get_args())->contains(function($key) use ($placeholder) {
386 386
             return $this->get($key, $placeholder) === $placeholder;
387 387
         });
388 388
     }
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      */
547 547
     public function regenerate($destroy = false): callable
548 548
     {
549
-        return take($this->migrate($destroy), function () {
549
+        return take($this->migrate($destroy), function() {
550 550
             $this->regenerateToken();
551 551
         });
552 552
     }
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
      * 
575 575
      * @return string|null
576 576
      */
577
-    public function previousUrl(): string|null
577
+    public function previousUrl(): string | null
578 578
     {
579 579
         return $this->get('_previous.url');
580 580
     }
Please login to merge, or discard this patch.
src/components/Session/Middleware/StartSession.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function getSession(Request $request)
81 81
     {
82
-        return take($this->manager->driver(), function ($session) use ($request) {
82
+        return take($this->manager->driver(), function($session) use ($request) {
83 83
             $session->setId($request->cookies->get($session->getName()));
84 84
         });
85 85
     }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     protected function startSession(Request $request, $session)
124 124
     {
125
-        return take($session, function ($session) use ($request) {
125
+        return take($session, function($session) use ($request) {
126 126
             $session->setRequestOnHandler($request);
127 127
             
128 128
             $session->start();
Please login to merge, or discard this patch.