src/ConfigAdapterAbstract.php
protected function readFile(string $file) : array
    {
        if (!file_exists($file)) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Configuration %s is not exists',
                    $file
                ),
                E_WARNING
            );
        }

        if (!is_array(($configs = $this->parseFromFile($file)))) {
            throw new \RuntimeException(
                sprintf(
                    'Invalid %s configuration from file: %s',
                    ltrim(strrchr(get_class($this), '\\'), '\\'),
                    $file
                ),
                E_NOTICE
            );
        }

        return $configs;
    }
protected function readFile(string $file) : array
    {
        if (!file_exists($file)) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Configuration %s is not exists',
                    $file
                ),
                E_WARNING
            );
        }

        if (!is_array(($configs = $this->parseFromFile($file)))) {
            throw new \RuntimeException(
                sprintf(
                    'Invalid %s configuration from file: %s',
                    ltrim(strrchr(get_class($this), '\\'), '\\'),
                    $file
                ),
                E_NOTICE
            );
        }

        return $configs;
    }
protected function readFile ( string $ file ) : array { if ( ! file_exists ( $ file ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Configuration %s is not exists' , $ file ) , E_WARNING ) ; } if ( ! is_array ( ( $ configs = $ this -> parseFromFile ( $ file ) ) ) ) { throw new \ RuntimeException ( sprintf ( 'Invalid %s configuration from file: %s' , ltrim ( strrchr ( get_class ( $ this ) , '\\' ) , '\\' ) , $ file ) , E_NOTICE ) ; } return $ configs ; }
Read current file

@param string $file

@return array

@throws \InvalidArgumentException
@throws \RuntimeException
Read current file