| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 11 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 43 | public function getHostName()  | 
            ||
| 44 |     { | 
            ||
| 45 | // make sure we got a valid IP otherwise gethostbyaddr() throws an error  | 
            ||
| 46 |         if (! $this->getProtocolType()) { | 
            ||
| 47 | return false;  | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 | $ipAddr = $this->getIp();  | 
            ||
| 51 | $host = gethostbyaddr($ipAddr);  | 
            ||
| 52 | |||
| 53 | return $host === $ipAddr ? false : $host;  | 
            ||
| 54 | }  | 
            ||
| 69 |