@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php namespace Anomaly\Streams\Platform\Addon\Console; |
| 2 | 2 | |
| 3 | 3 | use Anomaly\Streams\Platform\Addon\AddonManager; |
| 4 | -use Anomaly\Streams\Platform\Addon\Command\RegisterAddons; |
|
| 5 | 4 | use Anomaly\Streams\Platform\Addon\Console\Command\MakeAddonPaths; |
| 6 | 5 | use Anomaly\Streams\Platform\Addon\Console\Command\ScaffoldTheme; |
| 7 | 6 | use Anomaly\Streams\Platform\Addon\Console\Command\WriteAddonClass; |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | /** |
| 155 | 155 | * Get a namespaced key string. |
| 156 | 156 | * |
| 157 | - * @param null $key |
|
| 157 | + * @param string|null $key |
|
| 158 | 158 | * @return string |
| 159 | 159 | */ |
| 160 | 160 | public function getNamespace($key = null) |
@@ -45,7 +45,6 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * Handle the command. |
| 47 | 47 | * |
| 48 | - * @param Parser $parser |
|
| 49 | 48 | * @param Filesystem $filesystem |
| 50 | 49 | */ |
| 51 | 50 | public function handle(Filesystem $filesystem) |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | /** |
| 474 | 474 | * Publish the collection of assets to the path. |
| 475 | 475 | * |
| 476 | - * @param $path |
|
| 476 | + * @param string $path |
|
| 477 | 477 | * @param $collection |
| 478 | 478 | * @param $additionalFilters |
| 479 | 479 | */ |
@@ -683,7 +683,7 @@ discard block |
||
| 683 | 683 | * Decide whether we need to publish the file |
| 684 | 684 | * to the path or not. |
| 685 | 685 | * |
| 686 | - * @param $path |
|
| 686 | + * @param string $path |
|
| 687 | 687 | * @param $collection |
| 688 | 688 | * @param array $filters |
| 689 | 689 | * @return bool |
@@ -738,7 +738,7 @@ discard block |
||
| 738 | 738 | /** |
| 739 | 739 | * Add a namespace path hint. |
| 740 | 740 | * |
| 741 | - * @param $namespace |
|
| 741 | + * @param string $namespace |
|
| 742 | 742 | * @param $path |
| 743 | 743 | * @return $this |
| 744 | 744 | */ |
@@ -752,7 +752,7 @@ discard block |
||
| 752 | 752 | /** |
| 753 | 753 | * Set the public base directory. |
| 754 | 754 | * |
| 755 | - * @param $directory |
|
| 755 | + * @param string $directory |
|
| 756 | 756 | * @return $this |
| 757 | 757 | */ |
| 758 | 758 | public function setDirectory($directory) |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | /** |
| 117 | 117 | * Set the namespace. |
| 118 | 118 | * |
| 119 | - * @param $namespace |
|
| 119 | + * @param null|string $namespace |
|
| 120 | 120 | * @return $this |
| 121 | 121 | */ |
| 122 | 122 | public function setNamespace($namespace) |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * @param FieldRepositoryInterface $fields |
| 54 | 54 | * @param StreamRepositoryInterface $streams |
| 55 | 55 | * @param ModuleCollection $modules |
| 56 | - * @return \Illuminate\Contracts\View\View|mixed |
|
| 56 | + * @return \Illuminate\Contracts\View\View |
|
| 57 | 57 | */ |
| 58 | 58 | public function choose( |
| 59 | 59 | FieldRepositoryInterface $fields, |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | * Make a new image instance. |
| 275 | 275 | * |
| 276 | 276 | * @param mixed $image |
| 277 | - * @param null $output |
|
| 277 | + * @param string $output |
|
| 278 | 278 | * @return $this |
| 279 | 279 | */ |
| 280 | 280 | public function make($image, $output = null) |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | /** |
| 329 | 329 | * Run a macro on the image. |
| 330 | 330 | * |
| 331 | - * @param $macro |
|
| 331 | + * @param string $macro |
|
| 332 | 332 | * @return Image |
| 333 | 333 | * @throws \Exception |
| 334 | 334 | */ |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | * |
| 446 | 446 | * @param null $format |
| 447 | 447 | * @param int $quality |
| 448 | - * @return String |
|
| 448 | + * @return \Intervention\Image\Image |
|
| 449 | 449 | */ |
| 450 | 450 | public function encode($format = null, $quality = null) |
| 451 | 451 | { |
@@ -577,7 +577,7 @@ discard block |
||
| 577 | 577 | /** |
| 578 | 578 | * Determine if the image needs to be published |
| 579 | 579 | * |
| 580 | - * @param $path |
|
| 580 | + * @param string $path |
|
| 581 | 581 | * @return bool |
| 582 | 582 | */ |
| 583 | 583 | private function shouldPublish($path) |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | /** |
| 614 | 614 | * Publish an image to the publish directory. |
| 615 | 615 | * |
| 616 | - * @param $path |
|
| 616 | + * @param string $path |
|
| 617 | 617 | */ |
| 618 | 618 | protected function publish($path) |
| 619 | 619 | { |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | /** |
| 685 | 685 | * Return the image srcsets by set. |
| 686 | 686 | * |
| 687 | - * @return array |
|
| 687 | + * @return string |
|
| 688 | 688 | */ |
| 689 | 689 | public function srcset() |
| 690 | 690 | { |
@@ -797,7 +797,7 @@ discard block |
||
| 797 | 797 | /** |
| 798 | 798 | * Return if an extension is supported. |
| 799 | 799 | * |
| 800 | - * @param $extension |
|
| 800 | + * @param null|string $extension |
|
| 801 | 801 | * @return bool |
| 802 | 802 | */ |
| 803 | 803 | protected function supportsType($extension) |
@@ -937,7 +937,7 @@ discard block |
||
| 937 | 937 | /** |
| 938 | 938 | * Get the image instance. |
| 939 | 939 | * |
| 940 | - * @return \Intervention\Image\Image |
|
| 940 | + * @return null|string |
|
| 941 | 941 | */ |
| 942 | 942 | public function getImage() |
| 943 | 943 | { |
@@ -993,7 +993,7 @@ discard block |
||
| 993 | 993 | /** |
| 994 | 994 | * Get the file name. |
| 995 | 995 | * |
| 996 | - * @return null|string |
|
| 996 | + * @return null|boolean |
|
| 997 | 997 | */ |
| 998 | 998 | public function getVersion() |
| 999 | 999 | { |
@@ -1076,7 +1076,7 @@ discard block |
||
| 1076 | 1076 | /** |
| 1077 | 1077 | * Add an attribute. |
| 1078 | 1078 | * |
| 1079 | - * @param $attribute |
|
| 1079 | + * @param string $attribute |
|
| 1080 | 1080 | * @param $value |
| 1081 | 1081 | * @return $this |
| 1082 | 1082 | */ |
@@ -1151,7 +1151,7 @@ discard block |
||
| 1151 | 1151 | /** |
| 1152 | 1152 | * Set the output mode. |
| 1153 | 1153 | * |
| 1154 | - * @param $output |
|
| 1154 | + * @param string $output |
|
| 1155 | 1155 | * @return $this |
| 1156 | 1156 | */ |
| 1157 | 1157 | public function setOutput($output) |
@@ -1197,7 +1197,7 @@ discard block |
||
| 1197 | 1197 | /** |
| 1198 | 1198 | * Add a path by it's namespace hint. |
| 1199 | 1199 | * |
| 1200 | - * @param $namespace |
|
| 1200 | + * @param string $namespace |
|
| 1201 | 1201 | * @param $path |
| 1202 | 1202 | * @return $this |
| 1203 | 1203 | */ |
@@ -1280,7 +1280,7 @@ discard block |
||
| 1280 | 1280 | /** |
| 1281 | 1281 | * Set the public base directory. |
| 1282 | 1282 | * |
| 1283 | - * @param $directory |
|
| 1283 | + * @param string $directory |
|
| 1284 | 1284 | * @return $this |
| 1285 | 1285 | */ |
| 1286 | 1286 | public function setDirectory($directory) |
@@ -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) |
@@ -455,6 +455,9 @@ discard block |
||
| 455 | 455 | return $this->translatedAttributes; |
| 456 | 456 | } |
| 457 | 457 | |
| 458 | + /** |
|
| 459 | + * @return string|null |
|
| 460 | + */ |
|
| 458 | 461 | public function getRelationKey() |
| 459 | 462 | { |
| 460 | 463 | return $this->translationForeignKey ?: $this->getForeignKey(); |
@@ -645,6 +648,9 @@ discard block |
||
| 645 | 648 | return parent::fill($attributes); |
| 646 | 649 | } |
| 647 | 650 | |
| 651 | + /** |
|
| 652 | + * @param string $key |
|
| 653 | + */ |
|
| 648 | 654 | private function getTranslationByLocaleKey($key) |
| 649 | 655 | { |
| 650 | 656 | foreach ($this->translations as $translation) { |
@@ -839,6 +845,9 @@ discard block |
||
| 839 | 845 | return $this->cascades; |
| 840 | 846 | } |
| 841 | 847 | |
| 848 | + /** |
|
| 849 | + * @param string $key |
|
| 850 | + */ |
|
| 842 | 851 | public function __get($key) |
| 843 | 852 | { |
| 844 | 853 | if ($this->hasHook($hook = 'get_' . $key)) { |
@@ -97,7 +97,6 @@ |
||
| 97 | 97 | * |
| 98 | 98 | * @param Image $image |
| 99 | 99 | * @param Asset $asset |
| 100 | - * @param IconRegistry $icons |
|
| 101 | 100 | */ |
| 102 | 101 | public function __construct(Image $image, Asset $asset) |
| 103 | 102 | { |