Issues (66)

src/Commands/GenerateSeoManagerData.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Lionix\SeoManager\Commands;
4
5
use Illuminate\Console\Command;
0 ignored issues
show
The type Illuminate\Console\Command was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Lionix\SeoManager\Traits\SeoManagerTrait;
7
8
class GenerateSeoManagerData extends Command
9
{
10
    use SeoManagerTrait;
11
    /**
12
     * The name and signature of the console command.
13
     *
14
     * @var string
15
     */
16
    protected $signature = 'seo-manager:generate';
17
18
    /**
19
     * The console command description.
20
     *
21
     * @var string
22
     */
23
    protected $description = 'Fill Seo Manager database table with routes data';
24
25
    /**
26
     * Create a new command instance.
27
     *
28
     * @return void
29
     */
30
    public function __construct()
31
    {
32
        parent::__construct();
33
    }
34
35
    /**
36
     * Execute the console command.
37
     *
38
     * @return mixed
39
     */
40
    public function handle()
41
    {
42
        $this->info('Import Started');
43
        $this->importRoutes();
44
        $this->info('Import Finished');
45
    }
46
}
47