Issues (1426)

app/src/DependencyInjection/Configuration.php (23 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
3
namespace Db3v4l\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
0 ignored issues
show
The type Symfony\Component\Config...ion\Builder\TreeBuilder 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 Symfony\Component\Config\Definition\ConfigurationInterface;
0 ignored issues
show
The type Symfony\Component\Config...\ConfigurationInterface 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
8
class Configuration implements ConfigurationInterface
0 ignored issues
show
Missing doc comment for class Configuration
Loading history...
9
{
10
    public function getConfigTreeBuilder()
0 ignored issues
show
Missing doc comment for function getConfigTreeBuilder()
Loading history...
11
    {
12
        $treeBuilder = new TreeBuilder('db3v4l');
13
14
        $treeBuilder->getRootNode()
15
            ->children()
16
                ->arrayNode('database_instances')
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 16
Loading history...
17
                    ->useAttributeAsKey('name')
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 20
Loading history...
18
                    ->arrayPrototype()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 20
Loading history...
19
                        ->children()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 24
Loading history...
20
                            /// @todo check which ones of these are mandatory; which ones can have requirements added
21
                            ->scalarNode('charset')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
22
                            ->scalarNode('driver')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
23
                            ->scalarNode('host')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
24
                            ->scalarNode('password')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
25
                            ->scalarNode('path')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
26
                            ->scalarNode('port')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
27
                            ->scalarNode('servicename')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
28
                            ->scalarNode('user')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
29
                            ->scalarNode('vendor')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
30
                            ->scalarNode('version')->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 28
Loading history...
31
                        ->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 24
Loading history...
32
                    ->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 20
Loading history...
33
                ->end()
0 ignored issues
show
Object operator not indented correctly; expected 12 spaces but found 16
Loading history...
34
            ->end()
0 ignored issues
show
Space after closing parenthesis of function call prohibited
Loading history...
35
        ;
36
37
        return $treeBuilder;
38
    }
39
}
40