Miscellaneous   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A mysql_inet_ntoa() 0 5 3
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