original_string: public function checkCustomerHasGroup(Customer $customer, $groupCode)
      {
          $group = CustomerCustomerGroupQuery::create()
              ->filterByCustomer($customer)
              ->useCustomerGroupQuery()
              ->filterByCode($groupCode)
              ->endUse()
              ->findOne();
  
          return $group !== null;
      }
code: public function checkCustomerHasGroup(Customer $customer, $groupCode)
      {
          $group = CustomerCustomerGroupQuery::create()
              ->filterByCustomer($customer)
              ->useCustomerGroupQuery()
              ->filterByCode($groupCode)
              ->endUse()
              ->findOne();
  
          return $group !== null;
      }
code_tokens: public function checkCustomerHasGroup ( Customer $ customer , $ groupCode ) { $ group = CustomerCustomerGroupQuery :: create ( ) -> filterByCustomer ( $ customer ) -> useCustomerGroupQuery ( ) -> filterByCode ( $ groupCode ) -> endUse ( ) -> findOne ( ) ; return $ group !== null ; }
docstring: Check that a customer belongs to a group.
  
  @param Customer $customer
  @param string $groupCode
  
  @return bool
docstring_tokens: Check that a customer belongs to a group .