@@ -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)) { |
@@ -322,6 +322,9 @@ discard block |
||
| 322 | 322 | $this->content->save(); |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | + /** |
|
| 326 | + * @param boolean $publishRevision |
|
| 327 | + */ |
|
| 325 | 328 | protected function saveRevision($publishRevision) |
| 326 | 329 | { |
| 327 | 330 | |
@@ -341,6 +344,9 @@ discard block |
||
| 341 | 344 | } |
| 342 | 345 | } |
| 343 | 346 | |
| 347 | + /** |
|
| 348 | + * @param boolean $newRevision |
|
| 349 | + */ |
|
| 344 | 350 | protected function saveField(Field $field, $newRevision) |
| 345 | 351 | { |
| 346 | 352 | // If we create a new revision, this will |