ConfigurableBundleInterface::buildConfiguration()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace Knp\RadBundle\AppBundle;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\Config\Definition\Builder\NodeParentInterface;
7
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
8
9
interface ConfigurableBundleInterface extends BundleInterface
10
{
11
    /**
12
     * Configure the root node of a given application using the
13
     * RadBundle.
14
     *
15
     * @param NodeParentInterface $rootNode
16
     */
17
    public function buildConfiguration(NodeParentInterface $rootNode);
18
19
    /**
20
     * Configure the container. Replace the standard bundle extension load method.
21
     *
22
     * @param array            $config,   The parsed config
0 ignored issues
show
Documentation introduced by
There is no parameter named $config,. Did you maybe mean $config?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
23
     * @param ContainerBuilder $container
24
     */
25
    public function buildContainer(array $config, ContainerBuilder $container);
26
}
27