fix pathinfo on phpcs