@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @param Container $app |
46 | 46 | * @param $name |
47 | - * @param $path |
|
47 | + * @param string $path |
|
48 | 48 | */ |
49 | 49 | public function __construct(Container $app, $name, $path) |
50 | 50 | { |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | /** |
189 | 189 | * Get json contents from the cache, setting as needed. |
190 | 190 | * |
191 | - * @param $file |
|
191 | + * @param string $file |
|
192 | 192 | * |
193 | 193 | * @return Json |
194 | 194 | */ |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | /** |
220 | 220 | * Get a specific data from composer.json file by given the key. |
221 | 221 | * |
222 | - * @param $key |
|
222 | + * @param string $key |
|
223 | 223 | * @param null $default |
224 | 224 | * |
225 | 225 | * @return mixed |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | /** |
298 | 298 | * Determine whether the given status same with the current module status. |
299 | 299 | * |
300 | - * @param $status |
|
300 | + * @param integer $status |
|
301 | 301 | * |
302 | 302 | * @return bool |
303 | 303 | */ |
@@ -349,9 +349,9 @@ discard block |
||
349 | 349 | /** |
350 | 350 | * Set active state for current module. |
351 | 351 | * |
352 | - * @param $active |
|
352 | + * @param integer $active |
|
353 | 353 | * |
354 | - * @return bool |
|
354 | + * @return integer |
|
355 | 355 | */ |
356 | 356 | public function setActive($active) |
357 | 357 | { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function setupStubPath() |
58 | 58 | { |
59 | - Stub::setBasePath(__DIR__ . '/Commands/stubs'); |
|
59 | + Stub::setBasePath(__DIR__.'/Commands/stubs'); |
|
60 | 60 | |
61 | 61 | switch (get_class($this->app)) { |
62 | 62 | // // Lumen doesn't support boot() |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | } |
67 | 67 | break; |
68 | 68 | default: |
69 | - $this->app->booted(function ($app) { |
|
69 | + $this->app->booted(function($app) { |
|
70 | 70 | if ($app['modules']->config('stubs.enabled') === true) { |
71 | 71 | Stub::setBasePath($app['modules']->config('stubs.path')); |
72 | 72 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | protected function registerNamespaces() |
82 | 82 | { |
83 | - $configPath = __DIR__ . '/../config/config.php'; |
|
83 | + $configPath = __DIR__.'/../config/config.php'; |
|
84 | 84 | |
85 | 85 | $this->mergeConfigFrom($configPath, 'modules'); |
86 | 86 | $this->publishes([ |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | protected function registerServices() |
95 | 95 | { |
96 | - $this->app->singleton('modules', function ($app) { |
|
96 | + $this->app->singleton('modules', function($app) { |
|
97 | 97 | $path = $app['config']->get('modules.paths.modules'); |
98 | 98 | |
99 | 99 | return new Repository($app, $path); |