Total Complexity | 10 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 95.24% |
Changes | 0 |
1 | <?php |
||
12 | class SimpleSlidePresenter implements SlidePresenter { |
||
13 | |||
14 | public function __construct( |
||
15 | 3 | private array $parameters |
|
16 | 3 | ) { |
|
17 | 3 | } |
|
18 | |||
19 | 2 | public function getText( Subject $subject ): string { |
|
20 | 2 | return implode( '<br>', iterator_to_array( $this->getDisplayValues( $subject ) ) ); |
|
21 | } |
||
22 | |||
23 | 2 | private function getDisplayValues( Subject $subject ): Traversable { |
|
24 | 2 | foreach ( $subject->getPropertyValueCollections() as $propertyValues ) { |
|
25 | 2 | foreach ( $propertyValues->getDataItems() as $dataItem ) { |
|
26 | 2 | if ( !$this->isHiddenPrintRequest( $propertyValues->getPrintRequest() ) ) { |
|
27 | 2 | yield $this->getDisplayValue( $propertyValues->getPrintRequest(), $dataItem ); |
|
28 | } |
||
29 | } |
||
30 | } |
||
31 | 2 | } |
|
32 | |||
33 | 2 | private function isHiddenPrintRequest( PrintRequest $pr ): bool { |
|
35 | } |
||
36 | |||
37 | 2 | private function getDisplayValue( PrintRequest $pr, \SMWDataItem $dataItem ): string { |
|
46 | } |
||
47 | |||
48 | 2 | private function dataItemToText( \SMWDataItem $dataItem ): string { |
|
50 | } |
||
51 | |||
53 |
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