Completed
Pull Request — master (#68)
by André
08:04 queued 05:16
created
src/Tokens/GoogleTokenGenerator.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      * @param string $source Source language
19 19
      * @param string $target Target language
20 20
      * @param string $text Text to translate
21
-     * @return mixed A token
21
+     * @return string A token
22 22
      */
23 23
     public function generateToken($source, $target, $text)
24 24
     {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * Process token data by applying multiple operations
89 89
      *
90 90
      * @param $a
91
-     * @param $b
91
+     * @param string $b
92 92
      * @return int
93 93
      */
94 94
     private function RL($a, $b)
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      *
133 133
      * @param string $str
134 134
      * @param int $index
135
-     * @return null|number
135
+     * @return string
136 136
      */
137 137
     private function charCodeAt($str, $index)
138 138
     {
Please login to merge, or discard this patch.
src/Translator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,12 +245,12 @@
 block discarded – undo
245 245
      * This can be called from instance method translate() using __call() magic method.
246 246
      * Use $instance->translate($string) instead.
247 247
      *
248
-     * @param string $data Text or array of texts to translate
249 248
      *
250 249
      * @throws InvalidArgumentException If the provided argument is not of type 'string'
251 250
      * @throws ErrorException           If the HTTP request fails
252 251
      * @throws UnexpectedValueException If received data cannot be decoded
253 252
      *
253
+     * @param string $string
254 254
      * @return string|bool Translated text
255 255
      */
256 256
     protected function translateText($string)
Please login to merge, or discard this patch.