phpcs errors corrected