public function phpCodeStyle($opts = ['report' => false])
    {
        $report = isset($opts['report']) && $opts['report'] ? true : false;
        $paths = $this->getPaths();
        $this->stopOnFail(true);
        $this->info('Starting code style check for PHP source files');
        $command = $this->taskExec('php');
        $command
            ->arg(sprintf('%s/phpcs', $paths['lib']));
        if ($report) {
            $command->option('report=checkstyle');
            $command->option(sprintf('report-file=%s/checkstyle.xml', $paths['reports']));
            $command->option('warning-severity=0');
        }
        $command
            ->option(sprintf('standard=%s/phpcs.xml', $paths['build']))
            ->arg($paths['src'])
            ->printOutput($report ? false : true)
            ->run();
        $this->info('PHP source files passed code style check');
    }