Completed
Branch dev-master (5a9550)
by Derek Stephen
02:00
created

RadioRender   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 20
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A renderBlock() 0 8 1
1
<?php
2
/**
3
 * User: delboy1978uk
4
 * Date: 04/12/2016
5
 * Time: 22:33
6
 */
7
8
namespace Del\Form\Renderer\Field;
9
10
use Del\Form\Field\FieldInterface;
11
use DOMElement;
12
13
class RadioRender extends AbstractFieldRender implements FieldRendererInterface
14
{
15
    /**
16
     * @param FieldInterface $field
17
     * @param DOMElement $fieldBlock
0 ignored issues
show
Bug introduced by
There is no parameter named $fieldBlock. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
18
     * @param DOMElement $labelBlock
0 ignored issues
show
Bug introduced by
There is no parameter named $labelBlock. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
19
     * @param DOMElement $element
20
     * @param DOMElement|null $errorBlock
0 ignored issues
show
Bug introduced by
There is no parameter named $errorBlock. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
21
     * @return DOMElement
22
     */
23 1
    public function renderBlock(FieldInterface $field, DOMElement $element)
24
    {
25
        /*
26
         * @todo take form renderer arg instead of field
27
         * @todo getters setters for error label etc in form renderer abstract
28
         */
29 1
        return $element;
30
    }
31
32
}