Completed
Pull Request — 6.0 (#2162)
by
unknown
11:18
created
src/think/View.php 2 patches
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;
14 14
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function fetch(string $template = '', array $vars = []): string
88 88
     {
89
-        return $this->getContent(function () use ($vars, $template) {
89
+        return $this->getContent(function() use ($vars, $template) {
90 90
             $this->engine()->fetch($template, array_merge($this->data, $vars));
91 91
         });
92 92
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function display(string $content, array $vars = []): string
102 102
     {
103
-        return $this->getContent(function () use ($vars, $content) {
103
+        return $this->getContent(function() use ($vars, $content) {
104 104
             $this->engine()->display($content, array_merge($this->data, $vars));
105 105
         });
106 106
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         // 渲染输出
121 121
         try {
122 122
             $callback();
123
-        }catch (\think\exception\HttpResponseException $e) {
123
+        } catch (\think\exception\HttpResponseException $e) {
124 124
             throw $e;
125 125
         } catch (\Exception $e) {
126 126
             ob_end_clean();
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         // 渲染输出
121 121
         try {
122 122
             $callback();
123
-        }catch (\think\exception\HttpResponseException $e) {
123
+        } catch (\think\exception\HttpResponseException $e) {
124 124
             throw $e;
125 125
         } catch (\Exception $e) {
126 126
             ob_end_clean();
Please login to merge, or discard this patch.