Completed
Pull Request — 6.0 (#2115)
by nhzex
06:13
created
src/think/response/File.php 1 patch
Spacing   +7 added lines, -7 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\response;
14 14
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     protected function output($data)
36 36
     {
37 37
         if (!$this->isContent && !is_file($data)) {
38
-            throw new Exception('file not exists:' . $data);
38
+            throw new Exception('file not exists:'.$data);
39 39
         }
40 40
 
41 41
         ob_end_clean();
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
 
57 57
         $this->header['Pragma']                    = 'public';
58 58
         $this->header['Content-Type']              = $mimeType ?: 'application/octet-stream';
59
-        $this->header['Cache-control']             = 'max-age=' . $this->expire;
60
-        $this->header['Content-Disposition']       = 'attachment; filename="' . $name . '"';
59
+        $this->header['Cache-control']             = 'max-age='.$this->expire;
60
+        $this->header['Content-Disposition']       = 'attachment; filename="'.$name.'"';
61 61
         $this->header['Content-Length']            = $size;
62 62
         $this->header['Content-Transfer-Encoding'] = 'binary';
63
-        $this->header['Expires']                   = gmdate("D, d M Y H:i:s", time() + $this->expire) . ' GMT';
63
+        $this->header['Expires']                   = gmdate("D, d M Y H:i:s", time() + $this->expire).' GMT';
64 64
 
65
-        $this->lastModified(gmdate('D, d M Y H:i:s', time()) . ' GMT');
65
+        $this->lastModified(gmdate('D, d M Y H:i:s', time()).' GMT');
66 66
 
67 67
         return $this->isContent ? $data : file_get_contents($data);
68 68
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $this->name = $filename;
133 133
 
134 134
         if ($extension && false === strpos($filename, '.')) {
135
-            $this->name .= '.' . pathinfo($this->data, PATHINFO_EXTENSION);
135
+            $this->name .= '.'.pathinfo($this->data, PATHINFO_EXTENSION);
136 136
         }
137 137
 
138 138
         return $this;
Please login to merge, or discard this patch.
src/think/response/Jsonp.php 1 patch
Spacing   +2 added lines, -2 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\response;
14 14
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 throw new \InvalidArgumentException(json_last_error_msg());
59 59
             }
60 60
 
61
-            $data = $handler . '(' . $data . ');';
61
+            $data = $handler.'('.$data.');';
62 62
 
63 63
             return $data;
64 64
         } catch (\Exception $e) {
Please login to merge, or discard this patch.
src/think/event/HttpRun.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\event;
14 14
 
Please login to merge, or discard this patch.
src/think/event/LogWrite.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\event;
14 14
 
Please login to merge, or discard this patch.
src/think/event/AppInit.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\event;
14 14
 
Please login to merge, or discard this patch.
src/think/exception/FileException.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\exception;
14 14
 
Please login to merge, or discard this patch.
src/think/exception/ValidateException.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\exception;
14 14
 
Please login to merge, or discard this patch.
src/think/exception/HttpResponseException.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\exception;
14 14
 
Please login to merge, or discard this patch.
src/think/exception/HttpException.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\exception;
14 14
 
Please login to merge, or discard this patch.