Passed
Push — master ( 1afa4d...c3dc3d )
by Caen
02:58 queued 13s
created

HydeBuildSitemapCommand::runPreflightCheck()   A

Complexity

Conditions 6
Paths 9

Size

Total Lines 20
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 6
eloc 11
nc 9
nop 0
dl 0
loc 20
rs 9.2222
c 0
b 0
f 0
1
<?php
2
3
namespace Hyde\Framework\Commands;
4
5
use Hyde\Framework\Actions\PostBuildTasks\GenerateSitemap;
6
use LaravelZero\Framework\Commands\Command;
7
8
/**
9
 * Hyde command to run the build process for the sitemap.
10
 *
11
 * @see \Hyde\Framework\Testing\Feature\Commands\HydeBuildSitemapCommandTest
12
 */
13
class HydeBuildSitemapCommand extends Command
14
{
15
    protected $signature = 'build:sitemap';
16
    protected $description = 'Generate the sitemap.xml';
17
18
    public function handle(): int
19
    {
20
        return (new GenerateSitemap($this->output))->handle() ?? 0;
21
    }
22
}
23