### Maximum   A last analyzed 2018-05-12 04:28 UTC

#### Complexity

 Total Complexity 7

#### Size/Duplication

 Total Lines 36 Duplicated Lines 100 %

#### Coupling/Cohesion

 Components 1 Dependencies 2

#### Test Coverage

 Coverage 100%

#### Importance

 Changes 0
Metric Value
dl 36
loc 36
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0
wmc 7
lcom 1
cbo 2

#### 2 Methods

Rating   Name   Duplication   Size   Complexity
A __construct() 4 4 1
B validate() 15 15 6

#### Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

 1 `precision = \$precision;` 25 10 ` }` 26 27 ` /**` 28 ` * {@inheritdoc}` 29 ` */` 30 10 ` public function validate(\$value, \$parameter, Validator \$validator)` 31 ` {` 32 10 ` Assert::type(\$parameter, 'number', self::KEYWORD, \$validator->getSchemaPath());` 33 34 8 ` if (isset(\$validator->getSchema()->exclusiveMaximum) && \$validator->getSchema()->exclusiveMaximum === true) {` 35 4 ` return;` 36 ` }` 37 38 8 ` if (!is_numeric(\$value) ||` 39 8 ` bccomp(\$value, \$parameter, \$this->precision) === -1 || bccomp(\$value, \$parameter, \$this->precision) === 0) {` 40 8 ` return null;` 41 ` }` 42 43 6 ` return error('The number must be less than {parameter}.', \$validator);` 44 ` }` 45 `}` 46