NoStylePalette   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getEntries() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AlecRabbit\Spinner\Core\Palette;
6
7
use AlecRabbit\Spinner\Core\Palette\A\APalette;
8
use AlecRabbit\Spinner\Core\Palette\Contract\IPaletteMode;
9
use AlecRabbit\Spinner\Core\Palette\Contract\IStylePalette;
10
use AlecRabbit\Spinner\Core\StyleFrame;
0 ignored issues
show
Bug introduced by
The type AlecRabbit\Spinner\Core\StyleFrame 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...
11
use Traversable;
12
13
final class NoStylePalette extends APalette implements IStylePalette
14
{
15
    protected function getEntries(?IPaletteMode $mode = null): Traversable
16
    {
17
        yield from [
18
            new StyleFrame('%s', 0),
19
        ];
20
    }
21
}
22