Commit d1286748 authored by catch's avatar catch

Issue #1906322 by dawehner: Fixed MatcherDumper::getFit() has an undefined variable.

parent 4edd01e9
......@@ -144,25 +144,4 @@ public function getRoutes() {
return $this->routes;
}
/**
* Determines the fitness of the provided path.
*
* @param string $path
* The path whose fitness we want.
*
* @return int
* The fitness of the path, as an integer.
*/
public function getFit($path) {
$fit = 0;
$parts = explode('/', $path, static::MAX_PARTS);
foreach ($parts as $k => $part) {
if (strpos($part, '{') === FALSE) {
$fit |= 1 << ($slashes - $k);
}
}
return $fit;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment