@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * Fire a model event. |
133 | 133 | * |
134 | - * @param $event |
|
134 | + * @param string $event |
|
135 | 135 | * @return mixed |
136 | 136 | */ |
137 | 137 | public function fireEvent($event) |
@@ -439,6 +439,9 @@ discard block |
||
439 | 439 | return get_class($this) . 'Translation'; |
440 | 440 | } |
441 | 441 | |
442 | + /** |
|
443 | + * @return string|null |
|
444 | + */ |
|
442 | 445 | public function getRelationKey() |
443 | 446 | { |
444 | 447 | return $this->translationForeignKey ?: $this->getForeignKey(); |
@@ -629,6 +632,9 @@ discard block |
||
629 | 632 | return parent::fill($attributes); |
630 | 633 | } |
631 | 634 | |
635 | + /** |
|
636 | + * @param string $key |
|
637 | + */ |
|
632 | 638 | private function getTranslationByLocaleKey($key) |
633 | 639 | { |
634 | 640 | foreach ($this->translations as $translation) { |
@@ -823,6 +829,9 @@ discard block |
||
823 | 829 | return $this->cascades; |
824 | 830 | } |
825 | 831 | |
832 | + /** |
|
833 | + * @param string $key |
|
834 | + */ |
|
826 | 835 | public function __get($key) |
827 | 836 | { |
828 | 837 | if ($this->hasHook($hook = 'get_' . $key)) { |
@@ -186,7 +186,7 @@ |
||
186 | 186 | * Delete a record. |
187 | 187 | * |
188 | 188 | * @param EloquentModel $entry |
189 | - * @return bool |
|
189 | + * @return boolean|null |
|
190 | 190 | */ |
191 | 191 | public function delete(EloquentModel $entry) |
192 | 192 | { |
@@ -15,8 +15,8 @@ |
||
15 | 15 | /** |
16 | 16 | * Add a breadcrumb. |
17 | 17 | * |
18 | - * @param $key |
|
19 | - * @param null $url |
|
18 | + * @param string $key |
|
19 | + * @param string $url |
|
20 | 20 | */ |
21 | 21 | public function add($key, $url = null) |
22 | 22 | { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * Make the section from it's parameters. |
50 | 50 | * |
51 | 51 | * @param array $parameters |
52 | - * @return mixed |
|
52 | + * @return Contract\SectionInterface |
|
53 | 53 | */ |
54 | 54 | public function make(array $parameters) |
55 | 55 | { |
@@ -295,7 +295,7 @@ |
||
295 | 295 | /** |
296 | 296 | * Add data to the data collection. |
297 | 297 | * |
298 | - * @param $key |
|
298 | + * @param string $key |
|
299 | 299 | * @param $value |
300 | 300 | * @return $this |
301 | 301 | */ |