original_string: protected function _matchMethod($url)
      {
          if (empty($this->defaults['_method'])) {
              return true;
          }
          // @deprecated The `[method]` support should be removed in 4.0.0
          if (isset($url['[method]'])) {
              deprecationWarning('The `[method]` key is deprecated. Use `_method` instead.');
              $url['_method'] = $url['[method]'];
          }
          if (empty($url['_method'])) {
              $url['_method'] = 'GET';
          }
          $methods = array_map('strtoupper', (array)$url['_method']);
          foreach ($methods as $value) {
              if (in_array($value, (array)$this->defaults['_method'])) {
                  return true;
              }
          }
  
          return false;
      }
code: protected function _matchMethod($url)
      {
          if (empty($this->defaults['_method'])) {
              return true;
          }
          // @deprecated The `[method]` support should be removed in 4.0.0
          if (isset($url['[method]'])) {
              deprecationWarning('The `[method]` key is deprecated. Use `_method` instead.');
              $url['_method'] = $url['[method]'];
          }
          if (empty($url['_method'])) {
              $url['_method'] = 'GET';
          }
          $methods = array_map('strtoupper', (array)$url['_method']);
          foreach ($methods as $value) {
              if (in_array($value, (array)$this->defaults['_method'])) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: protected function _matchMethod ( $ url ) { if ( empty ( $ this -> defaults [ '_method' ] ) ) { return true ; } // @deprecated The `[method]` support should be removed in 4.0.0 if ( isset ( $ url [ '[method]' ] ) ) { deprecationWarning ( 'The `[method]` key is deprecated. Use `_method` instead.' ) ; $ url [ '_method' ] = $ url [ '[method]' ] ; } if ( empty ( $ url [ '_method' ] ) ) { $ url [ '_method' ] = 'GET' ; } $ methods = array_map ( 'strtoupper' , ( array ) $ url [ '_method' ] ) ; foreach ( $ methods as $ value ) { if ( in_array ( $ value , ( array ) $ this -> defaults [ '_method' ] ) ) { return true ; } } return false ; }
docstring: Check whether or not the URL's HTTP method matches.
  
  @param array $url The array for the URL being generated.
  @return bool
docstring_tokens: Check whether or not the URL s HTTP method matches .