src/Controller/Plugin/Prerequisites.php
public function check($directories = null)
    {
        null == $directories && $directories = $this->directories;
        $return = array();
        $valid  = true;

        foreach ($directories as $path => $validationSpec) {
            $result                       = $this->checkDirectory($path, $validationSpec);
            $return['directories'][$path] = $result;
            $valid                        = $valid && $result['valid'];
        }
        $return['valid'] = $valid;

        return $return;
    }
public function check($directories = null)
    {
        null == $directories && $directories = $this->directories;
        $return = array();
        $valid  = true;

        foreach ($directories as $path => $validationSpec) {
            $result                       = $this->checkDirectory($path, $validationSpec);
            $return['directories'][$path] = $result;
            $valid                        = $valid && $result['valid'];
        }
        $return['valid'] = $valid;

        return $return;
    }
public function check ( $ directories = null ) { null == $ directories && $ directories = $ this -> directories ; $ return = array ( ) ; $ valid = true ; foreach ( $ directories as $ path => $ validationSpec ) { $ result = $ this -> checkDirectory ( $ path , $ validationSpec ) ; $ return [ 'directories' ] [ $ path ] = $ result ; $ valid = $ valid && $ result [ 'valid' ] ; } $ return [ 'valid' ] = $ valid ; return $ return ; }
Checks directories.

Calls {@link checkDirectory()} for each directory in the array.
Checks, if all directories has passed as valid according to the specs.

@param null|array $directories

@return array
Checks directories .