update phpcs ignore statements; PHPdoc indentation

This commit is contained in:
2020-05-10 12:13:39 +02:00
parent 31c04d6b92
commit aa9980106e
4 changed files with 15 additions and 10 deletions

View File

@ -319,15 +319,14 @@ class StatifyBlacklist {
'REMOTE_ADDR',
) as $k
) {
// @codingStandardsIgnoreStart The globals are checked.
if ( isset( $_SERVER[ $k ] ) ) {
// phpcs:ignore
foreach ( explode( ',', $_SERVER[ $k ] ) as $ip ) {
if ( false !== filter_var( $ip, FILTER_VALIDATE_IP ) ) {
return $ip;
}
}
}
// @codingStandardsIgnoreEnd
}
return false;