original_string: protected function encodeCookie(array $cookieParts)
      {
          foreach ($cookieParts as $cookiePart) {
              if (false !== strpos($cookiePart, self::COOKIE_DELIMITER)) {
                  throw new \InvalidArgumentException(sprintf('$cookieParts should not contain the cookie delimiter "%s"', self::COOKIE_DELIMITER));
              }
          }
  
          return base64_encode(implode(self::COOKIE_DELIMITER, $cookieParts));
      }
code: protected function encodeCookie(array $cookieParts)
      {
          foreach ($cookieParts as $cookiePart) {
              if (false !== strpos($cookiePart, self::COOKIE_DELIMITER)) {
                  throw new \InvalidArgumentException(sprintf('$cookieParts should not contain the cookie delimiter "%s"', self::COOKIE_DELIMITER));
              }
          }
  
          return base64_encode(implode(self::COOKIE_DELIMITER, $cookieParts));
      }
code_tokens: protected function encodeCookie ( array $ cookieParts ) { foreach ( $ cookieParts as $ cookiePart ) { if ( false !== strpos ( $ cookiePart , self :: COOKIE_DELIMITER ) ) { throw new \ InvalidArgumentException ( sprintf ( '$cookieParts should not contain the cookie delimiter "%s"' , self :: COOKIE_DELIMITER ) ) ; } } return base64_encode ( implode ( self :: COOKIE_DELIMITER , $ cookieParts ) ) ; }
docstring: Encodes the cookie parts.
  
  @return string
  
  @throws \InvalidArgumentException When $cookieParts contain the cookie delimiter. Extending class should either remove or escape it.
docstring_tokens: Encodes the cookie parts .