| @@ -46,7 +46,7 @@ discard block | ||
| 46 | 46 | } | 
| 47 | 47 | |
| 48 | 48 | /** | 
| 49 | - * @return Stub | |
| 49 | + * @return string | |
| 50 | 50 | */ | 
| 51 | 51 | protected function getTemplateContents() | 
| 52 | 52 |      { | 
| @@ -80,7 +80,7 @@ discard block | ||
| 80 | 80 | } | 
| 81 | 81 | |
| 82 | 82 | /** | 
| 83 | - * @return array|string | |
| 83 | + * @return string | |
| 84 | 84 | */ | 
| 85 | 85 | protected function getControllerName() | 
| 86 | 86 |      { | 
| @@ -67,7 +67,7 @@ discard block | ||
| 67 | 67 | /** | 
| 68 | 68 | * @throws InvalidMigrationNameException | 
| 69 | 69 | * | 
| 70 | - * @return mixed | |
| 70 | + * @return Stub | |
| 71 | 71 | */ | 
| 72 | 72 | protected function getTemplateContents() | 
| 73 | 73 |      { | 
| @@ -105,7 +105,7 @@ discard block | ||
| 105 | 105 | } | 
| 106 | 106 | |
| 107 | 107 | /** | 
| 108 | - * @return mixed | |
| 108 | + * @return string | |
| 109 | 109 | */ | 
| 110 | 110 | protected function getDestinationFilePath() | 
| 111 | 111 |      { | 
| @@ -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 |      { | 
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | } | 
| 58 | 58 | |
| 59 | 59 | /** | 
| 60 | - * @return mixed | |
| 60 | + * @return string | |
| 61 | 61 | */ | 
| 62 | 62 | protected function getTemplateContents() | 
| 63 | 63 |      { | 
| @@ -70,7 +70,7 @@ discard block | ||
| 70 | 70 | } | 
| 71 | 71 | |
| 72 | 72 | /** | 
| 73 | - * @return mixed | |
| 73 | + * @return string | |
| 74 | 74 | */ | 
| 75 | 75 | protected function getDestinationFilePath() | 
| 76 | 76 |      { | 
| @@ -335,7 +335,7 @@ | ||
| 335 | 335 | * | 
| 336 | 336 | * @param $stub | 
| 337 | 337 | * | 
| 338 | - * @return Stub | |
| 338 | + * @return string | |
| 339 | 339 | */ | 
| 340 | 340 | protected function getStubContents($stub) | 
| 341 | 341 |      { | 
| @@ -107,7 +107,7 @@ | ||
| 107 | 107 | /** | 
| 108 | 108 | * Get the services provided by the provider. | 
| 109 | 109 | * | 
| 110 | - * @return array | |
| 110 | + * @return string[] | |
| 111 | 111 | */ | 
| 112 | 112 | public function provides() | 
| 113 | 113 |      { | 
| @@ -55,7 +55,7 @@ discard block | ||
| 55 | 55 | */ | 
| 56 | 56 | public function setupStubPath() | 
| 57 | 57 |      { | 
| 58 | -        $this->app->booted(function ($app) { | |
| 58 | +        $this->app->booted(function($app) { | |
| 59 | 59 | Stub::setBasePath(__DIR__.'/Commands/stubs'); | 
| 60 | 60 | |
| 61 | 61 |              if ($app['modules']->config('stubs.enabled') === true) { | 
| @@ -69,7 +69,7 @@ discard block | ||
| 69 | 69 | */ | 
| 70 | 70 | protected function registerNamespaces() | 
| 71 | 71 |      { | 
| 72 | - $configPath = __DIR__ . '/../config/config.php'; | |
| 72 | + $configPath = __DIR__.'/../config/config.php'; | |
| 73 | 73 | $this->mergeConfigFrom($configPath, 'modules'); | 
| 74 | 74 | $this->publishes([ | 
| 75 | 75 |              $configPath => config_path('modules.php') | 
| @@ -97,7 +97,7 @@ discard block | ||
| 97 | 97 | */ | 
| 98 | 98 | protected function registerServices() | 
| 99 | 99 |      { | 
| 100 | -        $this->app->singleton('modules', function ($app) { | |
| 100 | +        $this->app->singleton('modules', function($app) { | |
| 101 | 101 |              $path = $app['config']->get('modules.paths.modules'); | 
| 102 | 102 | |
| 103 | 103 | return new Repository($app, $path); | 
| @@ -248,7 +248,7 @@ | ||
| 248 | 248 | * | 
| 249 | 249 | * @param array $migrations | 
| 250 | 250 | * | 
| 251 | - * @return array | |
| 251 | + * @return \Illuminate\Support\Collection | |
| 252 | 252 | */ | 
| 253 | 253 | public function getLast($migrations) | 
| 254 | 254 |      { | 
| @@ -60,7 +60,7 @@ discard block | ||
| 60 | 60 | return array(); | 
| 61 | 61 | } | 
| 62 | 62 | |
| 63 | -        $files = array_map(function ($file) { | |
| 63 | +        $files = array_map(function($file) { | |
| 64 | 64 |              return str_replace('.php', '', basename($file)); | 
| 65 | 65 | |
| 66 | 66 | }, $files); | 
| @@ -259,7 +259,7 @@ discard block | ||
| 259 | 259 | |
| 260 | 260 |          $result = $query->orderBy('migration', 'desc')->get(); | 
| 261 | 261 | |
| 262 | -        return collect($result)->map(function ($item) { | |
| 262 | +        return collect($result)->map(function($item) { | |
| 263 | 263 | return (array) $item; | 
| 264 | 264 |          })->lists('migration'); | 
| 265 | 265 | } | 
| @@ -34,8 +34,8 @@ discard block | ||
| 34 | 34 | * The constructor. | 
| 35 | 35 | * | 
| 36 | 36 | * @param Application $app | 
| 37 | - * @param $name | |
| 38 | - * @param $path | |
| 37 | + * @param string $name | |
| 38 | + * @param string $path | |
| 39 | 39 | */ | 
| 40 | 40 | public function __construct(Application $app, $name, $path) | 
| 41 | 41 |      { | 
| @@ -167,6 +167,7 @@ discard block | ||
| 167 | 167 | /** | 
| 168 | 168 | * Get json contents. | 
| 169 | 169 | * | 
| 170 | + * @param string $file | |
| 170 | 171 | * @return Json | 
| 171 | 172 | */ | 
| 172 | 173 | public function json($file = null) | 
| @@ -194,7 +195,7 @@ discard block | ||
| 194 | 195 | /** | 
| 195 | 196 | * Get a specific data from composer.json file by given the key. | 
| 196 | 197 | * | 
| 197 | - * @param $key | |
| 198 | + * @param string $key | |
| 198 | 199 | * @param null $default | 
| 199 | 200 | * | 
| 200 | 201 | * @return mixed | 
| @@ -272,7 +273,7 @@ discard block | ||
| 272 | 273 | /** | 
| 273 | 274 | * Determine whether the given status same with the current module status. | 
| 274 | 275 | * | 
| 275 | - * @param $status | |
| 276 | + * @param integer $status | |
| 276 | 277 | * | 
| 277 | 278 | * @return bool | 
| 278 | 279 | */ | 
| @@ -324,9 +325,9 @@ discard block | ||
| 324 | 325 | /** | 
| 325 | 326 | * Set active state for current module. | 
| 326 | 327 | * | 
| 327 | - * @param $active | |
| 328 | + * @param integer $active | |
| 328 | 329 | * | 
| 329 | - * @return bool | |
| 330 | + * @return integer | |
| 330 | 331 | */ | 
| 331 | 332 | public function setActive($active) | 
| 332 | 333 |      { | 
| @@ -336,7 +337,7 @@ discard block | ||
| 336 | 337 | /** | 
| 337 | 338 | * Disable the current module. | 
| 338 | 339 | * | 
| 339 | - * @return bool | |
| 340 | + * @return boolean|null | |
| 340 | 341 | */ | 
| 341 | 342 | public function disable() | 
| 342 | 343 |      { | 
| @@ -157,7 +157,7 @@ discard block | ||
| 157 | 157 |      { | 
| 158 | 158 | $lowerName = $this->getLowerName(); | 
| 159 | 159 | |
| 160 | - $langPath = $this->getPath() . "/Resources/lang"; | |
| 160 | + $langPath = $this->getPath()."/Resources/lang"; | |
| 161 | 161 | |
| 162 | 162 |          if (is_dir($langPath)) { | 
| 163 | 163 | $this->loadTranslationsFrom($langPath, $lowerName); | 
| @@ -175,7 +175,7 @@ discard block | ||
| 175 | 175 | $file = 'module.json'; | 
| 176 | 176 | } | 
| 177 | 177 | |
| 178 | - return new Json($this->getPath() . '/' . $file, $this->app['files']); | |
| 178 | + return new Json($this->getPath().'/'.$file, $this->app['files']); | |
| 179 | 179 | } | 
| 180 | 180 | |
| 181 | 181 | /** | 
| @@ -88,7 +88,7 @@ | ||
| 88 | 88 | /** | 
| 89 | 89 | * Get module instance. | 
| 90 | 90 | * | 
| 91 | - * @return \Nwidart\Modules\Module | |
| 91 | + * @return string | |
| 92 | 92 | */ | 
| 93 | 93 | public function getModule() | 
| 94 | 94 |      { |