original_string: protected function createGroup(
          ServiceLocatorInterface $serviceLocator,
          RouteInterface $route,
          array $children,
          bool $abstract = null
      ): RouteInterface {
          /** @var GroupRoute $group */
          $group = $serviceLocator->getService(GroupRoute::class, [
              'route' => $route,
              'abstract' => $abstract,
          ]);
  
          foreach ($children as $name => $child) {
              $group->addRoute(
                  $this->createRoute($serviceLocator, $child),
                  $name
              );
          }
  
          return $group;
      }
code: protected function createGroup(
          ServiceLocatorInterface $serviceLocator,
          RouteInterface $route,
          array $children,
          bool $abstract = null
      ): RouteInterface {
          /** @var GroupRoute $group */
          $group = $serviceLocator->getService(GroupRoute::class, [
              'route' => $route,
              'abstract' => $abstract,
          ]);
  
          foreach ($children as $name => $child) {
              $group->addRoute(
                  $this->createRoute($serviceLocator, $child),
                  $name
              );
          }
  
          return $group;
      }
code_tokens: protected function createGroup ( ServiceLocatorInterface $ serviceLocator , RouteInterface $ route , array $ children , bool $ abstract = null ) : RouteInterface { /** @var GroupRoute $group */ $ group = $ serviceLocator -> getService ( GroupRoute :: class , [ 'route' => $ route , 'abstract' => $ abstract , ] ) ; foreach ( $ children as $ name => $ child ) { $ group -> addRoute ( $ this -> createRoute ( $ serviceLocator , $ child ) , $ name ) ; } return $ group ; }
docstring: Create group route.
  
  @param ServiceLocatorInterface $serviceLocator
  @param RouteInterface          $route
  @param array                   $children
  @param bool|null               $abstract
  @return RouteInterface
  @throws ServiceLocatorException
docstring_tokens: Create group route .