Components_Qc_Task_Cpd::validate PHP Method

validate() public method

Validate the preconditions required for this release task.
public validate ( array $options ) : array
$options array Additional options.
return array An empty array if all preconditions are met and a list of error messages otherwise.
    public function validate($options)
    {
        if (!class_exists('SebastianBergmann\\PHPCPD\\Detector\\Detector')) {
            return array('PHPCPD is not available!');
        }
    }