src/Controller/Plugin/Prerequisites.php
public function validateDirectory($result, $spec)
    {
        $spec  = explode('|', $spec);
        $valid = false;

        foreach ($spec as $s) {
            if (isset($result[$s]) && $result[$s]) {
                $valid = true;
                break;
            }
        }

        return $valid;
    }
public function validateDirectory($result, $spec)
    {
        $spec  = explode('|', $spec);
        $valid = false;

        foreach ($spec as $s) {
            if (isset($result[$s]) && $result[$s]) {
                $valid = true;
                break;
            }
        }

        return $valid;
    }
public function validateDirectory ( $ result , $ spec ) { $ spec = explode ( '|' , $ spec ) ; $ valid = false ; foreach ( $ spec as $ s ) { if ( isset ( $ result [ $ s ] ) && $ result [ $ s ] ) { $ valid = true ; break ; } } return $ valid ; }
Validates a directory according to the spec

@param array  $result
@param string $spec

@return bool
Validates a directory according to the spec