Completed
Push0c75f6...35d3bb
passed — Build
created

Double   A

↳ Parent: Project

Coupling/Cohesion

Components 0
Dependencies 1

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A isValid() 0 4 1
1
<?php namespace Rocket\Entities\Fields;
2
3
use Rocket\Entities\Field;
4
5
class Double extends Field
6
{
7
    public $table = 'field_double';
8
9
    /**
10
     * [email protected]}
11
     */
12 15
    protected function isValid($value)
13
    {
14 15
        return is_numeric($value);
15
    }
16
}
17