Neos.Neos/Classes/EventLog/Domain/Model/NodeEvent.php
protected function getCurrentSite()
    {
        if (!isset($this->data['site']) || $this->data['site'] === null) {
            return null;
        }

        return $this->siteRepository->findByIdentifier($this->data['site']);
    }
protected function getCurrentSite()
    {
        if (!isset($this->data['site']) || $this->data['site'] === null) {
            return null;
        }

        return $this->siteRepository->findByIdentifier($this->data['site']);
    }
protected function getCurrentSite ( ) { if ( ! isset ( $ this -> data [ 'site' ] ) || $ this -> data [ 'site' ] === null ) { return null ; } return $ this -> siteRepository -> findByIdentifier ( $ this -> data [ 'site' ] ) ; }
Prevents invalid calls to the site repository in case the site data property is not available.

@return null|object
Prevents invalid calls to the site repository in case the site data property is not available .