original_string: public function createService(ServiceLocatorInterface $viewHelperManager)
      {
          $serviceLocator = $viewHelperManager->getServiceLocator();
          $config = $serviceLocator->has('config') ? $serviceLocator->get('config') : array();
          if (isset($config['google_analytics'])) {
              $this->config($config['google_analytics']);
          }
      
          return $this;
      }
code: public function createService(ServiceLocatorInterface $viewHelperManager)
      {
          $serviceLocator = $viewHelperManager->getServiceLocator();
          $config = $serviceLocator->has('config') ? $serviceLocator->get('config') : array();
          if (isset($config['google_analytics'])) {
              $this->config($config['google_analytics']);
          }
      
          return $this;
      }
code_tokens: public function createService ( ServiceLocatorInterface $ viewHelperManager ) { $ serviceLocator = $ viewHelperManager -> getServiceLocator ( ) ; $ config = $ serviceLocator -> has ( 'config' ) ? $ serviceLocator -> get ( 'config' ) : array ( ) ; if ( isset ( $ config [ 'google_analytics' ] ) ) { $ this -> config ( $ config [ 'google_analytics' ] ) ; } return $ this ; }
docstring: Create and configure helper instance
  
  @see \Zend\ServiceManager\FactoryInterface::createService()
  @param ServiceLocatorInterface $viewHelperManager
  @return \Spork\View\Helper\GoogleAnalytic
docstring_tokens: Create and configure helper instance