@@ -16,6 +16,10 @@ discard block |
||
16 | 16 | { |
17 | 17 | /** |
18 | 18 | * Declared by Eloquent Model |
19 | + * @param string $related |
|
20 | + * @param string $name |
|
21 | + * @param string $table |
|
22 | + * @param string $otherKey |
|
19 | 23 | */ |
20 | 24 | abstract public function morphToMany( |
21 | 25 | $related, |
@@ -33,6 +37,7 @@ discard block |
||
33 | 37 | |
34 | 38 | /** |
35 | 39 | * Declared by Eloquent Model |
40 | + * @return string|null |
|
36 | 41 | */ |
37 | 42 | abstract public function getKey(); |
38 | 43 |
@@ -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') |
@@ -80,6 +80,9 @@ |
||
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
83 | + /** |
|
84 | + * @param integer $beginning_with |
|
85 | + */ |
|
83 | 86 | protected function ungracefulExit($beginning_with, $tree_data) |
84 | 87 | { |
85 | 88 | if ($beginning_with == count($tree_data)) { |
@@ -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 | /** |