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

RadioRender::renderBlock()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 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
}