@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | protected function getDestinationFilePath() |
| 79 | 79 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * @throws \InvalidArgumentException |
| 69 | 69 | * |
| 70 | - * @return mixed |
|
| 70 | + * @return Stub |
|
| 71 | 71 | */ |
| 72 | 72 | protected function getTemplateContents() |
| 73 | 73 | { |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * @return mixed |
|
| 110 | + * @return string |
|
| 111 | 111 | */ |
| 112 | 112 | protected function getDestinationFilePath() |
| 113 | 113 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @return mixed |
|
| 81 | + * @return string |
|
| 82 | 82 | */ |
| 83 | 83 | protected function getDestinationFilePath() |
| 84 | 84 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | - * @return mixed|string |
|
| 93 | + * @return string |
|
| 94 | 94 | */ |
| 95 | 95 | private function getModelName() |
| 96 | 96 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | protected function getDestinationFilePath() |
| 79 | 79 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | protected function getDestinationFilePath() |
| 79 | 79 | { |
@@ -126,9 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * Creates a new Module instance |
| 128 | 128 | * |
| 129 | - * @param Container $app |
|
| 130 | - * @param string $args |
|
| 131 | - * @param string $path |
|
| 129 | + * @param string[] $args |
|
| 132 | 130 | * @return \Nwidart\Modules\Module |
| 133 | 131 | */ |
| 134 | 132 | abstract protected function createModule(...$args); |
@@ -632,7 +630,7 @@ discard block |
||
| 632 | 630 | /** |
| 633 | 631 | * Get stub path. |
| 634 | 632 | * |
| 635 | - * @return string|null |
|
| 633 | + * @return string|boolean |
|
| 636 | 634 | */ |
| 637 | 635 | public function getStubPath() |
| 638 | 636 | { |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | /** |
| 240 | 240 | * Get a specific data from composer.json file by given the key. |
| 241 | 241 | * |
| 242 | - * @param $key |
|
| 242 | + * @param string $key |
|
| 243 | 243 | * @param null $default |
| 244 | 244 | * |
| 245 | 245 | * @return mixed |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | * |
| 245 | 245 | * @param $name |
| 246 | 246 | * |
| 247 | - * @return mixed |
|
| 247 | + * @return Module |
|
| 248 | 248 | * @throws \Nwidart\Modules\Exceptions\ModuleNotFoundException |
| 249 | 249 | */ |
| 250 | 250 | public function findOrFail(string $name) |
@@ -417,9 +417,7 @@ discard block |
||
| 417 | 417 | /** |
| 418 | 418 | * Creates a new Module instance |
| 419 | 419 | * |
| 420 | - * @param Container $app |
|
| 421 | - * @param string $args |
|
| 422 | - * @param string $path |
|
| 420 | + * @param string[] $args |
|
| 423 | 421 | * @return \Nwidart\Modules\Module |
| 424 | 422 | */ |
| 425 | 423 | abstract protected function createModule(...$args); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * @param string $name |
| 39 | 39 | * @param string $path |
| 40 | - * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model |
|
| 40 | + * @return boolean |
|
| 41 | 41 | */ |
| 42 | 42 | public static function findByNameOrCreate(string $name, string $path) |
| 43 | 43 | { |
@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | - * @param $column |
|
| 58 | - * @param $direction |
|
| 57 | + * @param string $column |
|
| 58 | + * @param string $direction |
|
| 59 | 59 | * @return \Illuminate\Database\Eloquent\Builder |
| 60 | 60 | */ |
| 61 | 61 | public static function orderBy($column, $direction) |