1 | <?php |
||
2 | |||
3 | /** |
||
4 | * This file is part of Cecil. |
||
5 | * |
||
6 | * (c) Arnaud Ligny <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace Cecil\Step; |
||
15 | |||
16 | use Cecil\Builder; |
||
17 | |||
18 | /** |
||
19 | * Step interface. |
||
20 | * |
||
21 | * This interface defines the methods that any step in the build process must implement. |
||
22 | * Steps are used to perform specific actions during the build process, such as generating |
||
23 | * pages, processing data, or applying transformations. |
||
24 | * |
||
25 | * @phpstan-import-type BuildOptions from Builder |
||
26 | */ |
||
27 | interface StepInterface |
||
28 | { |
||
29 | /** |
||
30 | * StepInterface constructor. |
||
31 | */ |
||
32 | public function __construct(Builder $builder); |
||
33 | |||
34 | /** |
||
35 | * Returns the step name. |
||
36 | */ |
||
37 | public function getName(): string; |
||
38 | |||
39 | /** |
||
40 | * This method is called before the step is processed to initialize |
||
41 | * the step with necessary options and to determine if it can be executed. |
||
42 | * @param BuildOptions $options |
||
0 ignored issues
–
show
|
|||
43 | * @see Builder::OPTIONS |
||
44 | */ |
||
45 | public function init(array $options): void; |
||
46 | |||
47 | /** |
||
48 | * Method to know if the step can be processed. |
||
49 | */ |
||
50 | public function canProcess(): bool; |
||
51 | |||
52 | /** |
||
53 | * Process implementation. |
||
54 | */ |
||
55 | public function process(): void; |
||
56 | } |
||
57 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths