Passed
Branch master (9ff25d)
by Nicolas
03:59
created
src/Process/Installer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
         $process->setTimeout($this->timeout);
136 136
 
137 137
         if ($this->console instanceof Command) {
138
-            $process->run(function ($type, $line) {
138
+            $process->run(function($type, $line) {
139 139
                 $this->console->line($line);
140 140
             });
141 141
         }
Please login to merge, or discard this patch.
src/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
             return json_decode($this->getContents(), 1);
123 123
         }
124 124
 
125
-        return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function () {
125
+        return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function() {
126 126
             return json_decode($this->getContents(), 1);
127 127
         });
128 128
     }
Please login to merge, or discard this patch.
src/Commands/CommandCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-     * @return mixed
73
+     * @return string
74 74
      */
75 75
     protected function getDestinationFilePath()
76 76
     {
Please login to merge, or discard this patch.
src/Commands/GenerateFilterCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-     * @return mixed
73
+     * @return string
74 74
      */
75 75
     protected function getDestinationFilePath()
76 76
     {
Please login to merge, or discard this patch.
src/Commands/GenerateProviderCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-     * @return mixed
73
+     * @return string
74 74
      */
75 75
     protected function getDestinationFilePath()
76 76
     {
Please login to merge, or discard this patch.
src/Commands/MakeRequestCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-     * @return mixed
73
+     * @return string
74 74
      */
75 75
     protected function getDestinationFilePath()
76 76
     {
Please login to merge, or discard this patch.
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   +9 added lines, -10 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * Get scanned modules paths.
91 91
      *
92
-     * @return array
92
+     * @return string[]
93 93
      */
94 94
     public function getScanPaths()
95 95
     {
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     /**
328 328
      * Alternative for "find" method.
329 329
      *
330
-     * @param $name
330
+     * @param string $name
331 331
      */
332 332
     public function get($name)
333 333
     {
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     /**
366 366
      * Get module path for a specific module.
367 367
      *
368
-     * @param $module
368
+     * @param string $module
369 369
      *
370 370
      * @return string
371 371
      */
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     /**
394 394
      * Get a specific config data from a configuration file.
395 395
      *
396
-     * @param $key
396
+     * @param string $key
397 397
      *
398 398
      * @return mixed
399 399
      */
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
     /**
420 420
      * Set module used for cli session.
421 421
      *
422
-     * @param $name
422
+     * @param string $name
423 423
      *
424 424
      * @throws ModuleNotFoundException
425 425
      */
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
     /**
434 434
      * Get module used for cli session.
435 435
      *
436
-     * @return string
436
+     * @return Module
437 437
      */
438 438
     public function getUsedNow()
439 439
     {
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
     /**
444 444
      * Get used now.
445 445
      *
446
-     * @return string
446
+     * @return Module
447 447
      */
448 448
     public function getUsed()
449 449
     {
@@ -474,7 +474,6 @@  discard block
 block discarded – undo
474 474
      * Get asset url from a specific module.
475 475
      *
476 476
      * @param string $asset
477
-     * @param bool   $secure
478 477
      *
479 478
      * @return string
480 479
      */
@@ -518,7 +517,7 @@  discard block
 block discarded – undo
518 517
      *
519 518
      * @param string $name
520 519
      *
521
-     * @return bool
520
+     * @return boolean|null
522 521
      */
523 522
     public function enable($name)
524 523
     {
@@ -530,7 +529,7 @@  discard block
 block discarded – undo
530 529
      *
531 530
      * @param string $name
532 531
      *
533
-     * @return bool
532
+     * @return boolean|null
534 533
      */
535 534
     public function disable($name)
536 535
     {
Please login to merge, or discard this patch.
tests/JsonTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@  discard block
 block discarded – undo
12 12
     public function setUp()
13 13
     {
14 14
         parent::setUp();
15
-        $path = __DIR__ . '/stubs/module.json';
15
+        $path = __DIR__.'/stubs/module.json';
16 16
         $this->json = new Json($path, $this->app['files']);
17 17
     }
18 18
 
19 19
     /** @test */
20 20
     public function it_gets_the_file_path()
21 21
     {
22
-        $path = __DIR__ . '/stubs/module.json';
22
+        $path = __DIR__.'/stubs/module.json';
23 23
 
24 24
         $this->assertEquals($path, $this->json->getPath());
25 25
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /** @test */
52 52
     public function it_makes_json_class()
53 53
     {
54
-        $path = __DIR__ . '/stubs/module.json';
54
+        $path = __DIR__.'/stubs/module.json';
55 55
         $json = Json::make($path, $this->app['files']);
56 56
 
57 57
         $this->assertInstanceOf(Json::class, $json);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     /** @test */
61 61
     public function it_sets_a_path()
62 62
     {
63
-        $path = __DIR__ . '/stubs/module.json';
63
+        $path = __DIR__.'/stubs/module.json';
64 64
         $this->assertEquals($path, $this->json->getPath());
65 65
 
66 66
         $this->json->setPath('some/path.json');
@@ -126,6 +126,6 @@  discard block
 block discarded – undo
126 126
     ]
127 127
 }
128 128
 ';
129
-        $this->assertEquals($expected, (string)$this->json);
129
+        $this->assertEquals($expected, (string) $this->json);
130 130
     }
131 131
 }
Please login to merge, or discard this patch.
tests/ModuleTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public function setUp()
14 14
     {
15 15
         parent::setUp();
16
-        $this->module = new Module($this->app, 'Recipe', __DIR__ . '/stubs/Recipe');
16
+        $this->module = new Module($this->app, 'Recipe', __DIR__.'/stubs/Recipe');
17 17
     }
18 18
 
19 19
     /** @test */
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /** @test */
50 50
     public function it_gets_module_path()
51 51
     {
52
-        $this->assertEquals(__DIR__ . '/stubs/Recipe', $this->module->getPath());
52
+        $this->assertEquals(__DIR__.'/stubs/Recipe', $this->module->getPath());
53 53
     }
54 54
 
55 55
     /** @test */
Please login to merge, or discard this patch.