original_string: public function getSiteFilterQuery($targetTableAlias)
      {
          $parent = $this->getParent();
          if ($parent and $parentId = $parent->getId()) {
              return $targetTableAlias . '.site_id = ' . $parentId;
          } elseif ($id = $this->getId()) {
              return $targetTableAlias . '.site_id = ' . $id;
          }
  
          return '';
      }
code: public function getSiteFilterQuery($targetTableAlias)
      {
          $parent = $this->getParent();
          if ($parent and $parentId = $parent->getId()) {
              return $targetTableAlias . '.site_id = ' . $parentId;
          } elseif ($id = $this->getId()) {
              return $targetTableAlias . '.site_id = ' . $id;
          }
  
          return '';
      }
code_tokens: public function getSiteFilterQuery ( $ targetTableAlias ) { $ parent = $ this -> getParent ( ) ; if ( $ parent and $ parentId = $ parent -> getId ( ) ) { return $ targetTableAlias . '.site_id = ' . $ parentId ; } elseif ( $ id = $ this -> getId ( ) ) { return $ targetTableAlias . '.site_id = ' . $ id ; } return '' ; }
docstring: Get filter query
  
  @param $targetTableAlias
  
  @return string
docstring_tokens: Get filter query