Fix PSR.
Fix type error of resource.