Completed
Pull Request — master (#275)
by
unknown
04:25
created
src/Repository.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     public function getCached()
177 177
     {
178
-        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () {
178
+        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() {
179 179
             return $this->toCollection()->toArray();
180 180
         });
181 181
     }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     {
264 264
         $modules = $this->enabled();
265 265
 
266
-        uasort($modules, function (Module $a, Module $b) use ($direction) {
266
+        uasort($modules, function(Module $a, Module $b) use ($direction) {
267 267
             if ($a->order == $b->order) {
268 268
                 return 0;
269 269
             }
Please login to merge, or discard this patch.
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * Get scanned modules paths.
95 95
      *
96
-     * @return array
96
+     * @return string[]
97 97
      */
98 98
     public function getScanPaths()
99 99
     {
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
     /**
414 414
      * Get module path for a specific module.
415 415
      *
416
-     * @param $module
416
+     * @param string $module
417 417
      *
418 418
      * @return string
419 419
      */
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
     /**
442 442
      * Get a specific config data from a configuration file.
443 443
      *
444
-     * @param $key
444
+     * @param string $key
445 445
      * @param null $default
446 446
      *
447 447
      * @return mixed
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
     /**
489 489
      * Get module used for cli session.
490 490
      *
491
-     * @return string
491
+     * @return Module
492 492
      */
493 493
     public function getUsedNow()
494 494
     {
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
     /**
499 499
      * Get used now.
500 500
      *
501
-     * @return string
501
+     * @return Module
502 502
      */
503 503
     public function getUsed()
504 504
     {
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
      *
576 576
      * @param string $name
577 577
      *
578
-     * @return bool
578
+     * @return boolean|null
579 579
      */
580 580
     public function enable($name)
581 581
     {
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
      *
588 588
      * @param string $name
589 589
      *
590
-     * @return bool
590
+     * @return boolean|null
591 591
      */
592 592
     public function disable($name)
593 593
     {
Please login to merge, or discard this patch.
src/Module.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/LaravelModulesServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         Stub::setBasePath(__DIR__.'/Commands/stubs');
35 35
 
36
-        $this->app->booted(function ($app) {
36
+        $this->app->booted(function($app) {
37 37
             if ($app['modules']->config('stubs.enabled') === true) {
38 38
                 Stub::setBasePath($app['modules']->config('stubs.path'));
39 39
             }
Please login to merge, or discard this patch.
src/ModulesServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     protected function registerServices()
54 54
     {
55
-        $this->app->singleton('modules', function ($app) {
55
+        $this->app->singleton('modules', function($app) {
56 56
             $path = $app['config']->get('modules.paths.modules');
57 57
 
58 58
             return new Repository($app, $path);
Please login to merge, or discard this patch.