Completed
Push — master ( db2912...d1e0ef )
by Byron
02:04
created
src/MicrosoftTranslator.php 2 patches
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace badams\MicrosoftTranslator;
3 3
 
4
+use GuzzleHttp\Exception\RequestException;
4 5
 use badams\MicrosoftTranslator\Exceptions\ArgumentException;
5 6
 use badams\MicrosoftTranslator\Exceptions\AuthException;
6 7
 use badams\MicrosoftTranslator\Exceptions\QuotaExceededException;
@@ -9,8 +10,6 @@  discard block
 block discarded – undo
9 10
 use badams\MicrosoftTranslator\Methods\Detect;
10 11
 use badams\MicrosoftTranslator\Methods\Speak;
11 12
 use badams\MicrosoftTranslator\Methods\Translate;
12
-use GuzzleHttp\Exception\RequestException;
13
-use GuzzleHttp\Message\ResponseInterface;
14 13
 
15 14
 /**
16 15
  * Class MicrosoftTranslator
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
     {
162 162
         if (strpos($message, 'TranslateApiException') === 0
163 163
             && strpos($message, 'credentials has zero balance.')
164
-        ){
164
+        ) {
165 165
             throw new QuotaExceededException($message);
166 166
         }
167 167
     }
Please login to merge, or discard this patch.