public function match()
    {
        // if forceSlash is ON, and there is no trailing slash on current request
        if ($this->forceSlash && !$this->hasTrailingSlash($this->uriRelative)) {
            $this->forceSlash();
        }
        // Find control for current request, first with exact matching, then with variable matching
        if ($this->matchExact() || $this->matchVariable()) {
            return $this->control; // Match found
        }

        return null; // No match found
    }
public function match()
    {
        // if forceSlash is ON, and there is no trailing slash on current request
        if ($this->forceSlash && !$this->hasTrailingSlash($this->uriRelative)) {
            $this->forceSlash();
        }
        // Find control for current request, first with exact matching, then with variable matching
        if ($this->matchExact() || $this->matchVariable()) {
            return $this->control; // Match found
        }

        return null; // No match found
    }
public function match ( ) { // if forceSlash is ON, and there is no trailing slash on current request if ( $ this -> forceSlash && ! $ this -> hasTrailingSlash ( $ this -> uriRelative ) ) { $ this -> forceSlash ( ) ; } // Find control for current request, first with exact matching, then with variable matching if ( $ this -> matchExact ( ) || $ this -> matchVariable ( ) ) { return $ this -> control ; // Match found } return null ; // No match found }
Get the matching control for the current request
- optionally, force a trailing slash on current request

@return mixed|null
Get the matching control for the current request - optionally force a trailing slash on current request