app/Console/Commands/CodeSniffer.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $process = new Process('php-cs-fixer fix '.app_path());
        try {
            $process->run(function ($type, $buffer) {
                if (Process::ERR === $type) {
                    $this->error($buffer);
                } else {
                    $this->info($buffer);
                }
            });
            $this->line('Finished.');
        } catch (Exception $e) {
            $this->error($e->getMessage());
        }
    }
public function handle ( ) { $ process = new Process ( 'php-cs-fixer fix ' . app_path ( ) ) ; try { $ process -> run ( function ( $ type , $ buffer ) { if ( Process :: ERR === $ type ) { $ this -> error ( $ buffer ) ; } else { $ this -> info ( $ buffer ) ; } } ) ; $ this -> line ( 'Finished.' ) ; } catch ( Exception $ e ) { $ this -> error ( $ e -> getMessage ( ) ) ; } }
Execute the console command.
Execute the console command .