Index: trunk/phase3/includes/IP.php |
— | — | @@ -174,17 +174,16 @@ |
175 | 175 | * @param $ip string Hex IP |
176 | 176 | * @return string |
177 | 177 | */ |
178 | | - public static function hexToIP($ip) |
179 | | - { |
| 178 | + public static function hexToIP( $ip ) { |
180 | 179 | // Converts a hexadecimal IP to nnn.nnn.nnn.nnn format |
181 | | - $dec = wfBaseConvert($ip, 16, 10); |
| 180 | + $dec = wfBaseConvert( $ip, 16, 10 ); |
182 | 181 | $parts[3] = $dec % 256; |
183 | 182 | $dec /= 256; |
184 | 183 | $parts[2] = $dec % 256; |
185 | 184 | $dec /= 256; |
186 | 185 | $parts[1] = $dec % 256; |
187 | 186 | $parts[0] = $dec / 256; |
188 | | - return implode('.', array_reverse($parts)); |
| 187 | + return implode( '.', array_reverse( $parts ) ); |
189 | 188 | } |
190 | 189 | |
191 | 190 | /** |