@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | /** |
224 | 224 | * Set a field value. |
225 | 225 | * |
226 | - * @param $fieldSlug |
|
226 | + * @param string $fieldSlug |
|
227 | 227 | * @param $value |
228 | 228 | * @param null $locale |
229 | 229 | * @return $this |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | * Return whether or not the assignment for |
634 | 634 | * the given field slug is translatable. |
635 | 635 | * |
636 | - * @param $fieldSlug |
|
636 | + * @param string $fieldSlug |
|
637 | 637 | * @return bool |
638 | 638 | */ |
639 | 639 | public function assignmentIsTranslatable($fieldSlug) |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * Render the given HttpException. |
49 | 49 | * |
50 | 50 | * @param \Symfony\Component\HttpKernel\Exception\HttpException $e |
51 | - * @return \Symfony\Component\HttpFoundation\Response |
|
51 | + * @return Response|null |
|
52 | 52 | */ |
53 | 53 | protected function renderHttpException(HttpException $e) |
54 | 54 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * Handle the command. |
37 | 37 | * |
38 | 38 | * @param AssignField $command |
39 | - * @return AssignmentInterface |
|
39 | + * @return \Anomaly\Streams\Platform\Model\EloquentModel |
|
40 | 40 | */ |
41 | 41 | public function handle(AssignField $command) |
42 | 42 | { |
@@ -105,7 +105,6 @@ |
||
105 | 105 | /** |
106 | 106 | * Get the name. |
107 | 107 | * |
108 | - * @param null|string $locale |
|
109 | 108 | * @return string |
110 | 109 | */ |
111 | 110 | public function getName() |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | /** |
303 | 303 | * Run a macro on the image. |
304 | 304 | * |
305 | - * @param $macro |
|
305 | + * @param string $macro |
|
306 | 306 | * @return Image |
307 | 307 | * @throws \Exception |
308 | 308 | */ |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | * |
410 | 410 | * @param null $format |
411 | 411 | * @param int $quality |
412 | - * @return String |
|
412 | + * @return \Intervention\Image\Image |
|
413 | 413 | */ |
414 | 414 | public function encode($format = null, $quality = null) |
415 | 415 | { |
@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | /** |
521 | 521 | * Determine if the image needs to be published |
522 | 522 | * |
523 | - * @param $path |
|
523 | + * @param string $path |
|
524 | 524 | * @return bool |
525 | 525 | */ |
526 | 526 | private function shouldPublish($path) |
@@ -556,7 +556,7 @@ discard block |
||
556 | 556 | /** |
557 | 557 | * Publish an image to the publish directory. |
558 | 558 | * |
559 | - * @param $path |
|
559 | + * @param string $path |
|
560 | 560 | */ |
561 | 561 | protected function publish($path) |
562 | 562 | { |
@@ -623,7 +623,7 @@ discard block |
||
623 | 623 | /** |
624 | 624 | * Return the image srcsets by set. |
625 | 625 | * |
626 | - * @return array |
|
626 | + * @return string |
|
627 | 627 | */ |
628 | 628 | public function srcset() |
629 | 629 | { |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | /** |
737 | 737 | * Return if an extension is supported. |
738 | 738 | * |
739 | - * @param $extension |
|
739 | + * @param null|string $extension |
|
740 | 740 | * @return bool |
741 | 741 | */ |
742 | 742 | protected function supportsType($extension) |
@@ -868,7 +868,7 @@ discard block |
||
868 | 868 | /** |
869 | 869 | * Get the image instance. |
870 | 870 | * |
871 | - * @return \Intervention\Image\Image |
|
871 | + * @return null|string |
|
872 | 872 | */ |
873 | 873 | public function getImage() |
874 | 874 | { |
@@ -965,7 +965,7 @@ discard block |
||
965 | 965 | /** |
966 | 966 | * Add an attribute. |
967 | 967 | * |
968 | - * @param $attribute |
|
968 | + * @param string $attribute |
|
969 | 969 | * @param $value |
970 | 970 | * @return $this |
971 | 971 | */ |
@@ -1040,7 +1040,7 @@ discard block |
||
1040 | 1040 | /** |
1041 | 1041 | * Set the output mode. |
1042 | 1042 | * |
1043 | - * @param $output |
|
1043 | + * @param string $output |
|
1044 | 1044 | * @return $this |
1045 | 1045 | */ |
1046 | 1046 | public function setOutput($output) |
@@ -1086,7 +1086,7 @@ discard block |
||
1086 | 1086 | /** |
1087 | 1087 | * Add a path by it's namespace hint. |
1088 | 1088 | * |
1089 | - * @param $namespace |
|
1089 | + * @param string $namespace |
|
1090 | 1090 | * @param $path |
1091 | 1091 | * @return $this |
1092 | 1092 | */ |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Fire a model event. |
114 | 114 | * |
115 | - * @param $event |
|
115 | + * @param string $event |
|
116 | 116 | * @return mixed |
117 | 117 | */ |
118 | 118 | public function fireEvent($event) |
@@ -397,6 +397,9 @@ discard block |
||
397 | 397 | return get_class($this) . 'Translation'; |
398 | 398 | } |
399 | 399 | |
400 | + /** |
|
401 | + * @return string|null |
|
402 | + */ |
|
400 | 403 | public function getRelationKey() |
401 | 404 | { |
402 | 405 | return $this->translationForeignKey ?: $this->getForeignKey(); |
@@ -588,6 +591,9 @@ discard block |
||
588 | 591 | return parent::fill($attributes); |
589 | 592 | } |
590 | 593 | |
594 | + /** |
|
595 | + * @param string $key |
|
596 | + */ |
|
591 | 597 | private function getTranslationByLocaleKey($key) |
592 | 598 | { |
593 | 599 | foreach ($this->translations as $translation) { |
@@ -758,6 +764,9 @@ discard block |
||
758 | 764 | return class_exists($criteria) ? $criteria : EloquentCriteria::class; |
759 | 765 | } |
760 | 766 | |
767 | + /** |
|
768 | + * @param string $key |
|
769 | + */ |
|
761 | 770 | public function __get($key) |
762 | 771 | { |
763 | 772 | if ($this->hasHook($hook = 'get_' . $key)) { |
@@ -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 |
@@ -2,9 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Anomaly\Streams\Platform\Application\Application; |
4 | 4 | use Anomaly\Streams\Platform\Stream\Contract\StreamInterface; |
5 | -use Illuminate\Contracts\Config\Repository; |
|
6 | 5 | use Illuminate\Filesystem\Filesystem; |
7 | -use Laravel\Scout\EngineManager; |
|
8 | 6 | |
9 | 7 | class DeleteEntryIndex |
10 | 8 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Get the paginated entries. |
43 | 43 | * |
44 | - * @return Collection |
|
44 | + * @return Paginator |
|
45 | 45 | */ |
46 | 46 | public function paginate($perPage = 15, $pageName = 'page', $page = null) |
47 | 47 | { |