Completed
Push — 6.0 ( 5764c5...4665ad )
by yun
05:02
created
src/think/Config.php 1 patch
Spacing   +3 added lines, -3 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;
14 14
 
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
     {
65 65
         if (is_file($file)) {
66 66
             $filename = $file;
67
-        } elseif (is_file($this->path . $file . $this->ext)) {
68
-            $filename = $this->path . $file . $this->ext;
67
+        } elseif (is_file($this->path.$file.$this->ext)) {
68
+            $filename = $this->path.$file.$this->ext;
69 69
         }
70 70
 
71 71
         if (isset($filename)) {
Please login to merge, or discard this patch.
src/think/filesystem/CacheStore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\filesystem;
14 14
 
Please login to merge, or discard this patch.
src/think/filesystem/Driver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         $stream = fopen($file->getRealPath(), 'r');
87 87
 
88 88
         $result = $this->putStream(
89
-            $path = trim($path . '/' . $name, '/'), $stream, $options
89
+            $path = trim($path.'/'.$name, '/'), $stream, $options
90 90
         );
91 91
 
92 92
         if (is_resource($stream)) {
Please login to merge, or discard this patch.
src/think/facade/Console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\facade;
14 14
 
Please login to merge, or discard this patch.
src/think/cache/driver/Redis.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             $this->handler = new \Redis;
56 56
 
57 57
             if ($this->options['persistent']) {
58
-                $this->handler->pconnect($this->options['host'], (int) $this->options['port'], $this->options['timeout'], 'persistent_id_' . $this->options['select']);
58
+                $this->handler->pconnect($this->options['host'], (int) $this->options['port'], $this->options['timeout'], 'persistent_id_'.$this->options['select']);
59 59
             } else {
60 60
                 $this->handler->connect($this->options['host'], (int) $this->options['port'], $this->options['timeout']);
61 61
             }
Please login to merge, or discard this patch.
src/think/cache/TagSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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\cache;
14 14
 
Please login to merge, or discard this patch.
src/think/session/driver/Memcached.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function read(string $sessID): string
91 91
     {
92
-        return (string) $this->handler->get($this->config['prefix'] . $sessID);
92
+        return (string) $this->handler->get($this->config['prefix'].$sessID);
93 93
     }
94 94
 
95 95
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function write(string $sessID, string $data): bool
103 103
     {
104
-        return $this->handler->set($this->config['prefix'] . $sessID, $data, $this->config['expire']);
104
+        return $this->handler->set($this->config['prefix'].$sessID, $data, $this->config['expire']);
105 105
     }
106 106
 
107 107
     /**
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function delete(string $sessID): bool
114 114
     {
115
-        return $this->handler->delete($this->config['prefix'] . $sessID);
115
+        return $this->handler->delete($this->config['prefix'].$sessID);
116 116
     }
117 117
 
118 118
 }
Please login to merge, or discard this patch.
src/think/session/driver/Memcache.php 1 patch
Spacing   +5 added lines, -6 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
 
@@ -62,8 +62,7 @@  discard block
 block discarded – undo
62 62
         foreach ($hosts as $i => $host) {
63 63
             $port = $ports[$i] ?? $ports[0];
64 64
             $this->config['timeout'] > 0 ?
65
-            $this->handler->addServer($host, (int) $port, $this->config['persistent'], 1, $this->config['timeout']) :
66
-            $this->handler->addServer($host, (int) $port, $this->config['persistent'], 1);
65
+            $this->handler->addServer($host, (int) $port, $this->config['persistent'], 1, $this->config['timeout']) : $this->handler->addServer($host, (int) $port, $this->config['persistent'], 1);
67 66
         }
68 67
 
69 68
         return true;
@@ -77,7 +76,7 @@  discard block
 block discarded – undo
77 76
      */
78 77
     public function read(string $sessID): string
79 78
     {
80
-        return (string) $this->handler->get($this->config['prefix'] . $sessID);
79
+        return (string) $this->handler->get($this->config['prefix'].$sessID);
81 80
     }
82 81
 
83 82
     /**
@@ -89,7 +88,7 @@  discard block
 block discarded – undo
89 88
      */
90 89
     public function write(string $sessID, string $data): bool
91 90
     {
92
-        return $this->handler->set($this->config['prefix'] . $sessID, $data, 0, $this->config['expire']);
91
+        return $this->handler->set($this->config['prefix'].$sessID, $data, 0, $this->config['expire']);
93 92
     }
94 93
 
95 94
     /**
@@ -100,7 +99,7 @@  discard block
 block discarded – undo
100 99
      */
101 100
     public function delete(string $sessID): bool
102 101
     {
103
-        return $this->handler->delete($this->config['prefix'] . $sessID);
102
+        return $this->handler->delete($this->config['prefix'].$sessID);
104 103
     }
105 104
 
106 105
 }
Please login to merge, or discard this patch.
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
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function read(string $sessID): string
88 88
     {
89
-        return (string) $this->handler->get($this->config['prefix'] . $sessID);
89
+        return (string) $this->handler->get($this->config['prefix'].$sessID);
90 90
     }
91 91
 
92 92
     /**
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
     public function write(string $sessID, string $data): bool
100 100
     {
101 101
         if ($this->config['expire'] > 0) {
102
-            $result = $this->handler->setex($this->config['prefix'] . $sessID, $this->config['expire'], $data);
102
+            $result = $this->handler->setex($this->config['prefix'].$sessID, $this->config['expire'], $data);
103 103
         } else {
104
-            $result = $this->handler->set($this->config['prefix'] . $sessID, $data);
104
+            $result = $this->handler->set($this->config['prefix'].$sessID, $data);
105 105
         }
106 106
 
107 107
         return $result ? true : false;
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function delete(string $sessID): bool
117 117
     {
118
-        return $this->handler->delete($this->config['prefix'] . $sessID) > 0;
118
+        return $this->handler->delete($this->config['prefix'].$sessID) > 0;
119 119
     }
120 120
 
121 121
 }
Please login to merge, or discard this patch.