Passed
Pull Request — master (#37)
by
unknown
10:18
created
src/Http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
             'proxy' => Configuration::get('proxy'),
182 182
         ];
183 183
 
184
-        if (! empty(array_filter($this->multipartResources))) {
184
+        if (!empty(array_filter($this->multipartResources))) {
185 185
             $options['multipart'] = $this->multipartResources;
186 186
         }
187 187
 
Please login to merge, or discard this patch.
src/Traits/ConfigurationTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         $params = func_get_args();
38 38
 
39
-        if (! empty($params)) {
39
+        if (!empty($params)) {
40 40
             if (is_array($params[0])) {
41 41
                 forward_static_call_array([Configuration::class, 'setMany'], $params);
42 42
             } else {
Please login to merge, or discard this patch.
src/Configuration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public static function get($key = null, $default = null)
36 36
     {
37
-        if (! empty($key)) {
37
+        if (!empty($key)) {
38 38
             return isset(static::$settings[$key]) ? static::$settings[$key] : $default;
39 39
         }
40 40
 
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public static function parseDefaultOptions($options = [], $defaults = [])
53 53
     {
54
-        array_walk($defaults, function ($value, $key) use (&$options) {
55
-            if (! isset($options[$key])) {
54
+        array_walk($defaults, function($value, $key) use (&$options) {
55
+            if (!isset($options[$key])) {
56 56
                 $options[$key] = $value;
57 57
             }
58 58
         });
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $settings = static::parseDefaultOptions($settings, $defaultSettings);
86 86
 
87
-        array_walk($settings, function ($value, $key) {
87
+        array_walk($settings, function($value, $key) {
88 88
             static::set($key, $value);
89 89
         });
90 90
     }
Please login to merge, or discard this patch.
example/index.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@  discard block
 block discarded – undo
4 4
 
5 5
 $currentUrl = (isset($_SERVER['HTTPS']) ? 'https' : 'http')."://".$_SERVER['HTTP_HOST'].preg_replace('/\?.*$/', '', $_SERVER["REQUEST_URI"]);
6 6
 
7
-set_error_handler(function ($errno, $errstr, $errfile, $errline) use ($currentUrl) {
7
+set_error_handler(function($errno, $errstr, $errfile, $errline) use ($currentUrl) {
8 8
     if (E_RECOVERABLE_ERROR === $errno) {
9
-        header('Location: ' . $currentUrl);
9
+        header('Location: '.$currentUrl);
10 10
     }
11 11
 
12 12
     return false;
@@ -31,15 +31,15 @@  discard block
 block discarded – undo
31 31
 
32 32
         echo "<pre>";
33 33
 
34
-        echo 'Access Token: ' . $credentials->getIdentifier() . "\n";
34
+        echo 'Access Token: '.$credentials->getIdentifier()."\n";
35 35
 
36
-        echo 'Token Secret: ' . $credentials->getSecret() . "\n";
36
+        echo 'Token Secret: '.$credentials->getSecret()."\n";
37 37
 
38 38
         echo "</pre>";
39 39
 
40 40
     } catch (Exception $e) {
41 41
 
42
-        header('Location: ' . $currentUrl);
42
+        header('Location: '.$currentUrl);
43 43
 
44 44
     }
45 45
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     $authorizationUrl = $client->getAuthorizationUrl();
49 49
 
50
-    header('Location: ' . $authorizationUrl);
50
+    header('Location: '.$authorizationUrl);
51 51
 
52 52
 } else {
53 53
 
Please login to merge, or discard this patch.