Passed
Push — master ( bf42cc...349842 )
by Peter
05:57
created

Form::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 4
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Contact\Http\Controllers\Api;
6
7
use AbterPhp\Contact\Service\Execute\Form as RepoService;
8
use AbterPhp\Framework\Config\Provider as ConfigProvider;
0 ignored issues
show
Bug introduced by
The type AbterPhp\Framework\Config\Provider 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...
9
use AbterPhp\Framework\Databases\Queries\FoundRows;
10
use AbterPhp\Framework\Http\Controllers\ApiAbstract;
0 ignored issues
show
Bug introduced by
The type AbterPhp\Framework\Http\Controllers\ApiAbstract 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 Psr\Log\LoggerInterface;
12
13
class Form extends ApiAbstract
14
{
15
    const ENTITY_SINGULAR = 'form';
16
    const ENTITY_PLURAL   = 'forms';
17
18
    /**
19
     * Form constructor.
20
     *
21
     * @param LoggerInterface $logger
22
     * @param RepoService     $repoService
23
     * @param FoundRows       $foundRows
24
     * @param ConfigProvider  $configProvider
25
     */
26
    public function __construct(
27
        LoggerInterface $logger,
28
        RepoService $repoService,
29
        FoundRows $foundRows,
30
        ConfigProvider $configProvider
31
    ) {
32
        parent::__construct($logger, $repoService, $foundRows, $configProvider);
33
    }
34
}
35