original_string: protected function _paramDetector($detect)
      {
          $key = $detect['param'];
          if (isset($detect['value'])) {
              $value = $detect['value'];
  
              return isset($this->params[$key]) ? $this->params[$key] == $value : false;
          }
          if (isset($detect['options'])) {
              return isset($this->params[$key]) ? in_array($this->params[$key], $detect['options']) : false;
          }
  
          return false;
      }
code: protected function _paramDetector($detect)
      {
          $key = $detect['param'];
          if (isset($detect['value'])) {
              $value = $detect['value'];
  
              return isset($this->params[$key]) ? $this->params[$key] == $value : false;
          }
          if (isset($detect['options'])) {
              return isset($this->params[$key]) ? in_array($this->params[$key], $detect['options']) : false;
          }
  
          return false;
      }
code_tokens: protected function _paramDetector ( $ detect ) { $ key = $ detect [ 'param' ] ; if ( isset ( $ detect [ 'value' ] ) ) { $ value = $ detect [ 'value' ] ; return isset ( $ this -> params [ $ key ] ) ? $ this -> params [ $ key ] == $ value : false ; } if ( isset ( $ detect [ 'options' ] ) ) { return isset ( $ this -> params [ $ key ] ) ? in_array ( $ this -> params [ $ key ] , $ detect [ 'options' ] ) : false ; } return false ; }
docstring: Detects if a specific request parameter is present.
  
  @param array $detect Detector options array.
  @return bool Whether or not the request is the type you are checking.
docstring_tokens: Detects if a specific request parameter is present .