Completed
Pull Request — master (#4)
by
unknown
05:08
created
src/Translation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             return $this->getTranslatedTextFromResponse($translateResponse);
87 87
         }
88 88
 
89
-        throw new TranslationErrorException('Translate error, error_code : '.$translateResponse['errorCode'].'. Refer url: http://fanyi.youdao.com/openapi?path=data-mode');
89
+        throw new TranslationErrorException('Translate error, error_code : ' . $translateResponse['errorCode'] . '. Refer url: http://fanyi.youdao.com/openapi?path=data-mode');
90 90
     }
91 91
 
92 92
     /**
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
         if (count($this->config) > 1) {
110 110
             $query = http_build_query($this->config);
111 111
 
112
-            return $this->api.$query.'&q='.urlencode($text);
112
+            return $this->api . $query . '&q=' . urlencode($text);
113 113
         }
114 114
 
115
-        return $this->api.'keyfrom='.config('services.youdao.from').'&key='.config('services.youdao.key').'&q='.urlencode($text);
115
+        return $this->api . 'keyfrom=' . config('services.youdao.from') . '&key=' . config('services.youdao.key') . '&q=' . urlencode($text);
116 116
     }
117 117
 
118 118
     /**
Please login to merge, or discard this patch.