Textarea   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A input() 0 4 1
A guarded() 0 4 1
1
<?php namespace Mascame\Artificer\Fields\Types;
2
3
use Form;
4
5
class Textarea extends Text
6
{
7
8
    public function input()
9
    {
10
        return Form::textarea($this->name, $this->value, $this->attributes->all());
0 ignored issues
show
Bug introduced by
The method textarea() 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...
11
    }
12
13
    public function guarded()
14
    {
15
        return "<div>" . $this->value . "</div>";
16
    }
17
18
}