Passed
Pull Request — master (#29)
by
unknown
01:30
created

Miscellaneous::mysql_inet_ntoa()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 2
nc 2
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Mhorninger\MySQLite\MySQL;
4
5
trait Miscellaneous
6
{
7
    //phpcs:disable
8
    public static function mysql_inet_ntoa($numeric)
9
    {
10
        //phpcs:enable
11
        if ($numeric && is_numeric($numeric)) {
12
            return long2ip(sprintf('%d', $numeric));
13
        }
14
    }
15
}
16