protected function psr2format()
    {
        $phpcbf = 'vendor' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'phpcbf';

        if (!file_exists($phpcbf)) {
            throw new InvalidArgumentException("phpcbf is not present in the vendor directory. Are all the require-dev packages still present?");
        }

        system(sprintf("./%s -w src --standard=PSR2", $phpcbf));
        system(sprintf("./%s -w test --standard=PSR2", $phpcbf));
    }
protected function psr2format()
    {
        $phpcbf = 'vendor' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'phpcbf';

        if (!file_exists($phpcbf)) {
            throw new InvalidArgumentException("phpcbf is not present in the vendor directory. Are all the require-dev packages still present?");
        }

        system(sprintf("./%s -w src --standard=PSR2", $phpcbf));
        system(sprintf("./%s -w test --standard=PSR2", $phpcbf));
    }
protected function psr2format ( ) { $ phpcbf = 'vendor' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'phpcbf' ; if ( ! file_exists ( $ phpcbf ) ) { throw new InvalidArgumentException ( "phpcbf is not present in the vendor directory. Are all the require-dev packages still present?" ) ; } system ( sprintf ( "./%s -w src --standard=PSR2" , $ phpcbf ) ) ; system ( sprintf ( "./%s -w test --standard=PSR2" , $ phpcbf ) ) ; }
Formats Strata files in the PSR2 format
using phpcbf
Formats Strata files in the PSR2 format using phpcbf