Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | protected function configureContainer(ContainerBuilder $containerBuilder): void |
||
31 | { |
||
32 | $containerBuilder->loadFromExtension('framework', [ |
||
33 | 'secret' => 'my-secret', |
||
34 | 'test' => true, |
||
35 | 'router' => [ |
||
36 | 'utf8' => true, |
||
37 | ], |
||
38 | ]); |
||
39 | |||
40 | $containerBuilder->loadFromExtension('my_poseo', [ |
||
41 | 'api' => [ |
||
42 | 'key' => 'my_key', |
||
43 | 'http_client' => null, |
||
44 | 'type' => [ |
||
45 | 'search' => [ |
||
46 | 'base_url' => 'http://api.myposeo.com/m/apiv2', |
||
47 | ], |
||
48 | ], |
||
49 | ], |
||
50 | ]); |
||
51 | } |
||
52 | } |
||
69 |
This check looks for classes that have been defined more than once in the same file.
If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.