Fixed PhpStorm code inspection warnings