private function getRealSiteName($name)
    {
        if (! is_null($name)) {
            return $name;
        }

        if (is_string($link = $this->getLinkNameByCurrentDir())) {
            return $link;
        }

        return basename(getcwd());
    }
private function getRealSiteName($name)
    {
        if (! is_null($name)) {
            return $name;
        }

        if (is_string($link = $this->getLinkNameByCurrentDir())) {
            return $link;
        }

        return basename(getcwd());
    }
private function getRealSiteName ( $ name ) { if ( ! is_null ( $ name ) ) { return $ name ; } if ( is_string ( $ link = $ this -> getLinkNameByCurrentDir ( ) ) ) { return $ link ; } return basename ( getcwd ( ) ) ; }
Get the name of the site.

@param  string|null $name
@return string
Get the name of the site .