correct PhpStorm code inspection warnings