protected function simpleRoute($name, $data)
    {
        if (is_string($data)) {
            return $this->map->get($name, $data);
        }
        return $this->createRoute($name, $data);
    }
protected function simpleRoute($name, $data)
    {
        if (is_string($data)) {
            return $this->map->get($name, $data);
        }
        return $this->createRoute($name, $data);
    }
protected function simpleRoute ( $ name , $ data ) { if ( is_string ( $ data ) ) { return $ this -> map -> get ( $ name , $ data ) ; } return $ this -> createRoute ( $ name , $ data ) ; }
Check if the data is a simple string, create a get with it

If not a string pass the data to the construction chain where the route
will be set with the data array passed

@param string       $name The route name
@param string|array $data Meta data fo the route

@return Route
Check if the data is a simple string create a get with it