Completed
Push — master ( fbfec6...5d8274 )
by Elf
05:33
created
src/Http/Middleware/CheckAppClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function handle($request, Closure $next)
18 18
     {
19
-        if (! AgentClient::is('AppClient')) {
19
+        if (!AgentClient::is('AppClient')) {
20 20
             return response('Unauthorized Client', 403);
21 21
         }
22 22
 
Please login to merge, or discard this patch.
src/Services/Mob/Sms.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
      *
19 19
      * @throws \ElfSundae\Laravel\Api\Exceptions\ApiResponseException
20 20
      */
21
-    public static function verify($credentials = [])
21
+    public static function verify($credentials = [ ])
22 22
     {
23 23
         $response = (new HttpClient('https://webapi.sms.mob.com/'))
24
-            ->formParams(array_merge($credentials, ['appkey' => config('services.mobsms.key')]))
24
+            ->formParams(array_merge($credentials, [ 'appkey' => config('services.mobsms.key') ]))
25 25
             ->fetchJson('/sms/verify', 'POST');
26 26
 
27
-        if (! is_array($response)) {
27
+        if (!is_array($response)) {
28 28
             throw new ActionFailureException('短信网关请求失败');
29 29
         }
30 30
 
Please login to merge, or discard this patch.
src/Services/Optimus/OptimusServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function register()
23 23
     {
24
-        $this->app->singleton('optimus', function ($app) {
25
-            $config = $app['config']->get('support.optimus');
24
+        $this->app->singleton('optimus', function($app) {
25
+            $config = $app[ 'config' ]->get('support.optimus');
26 26
 
27
-            return new Optimus($config['prime'], $config['inverse'], $config['random']);
27
+            return new Optimus($config[ 'prime' ], $config[ 'inverse' ], $config[ 'random' ]);
28 28
         });
29 29
 
30 30
         $this->app->alias('optimus', Optimus::class);
@@ -41,6 +41,6 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function provides()
43 43
     {
44
-        return ['optimus', Optimus::class];
44
+        return [ 'optimus', Optimus::class ];
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
src/SupportServiceProvider.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
         $this->setupConfiguration();
19 19
 
20
-        array_map([$this->app, 'register'], $this->getServiceProviders());
20
+        array_map([ $this->app, 'register' ], $this->getServiceProviders());
21 21
 
22 22
         if ($this->app->runningInConsole()) {
23 23
             $this->publishes([
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     protected function setupConfiguration()
37 37
     {
38
-        if (! $this->app->configurationIsCached()) {
38
+        if (!$this->app->configurationIsCached()) {
39 39
             $this->configureDefaults();
40 40
         }
41 41
 
@@ -49,20 +49,20 @@  discard block
 block discarded – undo
49 49
      */
50 50
     protected function configureDefaults()
51 51
     {
52
-        $config = $this->app['config'];
52
+        $config = $this->app[ 'config' ];
53 53
 
54 54
         // Append "app.domains"
55
-        $config['app.domains'] = array_map(function ($value) {
55
+        $config[ 'app.domains' ] = array_map(function($value) {
56 56
             if (is_string($domain = parse_url($value, PHP_URL_HOST))) {
57 57
                 if (str_contains($domain, '.')) {
58 58
                     return $domain;
59 59
                 }
60 60
             }
61
-        }, $config['support.url']);
61
+        }, $config[ 'support.url' ]);
62 62
 
63 63
         // Set "mail.from.name"
64
-        if ($config['mail.from.name'] == 'Example') {
65
-            $config['mail.from.name'] = $config['app.name'];
64
+        if ($config[ 'mail.from.name' ] == 'Example') {
65
+            $config[ 'mail.from.name' ] = $config[ 'app.name' ];
66 66
         }
67 67
     }
68 68
 
@@ -73,17 +73,17 @@  discard block
 block discarded – undo
73 73
      */
74 74
     protected function configureForCurrentRequest()
75 75
     {
76
-        $config = $this->app['config'];
77
-        $request = $this->app['request'];
76
+        $config = $this->app[ 'config' ];
77
+        $request = $this->app[ 'request' ];
78 78
 
79
-        $identifier = array_search($request->getHost(), $config['app.domains']);
79
+        $identifier = array_search($request->getHost(), $config[ 'app.domains' ]);
80 80
 
81 81
         if ($identifier && $config->has('support.cookie_domain.'.$identifier)) {
82
-            $config['session.domain'] = $config['support.cookie_domain.'.$identifier];
82
+            $config[ 'session.domain' ] = $config[ 'support.cookie_domain.'.$identifier ];
83 83
         }
84 84
 
85
-        if ($identifier && is_array($auth = $config['support.auth.'.$identifier])) {
86
-            $config['auth.defaults'] = $auth;
85
+        if ($identifier && is_array($auth = $config[ 'support.auth.'.$identifier ])) {
86
+            $config[ 'auth.defaults' ] = $auth;
87 87
         }
88 88
     }
89 89
 
Please login to merge, or discard this patch.