parse error corrected
unwanted parameters removed
phpcs warnings and errors corrected