For future reference: PHPStorm users, remember to set the coding standard to "WordPress-Core" else it will use the default on give lots of false-positive warnings.