@@ -103,10 +103,10 @@ discard block |
||
103 | 103 | { |
104 | 104 | $module = $this->find($name); |
105 | 105 | if ($module) { |
106 | - return $module->getPath() . '/'; |
|
106 | + return $module->getPath().'/'; |
|
107 | 107 | } |
108 | 108 | |
109 | - return $this->getPath() . '/' . Str::studly($name) . '/'; |
|
109 | + return $this->getPath().'/'.Str::studly($name).'/'; |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | public function getCached() |
158 | 158 | { |
159 | - return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () { |
|
159 | + return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() { |
|
160 | 160 | return $this->getModel()->all(); |
161 | 161 | }); |
162 | 162 | } |
@@ -19,9 +19,7 @@ discard block |
||
19 | 19 | /** |
20 | 20 | * Creates a new Module instance. |
21 | 21 | * |
22 | - * @param Container $app |
|
23 | - * @param string $args |
|
24 | - * @param string $path |
|
22 | + * @param string[] $args |
|
25 | 23 | * |
26 | 24 | * @return DatabaseModule |
27 | 25 | */ |
@@ -62,7 +60,7 @@ discard block |
||
62 | 60 | /** |
63 | 61 | * Determine whether the given module exist. |
64 | 62 | * |
65 | - * @param $name |
|
63 | + * @param string $name |
|
66 | 64 | * |
67 | 65 | * @return bool |
68 | 66 | */ |
@@ -103,7 +101,7 @@ discard block |
||
103 | 101 | /** |
104 | 102 | * Get module path for a specific module. |
105 | 103 | * |
106 | - * @param $name |
|
104 | + * @param string $name |
|
107 | 105 | * |
108 | 106 | * @return string |
109 | 107 | */ |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $this->registerMigrations(); |
19 | 19 | |
20 | 20 | $this->publishes([ |
21 | - __DIR__ . '/../../database/migrations' => database_path('migrations'), |
|
21 | + __DIR__.'/../../database/migrations' => database_path('migrations'), |
|
22 | 22 | ], 'module-migrations'); |
23 | 23 | } |
24 | 24 | } |
@@ -33,6 +33,6 @@ discard block |
||
33 | 33 | |
34 | 34 | private function registerMigrations() |
35 | 35 | { |
36 | - $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); |
|
36 | + $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); |
|
37 | 37 | } |
38 | 38 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('modules', function (Blueprint $table) { |
|
16 | + Schema::create('modules', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('path'); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | public function generateFiles() |
78 | 78 | { |
79 | 79 | foreach ($this->getFiles() as $stub => $file) { |
80 | - $path = $this->module->getModulePath($this->getName()) . $file; |
|
80 | + $path = $this->module->getModulePath($this->getName()).$file; |
|
81 | 81 | |
82 | 82 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
83 | 83 | $this->filesystem->makeDirectory($dir, 0775, true); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | if (GenerateConfigReader::read('provider')->generate() === true) { |
110 | 110 | Artisan::call('module:make-provider', [ |
111 | - 'name' => $moduleName . 'ServiceProvider', |
|
111 | + 'name' => $moduleName.'ServiceProvider', |
|
112 | 112 | 'module' => $moduleName, |
113 | 113 | '--master' => true, |
114 | 114 | ]); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | if (GenerateConfigReader::read('controller')->generate() === true) { |
121 | 121 | $options = $this->type == 'api' ? ['--api' => true] : []; |
122 | 122 | Artisan::call('module:make-controller', [ |
123 | - 'controller' => $moduleName . 'Controller', |
|
123 | + 'controller' => $moduleName.'Controller', |
|
124 | 124 | 'module' => $moduleName, |
125 | 125 | ] + $options); |
126 | 126 | } |