Completed
Push — 6.0 ( c2a921...a1c09e )
by liu
04:38
created
src/think/session/driver/Redis.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: liu21st <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\session\driver;
14 14
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function read(string $sessID): string
90 90
     {
91
-        return (string) $this->handler->get($this->config['prefix'] . $sessID);
91
+        return (string) $this->handler->get($this->config['prefix'].$sessID);
92 92
     }
93 93
 
94 94
     /**
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
     public function write(string $sessID, string $data): bool
102 102
     {
103 103
         if ($this->config['expire'] > 0) {
104
-            $result = $this->handler->setex($this->config['prefix'] . $sessID, $this->config['expire'], $data);
104
+            $result = $this->handler->setex($this->config['prefix'].$sessID, $this->config['expire'], $data);
105 105
         } else {
106
-            $result = $this->handler->set($this->config['prefix'] . $sessID, $data);
106
+            $result = $this->handler->set($this->config['prefix'].$sessID, $data);
107 107
         }
108 108
 
109 109
         return $result ? true : false;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function delete(string $sessID): bool
119 119
     {
120
-        return $this->handler->del($this->config['prefix'] . $sessID) > 0;
120
+        return $this->handler->del($this->config['prefix'].$sessID) > 0;
121 121
     }
122 122
 
123 123
 }
Please login to merge, or discard this patch.