@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @param Application $app |
45 | 45 | * @param $name |
46 | - * @param $path |
|
46 | + * @param string $path |
|
47 | 47 | */ |
48 | 48 | public function __construct(Application $app, $name, $path) |
49 | 49 | { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | /** |
188 | 188 | * Get json contents from the cache, setting as needed. |
189 | 189 | * |
190 | - * @param $file |
|
190 | + * @param string $file |
|
191 | 191 | * |
192 | 192 | * @return Json |
193 | 193 | */ |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Get a specific data from composer.json file by given the key. |
220 | 220 | * |
221 | - * @param $key |
|
221 | + * @param string $key |
|
222 | 222 | * @param null $default |
223 | 223 | * |
224 | 224 | * @return mixed |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | /** |
297 | 297 | * Determine whether the given status same with the current module status. |
298 | 298 | * |
299 | - * @param $status |
|
299 | + * @param integer $status |
|
300 | 300 | * |
301 | 301 | * @return bool |
302 | 302 | */ |
@@ -348,9 +348,9 @@ discard block |
||
348 | 348 | /** |
349 | 349 | * Set active state for current module. |
350 | 350 | * |
351 | - * @param $active |
|
351 | + * @param integer $active |
|
352 | 352 | * |
353 | - * @return bool |
|
353 | + * @return integer |
|
354 | 354 | */ |
355 | 355 | public function setActive($active) |
356 | 356 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function setupStubPath() |
26 | 26 | { |
27 | - Stub::setBasePath(__DIR__ . '/Commands/stubs'); |
|
27 | + Stub::setBasePath(__DIR__.'/Commands/stubs'); |
|
28 | 28 | |
29 | 29 | if (app('modules')->config('stubs.enabled') === true) { |
30 | 30 | Stub::setBasePath(app('modules')->config('stubs.path')); |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | |
53 | 53 | $string = ''; |
54 | 54 | foreach ($pieces as $i => $piece) { |
55 | - if ($i+1 < count($pieces)) { |
|
56 | - $string .= strtolower($piece) . '_'; |
|
55 | + if ($i + 1 < count($pieces)) { |
|
56 | + $string .= strtolower($piece).'_'; |
|
57 | 57 | } else { |
58 | 58 | $string .= Str::plural(strtolower($piece)); |
59 | 59 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | private function handleOptionalMigrationOption() |
95 | 95 | { |
96 | 96 | if ($this->option('migration') === true) { |
97 | - $migrationName = 'create_' . $this->createMigrationName() . '_table'; |
|
97 | + $migrationName = 'create_'.$this->createMigrationName().'_table'; |
|
98 | 98 | $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]); |
99 | 99 | } |
100 | 100 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $seederPath = $this->laravel['modules']->config('paths.generator.model'); |
129 | 129 | |
130 | - return $path . $seederPath . '/' . $this->getModelName() . '.php'; |
|
130 | + return $path.$seederPath.'/'.$this->getModelName().'.php'; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | protected function registerNamespaces() |
45 | 45 | { |
46 | - $configPath = __DIR__ . '/../config/config.php'; |
|
46 | + $configPath = __DIR__.'/../config/config.php'; |
|
47 | 47 | |
48 | 48 | $this->mergeConfigFrom($configPath, 'modules'); |
49 | 49 | $this->publishes([ |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function registerServices() |
58 | 58 | { |
59 | - $this->app->singleton('modules', function ($app) { |
|
59 | + $this->app->singleton('modules', function($app) { |
|
60 | 60 | $path = $app['config']->get('modules.paths.modules'); |
61 | 61 | |
62 | 62 | return new Repository($app, $path); |