original_string: protected function _prepareTransport(array $settings) {
          $config = array();
  
          if (!empty($settings['transportDir'])) {
              $config['folder'] = $settings['transportDir'];
          }
  
          if (!empty($settings['returnUrl'])) {
              $config['returnUrl'] = $settings['returnUrl'];
          }
  
          return $config;
      }
code: protected function _prepareTransport(array $settings) {
          $config = array();
  
          if (!empty($settings['transportDir'])) {
              $config['folder'] = $settings['transportDir'];
          }
  
          if (!empty($settings['returnUrl'])) {
              $config['returnUrl'] = $settings['returnUrl'];
          }
  
          return $config;
      }
code_tokens: protected function _prepareTransport ( array $ settings ) { $ config = array ( ) ; if ( ! empty ( $ settings [ 'transportDir' ] ) ) { $ config [ 'folder' ] = $ settings [ 'transportDir' ] ; } if ( ! empty ( $ settings [ 'returnUrl' ] ) ) { $ config [ 'returnUrl' ] = $ settings [ 'returnUrl' ] ; } return $ config ; }
docstring: Prepare transport configuration.
  
  @param array $settings
  @return array
docstring_tokens: Prepare transport configuration .