Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
NoopGeoLocation
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 locate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace CookieWarning;
4
5class NoopGeoLocation implements GeoLocation {
6
7    /**
8     * {@inheritdoc}
9     * @param string $ip The IP address to lookup
10     * @return bool|null NULL if no geolocation service configured, false on error, true otherwise.
11     */
12    public function locate( $ip ) {
13        return null;
14    }
15}