@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * Load a language file |
187 | 187 | * |
188 | 188 | * @param string $language |
189 | - * @return bool |
|
189 | + * @return boolean|null |
|
190 | 190 | */ |
191 | 191 | public function loadLanguage($language) |
192 | 192 | { |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | /** |
219 | 219 | * Get the current language id |
220 | - * @return int |
|
220 | + * @return string |
|
221 | 221 | */ |
222 | 222 | public function getCurrentId() |
223 | 223 | { |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * Set the language to use |
229 | 229 | * |
230 | 230 | * @param string $language |
231 | - * @return bool |
|
231 | + * @return boolean|null |
|
232 | 232 | */ |
233 | 233 | public function setLanguage($language) |
234 | 234 | { |
@@ -349,6 +349,10 @@ discard block |
||
349 | 349 | return $languages; |
350 | 350 | } |
351 | 351 | |
352 | + /** |
|
353 | + * @param string $context |
|
354 | + * @param string $language |
|
355 | + */ |
|
352 | 356 | protected function translateGetString($context, $language, $string_id) |
353 | 357 | { |
354 | 358 | $row = Translation::select('text') |
@@ -6,9 +6,9 @@ |
||
6 | 6 | use InvalidArgumentException; |
7 | 7 | use Rocket\Entities\Exceptions\EntityNotFoundException; |
8 | 8 | use Rocket\Entities\Exceptions\InvalidFieldTypeException; |
9 | -use Rocket\Entities\Exceptions\NonExistentFieldException; |
|
10 | 9 | use Rocket\Entities\Exceptions\NoPublishedRevisionForLanguageException; |
11 | 10 | use Rocket\Entities\Exceptions\NoRevisionForLanguageException; |
11 | +use Rocket\Entities\Exceptions\NonExistentFieldException; |
|
12 | 12 | use Rocket\Entities\Exceptions\ReservedFieldNameException; |
13 | 13 | |
14 | 14 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Convert the model instance to an array. |
45 | 45 | * |
46 | - * @return array |
|
46 | + * @return string |
|
47 | 47 | */ |
48 | 48 | public function toArray() |
49 | 49 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Convert the model instance to an array. |
43 | 43 | * |
44 | - * @return array |
|
44 | + * @return string |
|
45 | 45 | */ |
46 | 46 | public function toArray() |
47 | 47 | { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * Save the model to the database. |
56 | 56 | * |
57 | 57 | * @param array $options |
58 | - * @return bool |
|
58 | + * @return boolean|null |
|
59 | 59 | */ |
60 | 60 | public function save(array $options = []) |
61 | 61 | { |
@@ -47,6 +47,7 @@ |
||
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Declared by Eloquent Model |
50 | + * @return string|null |
|
50 | 51 | */ |
51 | 52 | abstract public function getKey(); |
52 | 53 |