Completed
Pull Request — master (#15)
by Mischa
03:20
created
src/Superdesk/ContentApiSdk/Client/CurlClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
                 $key = $h[0];
108 108
             } else {
109 109
                 if (substr($h[0], 0, 1) == "\t") {
110
-                    $headers[$key] .= "\r\n\t".trim($h[0]);
110
+                    $headers[$key] .= "\r\n\t" . trim($h[0]);
111 111
                 } elseif (!$key) {
112 112
                     $headers[0] = trim($h[0]);
113 113
                 }
Please login to merge, or discard this patch.
src/Superdesk/ContentApiSdk/ContentApiSdk.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     /**
58 58
      * Useragent string sent to the API when making requests.
59 59
      */
60
-    const USERAGENT = 'Content API SDK '. self::API_VERSION;
60
+    const USERAGENT = 'Content API SDK ' . self::API_VERSION;
61 61
 
62 62
     /**
63 63
      * A list of parameters the Content API accepts.
Please login to merge, or discard this patch.
Superdesk/ContentApiSdk/API/Authentication/OAuthPasswordAuthentication.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         try {
112 112
             $responseObj = ContentApiSdk::getValidJsonObj($response['body']);
113
-        } catch(InvalidDataException $e) {
113
+        } catch (InvalidDataException $e) {
114 114
             throw new AuthenticationException('Authentication response body is not (valid) json.', $e->getCode(), $e);
115 115
         }
116 116
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
         try {
150 150
             $responseObj = ContentApiSdk::getValidJsonObj($response['body']);
151
-        } catch(InvalidDataException $e) {
151
+        } catch (InvalidDataException $e) {
152 152
             throw new AuthenticationException('Authentication response body is not (valid) json.', $e->getCode(), $e);
153 153
         }
154 154
 
Please login to merge, or discard this patch.