Passed
Push — master ( 203229...773eda )
by Bruno
09:51
created

RenderableBootstrapInputTrait::_editable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 3
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Formularium\Frontend\Bootstrap;
4
5
use Formularium\Field;
6
use Formularium\HTMLNode;
7
8
trait RenderableBootstrapInputTrait
9
{
10
    use RenderableBootstrapTrait;
11
12
    /**
13
     * Subcall of wrapper editable()
14
     *
15
     * @param mixed $value
16
     * @param Field $field
17
     * @param HTMLNode $previous
18
     * @return HTMLNode
19
     */
20
    public function viewable($value, Field $field, HTMLNode $previous): HTMLNode
0 ignored issues
show
Unused Code introduced by
The parameter $field is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
    public function viewable($value, /** @scrutinizer ignore-unused */ Field $field, HTMLNode $previous): HTMLNode

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
    public function viewable(/** @scrutinizer ignore-unused */ $value, Field $field, HTMLNode $previous): HTMLNode

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
21
    {
22
        return $previous;
23
    }
24
25
    /**
26
     *
27
     *
28
     * @param mixed $value
29
     * @param Field $field
30
     * @param HTMLNode $previous
31
     * @return HTMLNode
32
     */
33
    public function _editable($value, Field $field, HTMLNode $previous): HTMLNode
34
    {
35
        return $this->bootstrapify($value, $field, $previous);
36
    }
37
}
38