Test Failed
Push — main ( 4b9281...944d82 )
by Pieter
02:40
created

UuidPlugin::getNormalizers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Apie\UuidPlugin;
4
5
use Apie\Core\PluginInterfaces\NormalizerProviderInterface;
0 ignored issues
show
Bug introduced by
The type Apie\Core\PluginInterfac...alizerProviderInterface 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...
6
use Apie\Core\PluginInterfaces\SchemaProviderInterface;
0 ignored issues
show
Bug introduced by
The type Apie\Core\PluginInterfaces\SchemaProviderInterface 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...
7
use Apie\OpenapiSchema\Factories\SchemaFactory;
0 ignored issues
show
Bug introduced by
The type Apie\OpenapiSchema\Factories\SchemaFactory 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...
8
use Apie\UuidPlugin\Normalizers\UuidNormalizer;
9
use Ramsey\Uuid\UuidInterface;
10
11
class UuidPlugin implements NormalizerProviderInterface, SchemaProviderInterface
12
{
13
    /**
14
     * {@inheritDoc}
15
     */
16
    public function getNormalizers(): array
17
    {
18
        return [
19
            new UuidNormalizer()
20
        ];
21
    }
22
23
    /**
24
     * {@inheritDoc}
25
     */
26
    public function getDefinedStaticData(): array
27
    {
28
        return [
29
            UuidInterface::class => SchemaFactory::createStringSchema('uuid')
30
        ];
31
    }
32
33
    /**
34
     * {@inheritDoc}
35
     */
36
    public function getDynamicSchemaLogic(): array
37
    {
38
        return [];
39
    }
40
}
41