public function run()
{
$sequence = array();
if ($this->_doTask('unit')) {
$sequence[] = 'unit';
}
if ($this->_doTask('md')) {
$sequence[] = 'md';
}
if ($this->_doTask('cs')) {
$sequence[] = 'cs';
}
if ($this->_doTask('cpd')) {
$sequence[] = 'cpd';
}
if ($this->_doTask('lint')) {
$sequence[] = 'lint';
}
if ($this->_doTask('loc')) {
$sequence[] = 'loc';
}
if ($this->_doTask('dcd')) {
$sequence[] = 'dcd';
}
if (!empty($sequence)) {
$this->_qc->run($sequence, $this->_config->getComponent(), $this->_config->getOptions());
} else {
$this->_output->warn('Huh?! No tasks selected... All done!');
}
}