original_string: protected function parse($uri, array $pairs)
      {
          $path = $this->getPathFromUri($uri);
          $result = [];
          foreach ($pairs as $param => $paths) {
              if ((
                      strpos($uri, "?$param=") ||
                      strpos($uri, "&$param=")
                  ) &&
                  $this->checkPaths($path, $paths) !== false
              ) {
                  $result[] = $param;
              }
          }
          sort($result);
          return $result;
      }
code: protected function parse($uri, array $pairs)
      {
          $path = $this->getPathFromUri($uri);
          $result = [];
          foreach ($pairs as $param => $paths) {
              if ((
                      strpos($uri, "?$param=") ||
                      strpos($uri, "&$param=")
                  ) &&
                  $this->checkPaths($path, $paths) !== false
              ) {
                  $result[] = $param;
              }
          }
          sort($result);
          return $result;
      }
code_tokens: protected function parse ( $ uri , array $ pairs ) { $ path = $ this -> getPathFromUri ( $ uri ) ; $ result = [ ] ; foreach ( $ pairs as $ param => $ paths ) { if ( ( strpos ( $ uri , "?$param=" ) || strpos ( $ uri , "&$param=" ) ) && $ this -> checkPaths ( $ path , $ paths ) !== false ) { $ result [ ] = $ param ; } } sort ( $ result ) ; return $ result ; }
docstring: Parse uri and return detected parameters
  
  @param string $uri
  @param array $pairs
  @return string[]
docstring_tokens: Parse uri and return detected parameters