These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php declare(strict_types = 1); |
||
| 2 | |||
| 3 | namespace CircuitBreakerBundle\DependencyInjection; |
||
| 4 | |||
| 5 | use Symfony\Component\Config\FileLocator; |
||
| 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
| 7 | use Symfony\Component\DependencyInjection\Loader; |
||
| 8 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
||
| 9 | use CircuitBreakerBundle\DependencyInjection\Configuration; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @codeCoverageIgnore |
||
| 13 | * This is the class that loads and manages your bundle configuration |
||
| 14 | * |
||
| 15 | * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} |
||
| 16 | */ |
||
| 17 | class CircuitBreakerExtension extends Extension |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | public function load(array $configs, ContainerBuilder $container) |
||
| 23 | { |
||
| 24 | $configuration = new Configuration(); |
||
| 25 | $config = $this->processConfiguration($configuration, $configs); |
||
|
0 ignored issues
–
show
|
|||
| 26 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
|
0 ignored issues
–
show
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line. To visualize $a = "a";
$ab = "ab";
$abc = "abc";
will produce issues in the first and second line, while this second example $a = "a";
$ab = "ab";
$abc = "abc";
will produce no issues. Loading history...
|
|||
| 27 | $loader->load('services.yml'); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function getAlias() |
||
| 34 | { |
||
| 35 | return 'circtui_breaker'; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.