Completed
Push — master ( bc4816...d8de96 )
by
09:37 queued 06:45
created
app/Providers/IncludeManagerProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function boot()
14 14
     {
15
-        app()->singleton(IncludeManager::class, function ($app) {
15
+        app()->singleton(IncludeManager::class, function($app) {
16 16
             return new IncludeManager();
17 17
         });
18 18
     }
Please login to merge, or discard this patch.
app/Providers/EventServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         parent::boot($events);
30 30
 
31
-        if (! \Request::isMethod('GET')) {
31
+        if (!\Request::isMethod('GET')) {
32 32
             $events->subscribe(PushNotificationHandler::class);
33 33
         }
34 34
     }
Please login to merge, or discard this patch.
app/Providers/OAuthServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@
 block discarded – undo
12 12
 {
13 13
     public function boot()
14 14
     {
15
-        $this->app[DingoAuth::class]->extend('oauth', function ($app) {
15
+        $this->app[DingoAuth::class]->extend('oauth', function($app) {
16 16
             $provider = new OAuth2($app['oauth2-server.authorizer']->getChecker());
17 17
 
18
-            $provider->setUserResolver(function ($id) {
18
+            $provider->setUserResolver(function($id) {
19 19
                 Auth::loginUsingId($id);
20 20
 
21 21
                 return User::findOrFail($id);
22 22
             });
23 23
 
24
-            $provider->setClientResolver(function ($id) {
24
+            $provider->setClientResolver(function($id) {
25 25
                 //TODO: Logic to return a client by their ID.
26 26
             });
27 27
 
Please login to merge, or discard this patch.
app/Providers/ApiExceptionHandlerProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function boot()
15 15
     {
16 16
         $handler = app('api.exception');
17
-        $handler->register(function (ModelNotFoundException $exception) {
17
+        $handler->register(function(ModelNotFoundException $exception) {
18 18
             throw new NotFoundHttpException();
19 19
         });
20 20
     }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
      */
22 22
     public function register()
23 23
     {
24
-        $this->app->singleton('auto-correct', function () {
24
+        $this->app->singleton('auto-correct', function() {
25 25
              return new AutoCorrect();
26 26
          });
27 27
 
28
-        $this->app->singleton('markdown', function () {
28
+        $this->app->singleton('markdown', function() {
29 29
             return new Parsedown();
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $this->configureAPIRoute();
34 34
 
35
-        $router->group(['namespace' => $this->controller_namespace], function ($router) {
35
+        $router->group(['namespace' => $this->controller_namespace], function($router) {
36 36
             require app_path('Http/routes.php');
37 37
         });
38 38
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $api_router->group([
47 47
             'version'   => env('API_PREFIX'),
48 48
             'namespace' => $this->api_controller_namespace,
49
-        ], function ($router) {
49
+        ], function($router) {
50 50
             require app_path('Http/api_routes.php');
51 51
         });
52 52
     }
Please login to merge, or discard this patch.
app/OAuth/BaseGrant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     protected function getVerifyCredentialsCallback()
67 67
     {
68
-        if (is_null($this->callback) || ! is_callable($this->callback)) {
68
+        if (is_null($this->callback) || !is_callable($this->callback)) {
69 69
             throw new ServerErrorException('Null or non-callable callback set on Password grant');
70 70
         }
71 71
 
Please login to merge, or discard this patch.
app/Transformers/IncludeManager/Includable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function getColumns()
38 38
     {
39
-        if (! $this->columns) {
39
+        if (!$this->columns) {
40 40
             throw new \Exception("You must set includable's columns");
41 41
         }
42 42
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getDefaultColumns()
68 68
     {
69
-        if (! $this->default_columns) {
69
+        if (!$this->default_columns) {
70 70
             throw new \Exception("You must set includable's default columns");
71 71
         }
72 72
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function getName()
98 98
     {
99
-        if (! $this->name) {
99
+        if (!$this->name) {
100 100
             throw new \Exception("You must set includable's name");
101 101
         }
102 102
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function getForeignKey()
128 128
     {
129
-        if (! $this->nested && ! $this->foreign_key && ! $this->limit) {
129
+        if (!$this->nested && !$this->foreign_key && !$this->limit) {
130 130
             throw new \Exception("You must set includable's limit or foreign key");
131 131
         }
132 132
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function getLimit()
158 158
     {
159
-        if (! $this->foreign_key && ! $this->limit) {
159
+        if (!$this->foreign_key && !$this->limit) {
160 160
             throw new \Exception("You must set includable's limit or foreign key");
161 161
         }
162 162
 
Please login to merge, or discard this patch.
app/Transformers/BaseTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         $transformData = $this->transformData($model);
22 22
 
23
-        $data = array_filter($transformData, function ($v) {
23
+        $data = array_filter($transformData, function($v) {
24 24
             if (is_null($v)) {
25 25
                 return false;
26 26
             }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         // 转换 null 字段为空字符串
32 32
         foreach (array_keys($model->toArray()) as $key) {
33
-            if (! isset($data[$key])) {
33
+            if (!isset($data[$key])) {
34 34
                 $data[$key] = '';
35 35
                 continue;
36 36
             }
Please login to merge, or discard this patch.