| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public static function missingHost($path) |
||
| 26 | { |
||
| 27 | $msg = sprintf( |
||
| 28 | 'Path "%s" cannot be invalidated without a host. ' |
||
| 29 | . 'Either invalidate full URLs containing hostnames instead of paths ' |
||
| 30 | . 'or configure the caching proxy class with a hostname in the base path.', |
||
| 31 | $path |
||
| 32 | ); |
||
| 33 | |||
| 34 | return new MissingHostException($msg); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |