Passed
Pull Request — master (#1944)
by
unknown
09:36
created
src/OfficialAccount/OAuth/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
                 $wechat['wechat']['component'] = [
41 41
                     'id' => $app['config']['component_app_id'],
42 42
                     'token' => $app['config']['token'],
43
-                ] ;
43
+                ];
44 44
             }
45 45
 
46 46
             $socialite = (new Socialite($wechat))->create('wechat');
47 47
 
48
-            $scopes = (array)$app['config']->get('oauth.scopes', ['snsapi_userinfo']);
48
+            $scopes = (array) $app['config']->get('oauth.scopes', ['snsapi_userinfo']);
49 49
 
50 50
             if (!empty($scopes)) {
51 51
                 $socialite->scopes($scopes);
@@ -70,6 +70,6 @@  discard block
 block discarded – undo
70 70
         }
71 71
         $baseUrl = $app['request']->getSchemeAndHttpHost();
72 72
 
73
-        return $baseUrl . '/' . ltrim($callback, '/');
73
+        return $baseUrl.'/'.ltrim($callback, '/');
74 74
     }
75 75
 }
Please login to merge, or discard this patch.
src/OpenPlatform/Authorizer/MiniProgram/Tester/Client.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
49 49
      * @throws \GuzzleHttp\Exception\GuzzleException
50 50
      */
51
-    public function unbind(string $wechatId,string $userStr='')
51
+    public function unbind(string $wechatId, string $userStr = '')
52 52
     {
53 53
         if ($userStr)
54 54
             return $this->httpPostJson('wxa/unbind_tester', [
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,14 +50,15 @@
 block discarded – undo
50 50
      */
51 51
     public function unbind(string $wechatId,string $userStr='')
52 52
     {
53
-        if ($userStr)
54
-            return $this->httpPostJson('wxa/unbind_tester', [
53
+        if ($userStr) {
54
+                    return $this->httpPostJson('wxa/unbind_tester', [
55 55
                 'userstr' => $userStr,
56 56
             ]);
57
-        else
58
-            return $this->httpPostJson('wxa/unbind_tester', [
57
+        } else {
58
+                    return $this->httpPostJson('wxa/unbind_tester', [
59 59
                 'wechatid' => $wechatId,
60 60
             ]);
61
+        }
61 62
     }
62 63
 
63 64
     /**
Please login to merge, or discard this patch.