PackageDiscoverCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Hyde\Console\Commands;
6
7
use Hyde\Hyde;
8
use Illuminate\Foundation\Console\PackageDiscoverCommand as BaseCommand;
9
use Illuminate\Foundation\PackageManifest;
10
11
/**
12
 * Extended package discovery command to use the custom manifest path.
13
 */
14
class PackageDiscoverCommand extends BaseCommand
15
{
16
    /** @var true */
17
    protected $hidden = true;
18
19
    public function handle(PackageManifest $manifest): void
20
    {
21
        $manifest->manifestPath = Hyde::path('app/storage/framework/cache/packages.php');
0 ignored issues
show
Bug introduced by
The method path() does not exist on Hyde\Hyde. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
        /** @scrutinizer ignore-call */ 
22
        $manifest->manifestPath = Hyde::path('app/storage/framework/cache/packages.php');
Loading history...
22
        parent::handle($manifest);
23
    }
24
}
25