Completed
Push — master ( d0b6e5...91eaa9 )
by 39bac7f6
12:12
created
src/Commands/SeedMakeCommand.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Consigliere\Components\Commands;
4 4
 
5
-use Illuminate\Support\Str;
6 5
 use Consigliere\Components\Support\Stub;
7 6
 use Consigliere\Components\Traits\CanClearComponentsCache;
8 7
 use Consigliere\Components\Traits\ComponentCommandTrait;
8
+use Illuminate\Support\Str;
9 9
 use Symfony\Component\Console\Input\InputArgument;
10 10
 use Symfony\Component\Console\Input\InputOption;
11 11
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     }
47 47
 
48 48
     /**
49
-     * @return mixed
49
+     * @return string
50 50
      */
51 51
     protected function getTemplateContents()
52 52
     {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-     * @return mixed
67
+     * @return string
68 68
      */
69 69
     protected function getDestinationFilePath()
70 70
     {
Please login to merge, or discard this patch.
src/Component.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @param Application $app
37 37
      * @param             $name
38
-     * @param             $path
38
+     * @param             string $path
39 39
      */
40 40
     public function __construct(Application $app, $name, $path)
41 41
     {
@@ -169,6 +169,7 @@  discard block
 block discarded – undo
169 169
     /**
170 170
      * Get json contents.
171 171
      *
172
+     * @param string $file
172 173
      * @return Json
173 174
      */
174 175
     public function json($file = null)
@@ -196,7 +197,7 @@  discard block
 block discarded – undo
196 197
     /**
197 198
      * Get a specific data from composer.json file by given the key.
198 199
      *
199
-     * @param      $key
200
+     * @param      string $key
200 201
      * @param null $default
201 202
      *
202 203
      * @return mixed
@@ -274,7 +275,7 @@  discard block
 block discarded – undo
274 275
     /**
275 276
      * Determine whether the given status same with the current component status.
276 277
      *
277
-     * @param $status
278
+     * @param integer $status
278 279
      *
279 280
      * @return bool
280 281
      */
@@ -326,9 +327,9 @@  discard block
 block discarded – undo
326 327
     /**
327 328
      * Set active state for current component.
328 329
      *
329
-     * @param $active
330
+     * @param integer $active
330 331
      *
331
-     * @return bool
332
+     * @return integer
332 333
      */
333 334
     public function setActive($active)
334 335
     {
@@ -338,7 +339,7 @@  discard block
 block discarded – undo
338 339
     /**
339 340
      * Disable the current component.
340 341
      *
341
-     * @return bool
342
+     * @return boolean|null
342 343
      */
343 344
     public function disable()
344 345
     {
Please login to merge, or discard this patch.
src/Generators/ComponentGenerator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
      *
336 336
      * @param $stub
337 337
      *
338
-     * @return Stub
338
+     * @return string
339 339
      */
340 340
     protected function getStubContents($stub)
341 341
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Consigliere\Components\Generators;
4 4
 
5
+use Consigliere\Components\Repository;
6
+use Consigliere\Components\Support\Stub;
5 7
 use Illuminate\Config\Repository as Config;
6 8
 use Illuminate\Console\Command as Console;
7 9
 use Illuminate\Filesystem\Filesystem;
8 10
 use Illuminate\Support\Str;
9
-use Consigliere\Components\Repository;
10
-use Consigliere\Components\Support\Stub;
11 11
 
12 12
 class ComponentGenerator extends Generator
13 13
 {
Please login to merge, or discard this patch.
src/Migrations/Migrator.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Consigliere\Components\Migrations;
4 4
 
5
-use Illuminate\Support\Collection;
6 5
 use Consigliere\Components\Component;
6
+use Illuminate\Support\Collection;
7 7
 
8 8
 class Migrator
9 9
 {
Please login to merge, or discard this patch.
src/Migrations/Seeder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Consigliere\Components\Migrations;
4 4
 
5
-use Illuminate\Support\Collection;
6 5
 use Consigliere\Components\Component;
7 6
 
8 7
 class Seeder
Please login to merge, or discard this patch.
src/Process/Installer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     /**
99 99
      * Set console command instance.
100 100
      *
101
-     * @param \Consigliere\Components\Process\Command $console
101
+     * @param \Consigliere\Components\Commands\InstallCommand $console
102 102
      *
103 103
      * @return $this
104 104
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Consigliere\Components\Process;
4 4
 
5
-use Illuminate\Console\Command as ComponentCommand;
6
-use Illuminate\Support\Str;
7 5
 use Consigliere\Components\Repository;
6
+use Illuminate\Support\Str;
8 7
 use Symfony\Component\Process\Process;
9 8
 
10 9
 class Installer
Please login to merge, or discard this patch.
src/Publishing/Publisher.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     /**
89 89
      * Get component instance.
90 90
      *
91
-     * @return \Consigliere\Components\Component
91
+     * @return string
92 92
      */
93 93
     public function getComponent()
94 94
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Consigliere\Components\Publishing;
4 4
 
5
-use Illuminate\Console\Command;
6
-use Consigliere\Components\Contracts\PublisherInterface;
7 5
 use Consigliere\Components\Component;
6
+use Consigliere\Components\Contracts\PublisherInterface;
8 7
 use Consigliere\Components\Repository;
8
+use Illuminate\Console\Command;
9 9
 
10 10
 abstract class Publisher implements PublisherInterface
11 11
 {
Please login to merge, or discard this patch.
src/Repository.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * Get scanned components paths.
91 91
      *
92
-     * @return array
92
+     * @return string[]
93 93
      */
94 94
     public function getScanPaths()
95 95
     {
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     /**
368 368
      * Get component path for a specific component.
369 369
      *
370
-     * @param $component
370
+     * @param string $component
371 371
      *
372 372
      * @return string
373 373
      */
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
     /**
396 396
      * Get a specific config data from a configuration file.
397 397
      *
398
-     * @param      $key
398
+     * @param      string $key
399 399
      *
400 400
      * @param null $default
401 401
      *
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
     /**
438 438
      * Get component used for cli session.
439 439
      *
440
-     * @return string
440
+     * @return Component
441 441
      */
442 442
     public function getUsedNow()
443 443
     {
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
     /**
448 448
      * Get used now.
449 449
      *
450
-     * @return string
450
+     * @return Component
451 451
      */
452 452
     public function getUsed()
453 453
     {
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
      *
522 522
      * @param string $name
523 523
      *
524
-     * @return bool
524
+     * @return boolean|null
525 525
      */
526 526
     public function enable($name)
527 527
     {
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
      *
534 534
      * @param string $name
535 535
      *
536
-     * @return bool
536
+     * @return boolean|null
537 537
      */
538 538
     public function disable($name)
539 539
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Consigliere\Components;
4 4
 
5
-use Countable;
6
-use Illuminate\Foundation\Application;
7
-use Illuminate\Support\Str;
8 5
 use Consigliere\Components\Contracts\RepositoryInterface;
9 6
 use Consigliere\Components\Exceptions\ComponentNotFoundException;
10 7
 use Consigliere\Components\Process\Installer;
11 8
 use Consigliere\Components\Process\Updater;
9
+use Countable;
10
+use Illuminate\Foundation\Application;
11
+use Illuminate\Support\Str;
12 12
 
13 13
 class Repository implements RepositoryInterface, Countable
14 14
 {
Please login to merge, or discard this patch.
src/Support/Migrations/NameParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     /**
92 92
      * Get matches data from regex.
93 93
      *
94
-     * @return array
94
+     * @return string[]
95 95
      */
96 96
     public function getMatches()
97 97
     {
Please login to merge, or discard this patch.