@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * Get a specific data from composer.json file by given the key. |
247 | 247 | * |
248 | - * @param $key |
|
248 | + * @param string $key |
|
249 | 249 | * @param null $default |
250 | 250 | * |
251 | 251 | * @return mixed |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | /** |
321 | 321 | * Determine whether the given status same with the current module status. |
322 | 322 | * |
323 | - * @param bool $status |
|
323 | + * @param integer $status |
|
324 | 324 | * |
325 | 325 | * @return bool |
326 | 326 | */ |
@@ -352,9 +352,9 @@ discard block |
||
352 | 352 | /** |
353 | 353 | * Set active state for current module. |
354 | 354 | * |
355 | - * @param bool $active |
|
355 | + * @param integer $active |
|
356 | 356 | * |
357 | - * @return void |
|
357 | + * @return boolean |
|
358 | 358 | */ |
359 | 359 | public function setActive(int $active): bool |
360 | 360 | { |
@@ -138,7 +138,7 @@ |
||
138 | 138 | /** |
139 | 139 | * Find a specific module. |
140 | 140 | * @param $name |
141 | - * @return \Nwidart\Modules\Contracts\ModuleInterface |
|
141 | + * @return null|Module |
|
142 | 142 | */ |
143 | 143 | public function find($name): ?\Nwidart\Modules\Contracts\ModuleInterface |
144 | 144 | { |
@@ -8,11 +8,9 @@ |
||
8 | 8 | use Illuminate\Filesystem\Filesystem; |
9 | 9 | use Illuminate\Foundation\AliasLoader; |
10 | 10 | use Illuminate\Foundation\ProviderRepository; |
11 | -use Illuminate\Support\Arr; |
|
12 | 11 | use Illuminate\Support\Str; |
13 | 12 | use Illuminate\Translation\Translator; |
14 | 13 | use Nwidart\Modules\Contracts\ActivatorInterface; |
15 | -use Nwidart\Modules\Entities\ModuleEntity; |
|
16 | 14 | use Nwidart\Modules\Json; |
17 | 15 | use Nwidart\Modules\Module as BaseModule; |
18 | 16 |