Completed
Push — master ( f5ce4e...0200f5 )
by Julián
11:25 queued 09:03
created
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.
src/SessionWare.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
             $savePathParts = explode(DIRECTORY_SEPARATOR, $savePath);
219 219
             if ($this->sessionName !== 'PHPSESSID' && $this->sessionName !== array_pop($savePathParts)) {
220
-                $savePath .= DIRECTORY_SEPARATOR . $this->sessionName;
220
+                $savePath .= DIRECTORY_SEPARATOR.$this->sessionName;
221 221
             }
222 222
         }
223 223
 
@@ -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/Middleware/SessionWareTest.php 1 patch
Spacing   +5 added lines, -5 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
     }
@@ -83,12 +83,12 @@  discard block
 block discarded – undo
83 83
         );
84 84
 
85 85
         $sessionHolder = new \stdClass();
86
-        $middleware->addListener('pre.session_timeout', function ($sessionId) use ($sessionHolder) {
86
+        $middleware->addListener('pre.session_timeout', function($sessionId) use ($sessionHolder) {
87 87
             $sessionHolder->id = $sessionId;
88 88
         });
89 89
 
90 90
         $assert = $this;
91
-        $middleware->addListener('post.session_timeout', function ($sessionId) use ($assert, $sessionHolder) {
91
+        $middleware->addListener('post.session_timeout', function($sessionId) use ($assert, $sessionHolder) {
92 92
             $assert::assertNotNull($sessionHolder->id);
93 93
             $assert::assertNotEquals($sessionHolder->id, $sessionId);
94 94
         });
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     public function testSessionSavePathFromFunction()
180 180
     {
181
-        $tmpPath = sys_get_temp_dir() . '/SessionWareSession';
181
+        $tmpPath = sys_get_temp_dir().'/SessionWareSession';
182 182
 
183 183
         session_save_path($tmpPath);
184 184
 
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     public function testSessionSavePathFromParameter()
197 197
     {
198
-        $tmpPath = sys_get_temp_dir() . '/SessionWareSession';
198
+        $tmpPath = sys_get_temp_dir().'/SessionWareSession';
199 199
 
200 200
         $middleware = new SessionWare(['name' => 'SessionWareSession', 'savePath' => $tmpPath]);
201 201
 
Please login to merge, or discard this patch.