src/Loaders/ValidationLoader.php
/**
     * Loads and returns data.
     *
     * @return \ArrayAccess The array with the data
     */
Loads and returns data.
@return \ArrayAccess The array with the data
Loads and returns data . @return \ ArrayAccess The array with the data
public function load()
    {
        $data = array();
        if (is_array($validations = $this->getLoader()->load())) {
            foreach ($validations as $filename => $attributes) {
                foreach ($attributes as $line => $errors) {
                    foreach ($errors as $attributeCode => $message) {
                        $data[] = array(
                            'File'   => $filename,
                            'Line'   => $line,
                            'Column' => $attributeCode,
                            'Error'  => $message
                        );
                    }
                }
            }
        }
        return $data;
    }
public function load ( ) { $ data = array ( ) ; if ( is_array ( $ validations = $ this -> getLoader ( ) -> load ( ) ) ) { foreach ( $ validations as $ filename => $ attributes ) { foreach ( $ attributes as $ line => $ errors ) { foreach ( $ errors as $ attributeCode => $ message ) { $ data [ ] = array ( 'File' => $ filename , 'Line' => $ line , 'Column' => $ attributeCode , 'Error' => $ message ) ; } } } } return $ data ; }
Loads and returns data.
Loads and returns data .
// initialize the array for the assembled validations // load the validations from the wrapped loader // return the assembled validation data