@@ -8,7 +8,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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(); |
@@ -120,7 +120,7 @@ |
||
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(); |