protected function findMatchingArea(RequestInterface $request)
    {
        foreach ($this->areas as $area) {
            if (!$area->match($request)) {
                continue;
            }

            return $area;
        }

        return null;
    }
protected function findMatchingArea(RequestInterface $request)
    {
        foreach ($this->areas as $area) {
            if (!$area->match($request)) {
                continue;
            }

            return $area;
        }

        return null;
    }
protected function findMatchingArea ( RequestInterface $ request ) { foreach ( $ this -> areas as $ area ) { if ( ! $ area -> match ( $ request ) ) { continue ; } return $ area ; } return null ; }
Returns matching area or null if not found

@param RequestInterface $request

@return AreaInterface|null
Returns matching area or null if not found