Passed
Pull Request — 6.0 (#2238)
by yun
06:03
created
src/think/facade/Log.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\facade;
14 14
 
Please login to merge, or discard this patch.
src/think/facade/Cookie.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\facade;
14 14
 
Please login to merge, or discard this patch.
src/think/Middleware.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: Slince <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think;
14 14
 
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
     public function pipeline(string $type = 'global')
134 134
     {
135 135
         return (new Pipeline())
136
-            ->through(array_map(function ($middleware) {
137
-                return function ($request, $next) use ($middleware) {
136
+            ->through(array_map(function($middleware) {
137
+                return function($request, $next) use ($middleware) {
138 138
                     [$call, $params] = $middleware;
139 139
                     if (is_array($call) && is_string($call[0])) {
140 140
                         $call = [$this->app->make($call[0]), $call[1]];
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     protected function sortMiddleware(array $middlewares)
230 230
     {
231 231
         $priority = $this->app->config->get('middleware.priority', []);
232
-        uasort($middlewares, function ($a, $b) use ($priority) {
232
+        uasort($middlewares, function($a, $b) use ($priority) {
233 233
             $aPriority = $this->getMiddlewarePriority($priority, $a);
234 234
             $bPriority = $this->getMiddlewarePriority($priority, $b);
235 235
             return $bPriority - $aPriority;
Please login to merge, or discard this patch.
src/think/service/ValidateService.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\service;
14 14
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 {
23 23
     public function boot()
24 24
     {
25
-        Validate::maker(function (Validate $validate) {
25
+        Validate::maker(function(Validate $validate) {
26 26
             $validate->setLang($this->app->lang);
27 27
             $validate->setDb($this->app->db);
28 28
             $validate->setRequest($this->app->request);
Please login to merge, or discard this patch.
src/think/service/ModelService.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\service;
14 14
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         Model::setDb($this->app->db);
26 26
         Model::setEvent($this->app->event);
27 27
         Model::setInvoker([$this->app, 'invoke']);
28
-        Model::maker(function (Model $model) {
28
+        Model::maker(function(Model $model) {
29 29
             $config = $this->app->config;
30 30
 
31 31
             $isAutoWriteTimestamp = $model->getAutoWriteTimestamp();
Please login to merge, or discard this patch.
src/think/service/PaginatorService.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: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\service;
14 14
 
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function boot()
32 32
     {
33
-        Paginator::maker(function (...$args) {
33
+        Paginator::maker(function(...$args) {
34 34
             return $this->app->make(Paginator::class, $args, true);
35 35
         });
36 36
 
37
-        Paginator::currentPathResolver(function () {
37
+        Paginator::currentPathResolver(function() {
38 38
             return $this->app->request->baseUrl();
39 39
         });
40 40
 
41
-        Paginator::currentPageResolver(function ($varPage = 'page') {
41
+        Paginator::currentPageResolver(function($varPage = 'page') {
42 42
             $page = $this->app->request->param($varPage);
43 43
 
44 44
             if (filter_var($page, FILTER_VALIDATE_INT) !== false && (int) $page >= 1) {
Please login to merge, or discard this patch.
src/think/validate/ValidateRule.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\validate;
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
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function init(App $app)
32 32
     {
33
-        $file = $app->getRootPath() . 'vendor/services.php';
33
+        $file = $app->getRootPath().'vendor/services.php';
34 34
 
35 35
         $services = $this->services;
36 36
 
Please login to merge, or discard this patch.