lennerd / vipx-bot-detect

A bot detector written in PHP
MIT License
43 stars 18 forks source link

Refactor: MetadataInterface API #48

Open bpolaszek opened 3 years ago

bpolaszek commented 3 years ago

Depends on #47.

This PR refactors MetadataInterface::getIp() to MetadataInterface::getIps() as a bot can have 0, 1 or several IPs. Metadata::match() has also been rewritten for a better readability.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+1.1%) to 96.875% when pulling 43d364f371371fd3fd5e341d02594c63fe076090 on bpolaszek:fix/api into b35c10c99841f6372646dd26429ed140137febb1 on lennerd:master.