original_string: public function get($type)
      {
          if ($type === self::TYPE_MAILER) {
              $name = $this->configService->getValue('system_mailer');
          } elseif ($type === self::TYPE_DISPATCHER) {
              $name = $this->configService->getValue('system_dispatcher');
          } else {
              throw new \InvalidArgumentException('Provided type does not exist');
          }
  
          if (empty($name)) {
              return null;
          }
  
          return $this->connector->getConnection($name);
      }
code: public function get($type)
      {
          if ($type === self::TYPE_MAILER) {
              $name = $this->configService->getValue('system_mailer');
          } elseif ($type === self::TYPE_DISPATCHER) {
              $name = $this->configService->getValue('system_dispatcher');
          } else {
              throw new \InvalidArgumentException('Provided type does not exist');
          }
  
          if (empty($name)) {
              return null;
          }
  
          return $this->connector->getConnection($name);
      }
code_tokens: public function get ( $ type ) { if ( $ type === self :: TYPE_MAILER ) { $ name = $ this -> configService -> getValue ( 'system_mailer' ) ; } elseif ( $ type === self :: TYPE_DISPATCHER ) { $ name = $ this -> configService -> getValue ( 'system_dispatcher' ) ; } else { throw new \ InvalidArgumentException ( 'Provided type does not exist' ) ; } if ( empty ( $ name ) ) { return null ; } return $ this -> connector -> getConnection ( $ name ) ; }
docstring: Returns a configured connection from the provided type
  
  @param string $type
  @return mixed|null
docstring_tokens: Returns a configured connection from the provided type