Checkbox   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A input() 0 11 1
1
<?php namespace Mascame\Artificer\Fields\Types;
2
3
use Form;
4
use Mascame\Artificer\Fields\Field;
5
6
class Checkbox extends Field
7
{
8
9
    public function input()
10
    {
11
        ?>
12
        <div class="checkbox">
13
            <?php
14
            print Form::hidden($this->name, 0);
0 ignored issues
show
Bug introduced by
The method hidden() does not seem to exist on object<form>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
15
            print Form::checkbox($this->name, 1, $this->value, $this->attributes->all());
0 ignored issues
show
Bug introduced by
The method checkbox() does not seem to exist on object<form>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
16
            ?>
17
        </div>
18
    <?php
19
    }
20
21
}