@@ -106,7 +106,6 @@ |
||
106 | 106 | /** |
107 | 107 | * Get the name. |
108 | 108 | * |
109 | - * @param null|string $locale |
|
110 | 109 | * @return string |
111 | 110 | */ |
112 | 111 | public function getName() |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | use Closure; |
4 | 4 | use Illuminate\Contracts\Config\Repository; |
5 | -use Illuminate\Contracts\Events\Dispatcher; |
|
6 | 5 | use Illuminate\Foundation\Application; |
7 | 6 | use Illuminate\Http\Request; |
8 | 7 | use Illuminate\Routing\Redirector; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * |
21 | 21 | * @param \Illuminate\Routing\Route $route |
22 | 22 | * @param \Illuminate\Http\Request $request |
23 | - * @return bool |
|
23 | + * @return integer |
|
24 | 24 | */ |
25 | 25 | public function matches(Route $route, Request $request) |
26 | 26 | { |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | * |
381 | 381 | * @param null $format |
382 | 382 | * @param int $quality |
383 | - * @return String |
|
383 | + * @return \Intervention\Image\Image |
|
384 | 384 | */ |
385 | 385 | public function encode($format = null, $quality = 100) |
386 | 386 | { |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | /** |
490 | 490 | * Determine if the image needs to be published |
491 | 491 | * |
492 | - * @param $path |
|
492 | + * @param string $path |
|
493 | 493 | * @return bool |
494 | 494 | */ |
495 | 495 | private function shouldPublish($path) |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | /** |
526 | 526 | * Publish an image to the publish directory. |
527 | 527 | * |
528 | - * @param $path |
|
528 | + * @param string $path |
|
529 | 529 | */ |
530 | 530 | protected function publish($path) |
531 | 531 | { |
@@ -594,7 +594,7 @@ discard block |
||
594 | 594 | /** |
595 | 595 | * Return the image srcsets by set. |
596 | 596 | * |
597 | - * @return array |
|
597 | + * @return string |
|
598 | 598 | */ |
599 | 599 | public function srcset() |
600 | 600 | { |
@@ -817,7 +817,7 @@ discard block |
||
817 | 817 | /** |
818 | 818 | * Get the image instance. |
819 | 819 | * |
820 | - * @return \Intervention\Image\Image |
|
820 | + * @return null|string |
|
821 | 821 | */ |
822 | 822 | public function getImage() |
823 | 823 | { |
@@ -914,7 +914,7 @@ discard block |
||
914 | 914 | /** |
915 | 915 | * Add an attribute. |
916 | 916 | * |
917 | - * @param $attribute |
|
917 | + * @param string $attribute |
|
918 | 918 | * @param $value |
919 | 919 | * @return $this |
920 | 920 | */ |
@@ -985,7 +985,7 @@ discard block |
||
985 | 985 | /** |
986 | 986 | * Set the output mode. |
987 | 987 | * |
988 | - * @param $output |
|
988 | + * @param string $output |
|
989 | 989 | * @return $this |
990 | 990 | */ |
991 | 991 | public function setOutput($output) |
@@ -1031,7 +1031,7 @@ discard block |
||
1031 | 1031 | /** |
1032 | 1032 | * Add a path by it's namespace hint. |
1033 | 1033 | * |
1034 | - * @param $namespace |
|
1034 | + * @param string $namespace |
|
1035 | 1035 | * @param $path |
1036 | 1036 | * @return $this |
1037 | 1037 | */ |
@@ -24,7 +24,6 @@ |
||
24 | 24 | use Anomaly\Streams\Platform\Installer\InstallerCollection; |
25 | 25 | use Anomaly\Streams\Platform\Support\Collection; |
26 | 26 | use Illuminate\Console\Command; |
27 | -use Illuminate\Contracts\Config\Repository; |
|
28 | 27 | use Illuminate\Contracts\Events\Dispatcher; |
29 | 28 | use Illuminate\Foundation\Bus\DispatchesJobs; |
30 | 29 |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * Create a new Installer instance. |
32 | 32 | * |
33 | - * @param $message |
|
34 | - * @param callable $task |
|
33 | + * @param string $message |
|
34 | + * @param Closure $task |
|
35 | 35 | */ |
36 | 36 | function __construct($message, Closure $task) |
37 | 37 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * Get the task. |
54 | 54 | * |
55 | - * @return callable |
|
55 | + * @return Closure |
|
56 | 56 | */ |
57 | 57 | public function getTask() |
58 | 58 | { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | /** |
111 | 111 | * Fire a model event. |
112 | 112 | * |
113 | - * @param $event |
|
113 | + * @param string $event |
|
114 | 114 | * @return mixed |
115 | 115 | */ |
116 | 116 | public function fireEvent($event) |
@@ -351,6 +351,9 @@ discard block |
||
351 | 351 | return new $this->translationModel; |
352 | 352 | } |
353 | 353 | |
354 | + /** |
|
355 | + * @return string |
|
356 | + */ |
|
354 | 357 | public function getTranslationModelName() |
355 | 358 | { |
356 | 359 | return $this->translationModel; |
@@ -540,6 +543,9 @@ discard block |
||
540 | 543 | return parent::fill($attributes); |
541 | 544 | } |
542 | 545 | |
546 | + /** |
|
547 | + * @param string $key |
|
548 | + */ |
|
543 | 549 | private function getTranslationByLocaleKey($key) |
544 | 550 | { |
545 | 551 | foreach ($this->translations as $translation) { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * Index cache collection |
97 | 97 | * |
98 | - * @return object |
|
98 | + * @return EloquentQueryBuilder |
|
99 | 99 | */ |
100 | 100 | protected function indexCacheCollection() |
101 | 101 | { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * Get fresh models / disable cache |
137 | 137 | * |
138 | 138 | * @param boolean $fresh |
139 | - * @return object |
|
139 | + * @return EloquentQueryBuilder |
|
140 | 140 | */ |
141 | 141 | public function fresh($fresh = true) |
142 | 142 | { |
@@ -158,7 +158,7 @@ |
||
158 | 158 | * Delete a record. |
159 | 159 | * |
160 | 160 | * @param EloquentModel $entry |
161 | - * @return bool |
|
161 | + * @return boolean|null |
|
162 | 162 | */ |
163 | 163 | public function delete(EloquentModel $entry) |
164 | 164 | { |