NumericExtended::mysql_mod()   A
last analyzed

Complexity

Conditions 3
Paths 2

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
eloc 2
c 1
b 0
f 0
nc 2
nop 2
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Mhorninger\MySQLite\MySQL;
4
5
trait NumericExtended
6
{
7
    // phpcs:disable
8
    public static function mysql_mod($number, $divisor)
9
    {
10
        //phpcs:enable
11
        if ($number && $divisor) {
12
            return fmod($number, $divisor);
13
        }
14
    }
15
}
16