Completed
Branch master (c87161)
by Julián
02:33
created
tests/Middleware/SessionWareTest.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
 namespace Jgut\Middleware\Sessionware\Tests;
11 11
 
12 12
 use Jgut\Middleware\SessionWare;
13
-use Zend\Diactoros\ServerRequestFactory;
14 13
 use Zend\Diactoros\Response;
14
+use Zend\Diactoros\ServerRequestFactory;
15 15
 
16 16
 /**
17 17
  * PHP session handler middleware test class.
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $this->request = ServerRequestFactory::fromGlobals();
51 51
         $this->response = new Response;
52
-        $this->callback = function ($request, $response) {
52
+        $this->callback = function($request, $response) {
53 53
             return $response;
54 54
         };
55 55
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function testSessionSavePathFromFunction()
151 151
     {
152
-        $tmpPath = sys_get_temp_dir() . '/SessionWareSession';
152
+        $tmpPath = sys_get_temp_dir().'/SessionWareSession';
153 153
 
154 154
         session_save_path($tmpPath);
155 155
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function testSessionSavePathFromParameter()
168 168
     {
169
-        $tmpPath = sys_get_temp_dir() . '/SessionWareSession';
169
+        $tmpPath = sys_get_temp_dir().'/SessionWareSession';
170 170
 
171 171
         $middleware = new SessionWare(['name' => 'SessionWareSession', 'savePath' => $tmpPath]);
172 172
 
Please login to merge, or discard this patch.
src/SessionWare.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         } elseif ($this->sessionName !== 'PHPSESSID'
219 219
             && $this->sessionName !== array_pop(explode(DIRECTORY_SEPARATOR, $savePath))
220 220
         ) {
221
-            $savePath .= DIRECTORY_SEPARATOR . $this->sessionName;
221
+            $savePath .= DIRECTORY_SEPARATOR.$this->sessionName;
222 222
         }
223 223
 
224 224
         if (!@mkdir($savePath, 0775, true) && (!is_dir($savePath) || !is_writable($savePath))) {
@@ -292,11 +292,11 @@  discard block
 block discarded – undo
292 292
         ];
293 293
 
294 294
         if (trim($this->settings['path']) !== '') {
295
-            $cookieParams[] = 'path=' . $this->settings['path'];
295
+            $cookieParams[] = 'path='.$this->settings['path'];
296 296
         }
297 297
 
298 298
         if (trim($this->settings['domain']) !== '') {
299
-            $cookieParams[] = 'domain=' . $this->settings['domain'];
299
+            $cookieParams[] = 'domain='.$this->settings['domain'];
300 300
         }
301 301
 
302 302
         if ((bool) $this->settings['secure']) {
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
  * @author Julián Gutiérrez <[email protected]>
8 8
  */
9 9
 
10
-require __DIR__ . '/../vendor/autoload.php';
10
+require __DIR__.'/../vendor/autoload.php';
Please login to merge, or discard this patch.