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

HydeBuildSearchCommand::guesstimateGenerationTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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