@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @param $query |
|
36 | + * @param string $query |
|
37 | 37 | * return void |
38 | 38 | */ |
39 | 39 | private function runQuery($query) |
@@ -93,6 +93,9 @@ discard block |
||
93 | 93 | }); |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $query |
|
98 | + */ |
|
96 | 99 | private function beautifyQuery($query) |
97 | 100 | { |
98 | 101 | $capitalizeWords = ['select ', ' from ', ' where ', ' on ', ' join ']; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Dimsav\Translatable; |
4 | 4 | |
5 | -use App; |
|
6 | 5 | use Dimsav\Translatable\Exception\LocalesNotDefinedException; |
7 | 6 | use Illuminate\Database\Eloquent\Builder; |
8 | 7 | use Illuminate\Database\Eloquent\MassAssignmentException; |
@@ -176,8 +176,8 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | /** |
179 | - * @param $key |
|
180 | - * @param $value |
|
179 | + * @param string $key |
|
180 | + * @param string $value |
|
181 | 181 | * @return $this |
182 | 182 | */ |
183 | 183 | public function setAttribute($key, $value) |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | } |
282 | 282 | |
283 | 283 | /** |
284 | - * @param $key |
|
284 | + * @param string $key |
|
285 | 285 | * @return null |
286 | 286 | */ |
287 | 287 | private function getTranslationByLocaleKey($key) |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | } |
297 | 297 | |
298 | 298 | /** |
299 | - * @param null $locale |
|
299 | + * @param string $locale |
|
300 | 300 | * |
301 | 301 | * @return string |
302 | 302 | */ |