src/Routing/Router.php
public function group($data, $callback = null)
    {
        if (is_callable($data)) {
            $callback = $data;
            $data = null;
        }

        if ($data) {
            $this->prefix[] = $data;
        }

        call_user_func($callback, $this);

        if ($data) {
            array_pop($this->prefix);
        }
    }
public function group($data, $callback = null)
    {
        if (is_callable($data)) {
            $callback = $data;
            $data = null;
        }

        if ($data) {
            $this->prefix[] = $data;
        }

        call_user_func($callback, $this);

        if ($data) {
            array_pop($this->prefix);
        }
    }
public function group ( $ data , $ callback = null ) { if ( is_callable ( $ data ) ) { $ callback = $ data ; $ data = null ; } if ( $ data ) { $ this -> prefix [ ] = $ data ; } call_user_func ( $ callback , $ this ) ; if ( $ data ) { array_pop ( $ this -> prefix ) ; } }
Create group of routes

@param $data
@param null $callback
Create group of routes