original_string: public function getCookieByName($name)
      {
          // don't allow a null name
          if ($name === null) {
              return null;
          }
          foreach ($this->cookies as $cookie) {
              if ($cookie->getName() !== null && strcasecmp($cookie->getName(), $name) === 0) {
                  return $cookie;
              }
          }
      }
code: public function getCookieByName($name)
      {
          // don't allow a null name
          if ($name === null) {
              return null;
          }
          foreach ($this->cookies as $cookie) {
              if ($cookie->getName() !== null && strcasecmp($cookie->getName(), $name) === 0) {
                  return $cookie;
              }
          }
      }
code_tokens: public function getCookieByName ( $ name ) { // don't allow a null name if ( $ name === null ) { return null ; } foreach ( $ this -> cookies as $ cookie ) { if ( $ cookie -> getName ( ) !== null && strcasecmp ( $ cookie -> getName ( ) , $ name ) === 0 ) { return $ cookie ; } } }
docstring: Finds and returns the cookie based on the name
  
  @param string $name cookie name to search for
  @return SetCookie|null cookie that was found or null if not found
docstring_tokens: Finds and returns the cookie based on the name