public function getRequirementErrors(array $requirements)
    {
        $errors = array();
        foreach ($requirements as $items) {
            foreach ($items as $name => $info) {
                if (empty($info['status'])) {
                    $errors[$info['severity']][] = $name;
                }
            }
        }

        return $errors;
    }
public function getRequirementErrors(array $requirements)
    {
        $errors = array();
        foreach ($requirements as $items) {
            foreach ($items as $name => $info) {
                if (empty($info['status'])) {
                    $errors[$info['severity']][] = $name;
                }
            }
        }

        return $errors;
    }
public function getRequirementErrors ( array $ requirements ) { $ errors = array ( ) ; foreach ( $ requirements as $ items ) { foreach ( $ items as $ name => $ info ) { if ( empty ( $ info [ 'status' ] ) ) { $ errors [ $ info [ 'severity' ] ] [ ] = $ name ; } } } return $ errors ; }
Returns an array of requirements errors
@param array $requirements
@return array
Returns an array of requirements errors