protected function readChainFiles(array $chainPaths)
    {
        $chainFiles = [];
        foreach ($chainPaths as $chainPath) {
            if (!is_readable($chainPath)) {
                throw new \Exception("The chain file could not be read: $chainPath");
            }
            $chainFiles[$chainPath] = trim(file_get_contents($chainPath));
        }

        return $chainFiles;
    }
protected function readChainFiles(array $chainPaths)
    {
        $chainFiles = [];
        foreach ($chainPaths as $chainPath) {
            if (!is_readable($chainPath)) {
                throw new \Exception("The chain file could not be read: $chainPath");
            }
            $chainFiles[$chainPath] = trim(file_get_contents($chainPath));
        }

        return $chainFiles;
    }
protected function readChainFiles ( array $ chainPaths ) { $ chainFiles = [ ] ; foreach ( $ chainPaths as $ chainPath ) { if ( ! is_readable ( $ chainPath ) ) { throw new \ Exception ( "The chain file could not be read: $chainPath" ) ; } $ chainFiles [ $ chainPath ] = trim ( file_get_contents ( $ chainPath ) ) ; } return $ chainFiles ; }
Get the contents of multiple chain files.

@param string[] $chainPaths

@throws \Exception If any one of the files is not readable.

@return array
An array of file contents (whitespace trimmed) keyed by file name.
Get the contents of multiple chain files .