phpcs refacotres the code