src/Swot.php
private function nameFromAcademicDomain($domain)
    {
        $path = $this->getPath($domain);

        if ( ! file_exists($path)) {
            return null;
        }

        return trim(file_get_contents($path));
    }
private function nameFromAcademicDomain($domain)
    {
        $path = $this->getPath($domain);

        if ( ! file_exists($path)) {
            return null;
        }

        return trim(file_get_contents($path));
    }
Retrieves the institution name matching a domain.

@param  array       $domain
@return string|null Name of institution if found, null if file doesn't exist.