Completed
Push — master ( 64c4a0...1770d2 )
by
unknown
14s queued 13s
created
src/DeepL.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -254,20 +254,20 @@  discard block
 block discarded – undo
254 254
                 $url = DeepL::API_URL_V2;
255 255
         }
256 256
 
257
-        $url .= '?' . sprintf(DeepL::API_URL_AUTH_KEY, $this->authKey);
258
-        $url .= '&' . sprintf(DeepL::API_URL_SOURCE_LANG, strtolower($sourceLanguage));
259
-        $url .= '&' . sprintf(DeepL::API_URL_DESTINATION_LANG, strtolower($destinationLanguage));
257
+        $url .= '?'.sprintf(DeepL::API_URL_AUTH_KEY, $this->authKey);
258
+        $url .= '&'.sprintf(DeepL::API_URL_SOURCE_LANG, strtolower($sourceLanguage));
259
+        $url .= '&'.sprintf(DeepL::API_URL_DESTINATION_LANG, strtolower($destinationLanguage));
260 260
 
261 261
         if (!empty($tagHandling)) {
262
-            $url .= '&' . sprintf(DeepL::API_URL_TAG_HANDLING, implode(',', $tagHandling));
262
+            $url .= '&'.sprintf(DeepL::API_URL_TAG_HANDLING, implode(',', $tagHandling));
263 263
         }
264 264
 
265 265
         if (!empty($ignoreTags)) {
266
-            $url .= '&' . sprintf(DeepL::API_URL_IGNORE_TAGS, implode(',', $ignoreTags));
266
+            $url .= '&'.sprintf(DeepL::API_URL_IGNORE_TAGS, implode(',', $ignoreTags));
267 267
         }
268 268
 
269 269
         if (!empty($formality)) {
270
-            $url .= '&' . sprintf(DeepL::API_URL_FORMALITY, $formality);
270
+            $url .= '&'.sprintf(DeepL::API_URL_FORMALITY, $formality);
271 271
         }
272 272
 
273 273
         return $url;
@@ -286,11 +286,11 @@  discard block
 block discarded – undo
286 286
         $first = true;
287 287
 
288 288
         if (!is_array($text)) {
289
-            $text = (array)$text;
289
+            $text = (array) $text;
290 290
         }
291 291
 
292 292
         foreach ($text as $textElement) {
293
-            $body .= ($first ? '' : '&') . sprintf(DeepL::API_URL_TEXT, rawurlencode($textElement));
293
+            $body .= ($first ? '' : '&').sprintf(DeepL::API_URL_TEXT, rawurlencode($textElement));
294 294
 
295 295
             if ($first) {
296 296
                 $first = false;
Please login to merge, or discard this patch.