protected function getRunner(&$errors)
    {
        $output = $this->output;
        $runner = function ($err) use ($output, &$errors) {
            if (!empty($err)) {
                $output->writeln('<fg=red>FAILED</>');
                $errors = array_merge($errors, $err);
            } else {
                $output->writeln('<info>OK</info>');
            }
        };

        return $runner;
    }
protected function getRunner(&$errors)
    {
        $output = $this->output;
        $runner = function ($err) use ($output, &$errors) {
            if (!empty($err)) {
                $output->writeln('<fg=red>FAILED</>');
                $errors = array_merge($errors, $err);
            } else {
                $output->writeln('<info>OK</info>');
            }
        };

        return $runner;
    }
protected function getRunner ( & $ errors ) { $ output = $ this -> output ; $ runner = function ( $ err ) use ( $ output , & $ errors ) { if ( ! empty ( $ err ) ) { $ output -> writeln ( '<fg=red>FAILED</>' ) ; $ errors = array_merge ( $ errors , $ err ) ; } else { $ output -> writeln ( '<info>OK</info>' ) ; } } ; return $ runner ; }
Returns the runner.

@param array $errors

@return callable
Returns the runner .