protected function parse($data = null, $filename = null)
    {
        // If we have a callable, run it and expect an array back
        if (is_callable($data)) {
            $data = call_user_func($data);
        }

        // Check for array, if its anything else, throw an exception
        if (!is_array($data)) {
            throw new UnsupportedFormatException('PHP data does not return an array');
        }

        return $data;
    }
protected function parse($data = null, $filename = null)
    {
        // If we have a callable, run it and expect an array back
        if (is_callable($data)) {
            $data = call_user_func($data);
        }

        // Check for array, if its anything else, throw an exception
        if (!is_array($data)) {
            throw new UnsupportedFormatException('PHP data does not return an array');
        }

        return $data;
    }
protected function parse ( $ data = null , $ filename = null ) { // If we have a callable, run it and expect an array back if ( is_callable ( $ data ) ) { $ data = call_user_func ( $ data ) ; } // Check for array, if its anything else, throw an exception if ( ! is_array ( $ data ) ) { throw new UnsupportedFormatException ( 'PHP data does not return an array' ) ; } return $ data ; }
Completes parsing of PHP data

@param  array $data
@param  string $filename

@return array|null
@throws UnsupportedFormatException
Completes parsing of PHP data