Validation   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 4
Bugs 1 Features 0
Metric Value
eloc 5
c 4
b 1
f 0
dl 0
loc 9
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A initValidation() 0 6 2
1
<?php
2
3
4
namespace Alkoumi\LaravelArabicTafqeet\Helpers;
5
6
7
trait Validation
8
{
9
10
    public function initValidation()
11
    {
12
        if(is_numeric($this->parsed_number))
13
            return $this;
14
        else
15
            throw new \TypeError('The amount must be a numeric.');
16
    }
17
}
18