Completed
Push — 6.0 ( 54f609...174718 )
by yun
04:30
created
src/think/response/Jsonp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 throw new \InvalidArgumentException(json_last_error_msg());
58 58
             }
59 59
 
60
-            $data = $handler . '(' . $data . ');';
60
+            $data = $handler.'('.$data.');';
61 61
 
62 62
             return $data;
63 63
         } catch (\Exception $e) {
Please login to merge, or discard this patch.
src/think/response/File.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     protected function output($data)
35 35
     {
36 36
         if (!$this->isContent && !is_file($data)) {
37
-            throw new Exception('file not exists:' . $data);
37
+            throw new Exception('file not exists:'.$data);
38 38
         }
39 39
 
40 40
         ob_end_clean();
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
 
56 56
         $this->header['Pragma']                    = 'public';
57 57
         $this->header['Content-Type']              = $mimeType ?: 'application/octet-stream';
58
-        $this->header['Cache-control']             = 'max-age=' . $this->expire;
59
-        $this->header['Content-Disposition']       = 'attachment; filename="' . $name . '"';
58
+        $this->header['Cache-control']             = 'max-age='.$this->expire;
59
+        $this->header['Content-Disposition']       = 'attachment; filename="'.$name.'"';
60 60
         $this->header['Content-Length']            = $size;
61 61
         $this->header['Content-Transfer-Encoding'] = 'binary';
62
-        $this->header['Expires']                   = gmdate("D, d M Y H:i:s", time() + $this->expire) . ' GMT';
62
+        $this->header['Expires']                   = gmdate("D, d M Y H:i:s", time() + $this->expire).' GMT';
63 63
 
64
-        $this->lastModified(gmdate('D, d M Y H:i:s', time()) . ' GMT');
64
+        $this->lastModified(gmdate('D, d M Y H:i:s', time()).' GMT');
65 65
 
66 66
         return $this->isContent ? $data : file_get_contents($data);
67 67
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         $this->name = $filename;
132 132
 
133 133
         if ($extension && false === strpos($filename, '.')) {
134
-            $this->name .= '.' . pathinfo($this->data, PATHINFO_EXTENSION);
134
+            $this->name .= '.'.pathinfo($this->data, PATHINFO_EXTENSION);
135 135
         }
136 136
 
137 137
         return $this;
Please login to merge, or discard this patch.
src/think/initializer/Error.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: 麦当苗儿 <[email protected]> <http://zjzit.cn>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\initializer;
14 14
 
Please login to merge, or discard this patch.
src/think/initializer/BootService.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\initializer;
14 14
 
Please login to merge, or discard this patch.
src/think/initializer/RegisterService.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: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\initializer;
14 14
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function init(App $app)
33 33
     {
34
-        $file = $app->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'services.php';
34
+        $file = $app->getRootPath().'runtime'.DIRECTORY_SEPARATOR.'services.php';
35 35
 
36 36
         $services = $this->services;
37 37
 
Please login to merge, or discard this patch.
src/think/Console.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 // +----------------------------------------------------------------------
7 7
 // | Author: zhangyajun <[email protected]>
8 8
 // +----------------------------------------------------------------------
9
-declare (strict_types = 1);
9
+declare(strict_types=1);
10 10
 
11 11
 namespace think;
12 12
 
@@ -469,10 +469,10 @@  discard block
 block discarded – undo
469 469
     public function findNamespace(string $namespace): string
470 470
     {
471 471
         $allNamespaces = $this->getNamespaces();
472
-        $expr          = preg_replace_callback('{([^:]+|)}', function ($matches) {
473
-            return preg_quote($matches[1]) . '[^:]*';
472
+        $expr          = preg_replace_callback('{([^:]+|)}', function($matches) {
473
+            return preg_quote($matches[1]).'[^:]*';
474 474
         }, $namespace);
475
-        $namespaces = preg_grep('{^' . $expr . '}', $allNamespaces);
475
+        $namespaces = preg_grep('{^'.$expr.'}', $allNamespaces);
476 476
 
477 477
         if (empty($namespaces)) {
478 478
             $message = sprintf('There are no commands defined in the "%s" namespace.', $namespace);
@@ -509,13 +509,13 @@  discard block
 block discarded – undo
509 509
     {
510 510
         $allCommands = array_keys($this->commands);
511 511
 
512
-        $expr = preg_replace_callback('{([^:]+|)}', function ($matches) {
513
-            return preg_quote($matches[1]) . '[^:]*';
512
+        $expr = preg_replace_callback('{([^:]+|)}', function($matches) {
513
+            return preg_quote($matches[1]).'[^:]*';
514 514
         }, $name);
515 515
 
516
-        $commands = preg_grep('{^' . $expr . '}', $allCommands);
516
+        $commands = preg_grep('{^'.$expr.'}', $allCommands);
517 517
 
518
-        if (empty($commands) || count(preg_grep('{^' . $expr . '$}', $commands)) < 1) {
518
+        if (empty($commands) || count(preg_grep('{^'.$expr.'$}', $commands)) < 1) {
519 519
             if (false !== $pos = strrpos($name, ':')) {
520 520
                 $this->findNamespace(substr($name, 0, $pos));
521 521
             }
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
             }
710 710
         }
711 711
 
712
-        $alternatives = array_filter($alternatives, function ($lev) use ($threshold) {
712
+        $alternatives = array_filter($alternatives, function($lev) use ($threshold) {
713 713
             return $lev < 2 * $threshold;
714 714
         });
715 715
         asort($alternatives);
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
 
731 731
         foreach ($parts as $part) {
732 732
             if (count($namespaces)) {
733
-                $namespaces[] = end($namespaces) . ':' . $part;
733
+                $namespaces[] = end($namespaces).':'.$part;
734 734
             } else {
735 735
                 $namespaces[] = $part;
736 736
             }
Please login to merge, or discard this patch.
src/think/Session.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;
14 14
 
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
             $this->data = $data;
388 388
         }
389 389
 
390
-        $sessionId = md5(microtime(true) . uniqid());
390
+        $sessionId = md5(microtime(true).uniqid());
391 391
 
392 392
         $this->setId($sessionId);
393 393
         return $sessionId;
Please login to merge, or discard this patch.
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.