original_string: public function createService(ServiceLocatorInterface $serviceLocator)
      {
          $identityRoleProvider = new IdentityRoleProvider(
              $serviceLocator->get('UserRbac\UserRoleLinkerMapper'),
              $serviceLocator->get('UserRbac\ModuleOptions')
          );
          if ($serviceLocator->get('zfcuser_auth_service')->hasIdentity()) {
              $identityRoleProvider->setDefaultIdentity(
                  $serviceLocator->get('zfcuser_auth_service')->getIdentity()
              );
          }
  
          return $identityRoleProvider;
      }
code: public function createService(ServiceLocatorInterface $serviceLocator)
      {
          $identityRoleProvider = new IdentityRoleProvider(
              $serviceLocator->get('UserRbac\UserRoleLinkerMapper'),
              $serviceLocator->get('UserRbac\ModuleOptions')
          );
          if ($serviceLocator->get('zfcuser_auth_service')->hasIdentity()) {
              $identityRoleProvider->setDefaultIdentity(
                  $serviceLocator->get('zfcuser_auth_service')->getIdentity()
              );
          }
  
          return $identityRoleProvider;
      }
code_tokens: public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ identityRoleProvider = new IdentityRoleProvider ( $ serviceLocator -> get ( 'UserRbac\UserRoleLinkerMapper' ) , $ serviceLocator -> get ( 'UserRbac\ModuleOptions' ) ) ; if ( $ serviceLocator -> get ( 'zfcuser_auth_service' ) -> hasIdentity ( ) ) { $ identityRoleProvider -> setDefaultIdentity ( $ serviceLocator -> get ( 'zfcuser_auth_service' ) -> getIdentity ( ) ) ; } return $ identityRoleProvider ; }
docstring: Gets identity role provider
  
  @param  ServiceLocatorInterface $serviceLocator
  @return IdentityRoleProvider
docstring_tokens: Gets identity role provider