protected function fillSite($site, array $params)
    {
        if ($site) {
            $params['site'] = $site;
        } elseif ($this->siteCode) {
            $params['site'] = $this->siteCode;
        }

        return $params;
    }
protected function fillSite($site, array $params)
    {
        if ($site) {
            $params['site'] = $site;
        } elseif ($this->siteCode) {
            $params['site'] = $this->siteCode;
        }

        return $params;
    }
protected function fillSite ( $ site , array $ params ) { if ( $ site ) { $ params [ 'site' ] = $ site ; } elseif ( $ this -> siteCode ) { $ params [ 'site' ] = $ this -> siteCode ; } return $ params ; }
Fill params by site value

@param string $site   site code
@param array  $params input parameters

@return array
Fill params by site value