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;
    }
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;
    }
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 ; }
Prepare transport configuration.

@param array $settings
@return array
Prepare transport configuration .