src/Services/InputMaker.php
public function inputStringPreparer($config)
    {
        $inputString = '';
        $beforeAfterCondition = ($this->before($config) > '' || $this->after($config) > '');
        $method = $this->getGeneratorMethod($config['inputType']);

        if ($beforeAfterCondition) {
            $inputString .= '<div class="'.config('form-maker.form.before_after_input_wrapper', 'input-group').'">';
        }

        $inputString .= $this->before($config);
        $inputString .= $this->inputStringGenerator($config);
        $inputString .= $this->after($config);

        if ($beforeAfterCondition) {
            $inputString .= '</div>';
        }

        if (config('form-maker.form.orientation') == 'horizontal' && !in_array($method, $this->selectedMethods)) {
            return '<div class="'.config('form-maker.form.input-column', '').'">'.$inputString.'</div>';
        }

        return $inputString;
    }
public function inputStringPreparer($config)
    {
        $inputString = '';
        $beforeAfterCondition = ($this->before($config) > '' || $this->after($config) > '');
        $method = $this->getGeneratorMethod($config['inputType']);

        if ($beforeAfterCondition) {
            $inputString .= '<div class="'.config('form-maker.form.before_after_input_wrapper', 'input-group').'">';
        }

        $inputString .= $this->before($config);
        $inputString .= $this->inputStringGenerator($config);
        $inputString .= $this->after($config);

        if ($beforeAfterCondition) {
            $inputString .= '</div>';
        }

        if (config('form-maker.form.orientation') == 'horizontal' && !in_array($method, $this->selectedMethods)) {
            return '<div class="'.config('form-maker.form.input-column', '').'">'.$inputString.'</div>';
        }

        return $inputString;
    }
public function inputStringPreparer ( $ config ) { $ inputString = '' ; $ beforeAfterCondition = ( $ this -> before ( $ config ) > '' || $ this -> after ( $ config ) > '' ) ; $ method = $ this -> getGeneratorMethod ( $ config [ 'inputType' ] ) ; if ( $ beforeAfterCondition ) { $ inputString .= '<div class="' . config ( 'form-maker.form.before_after_input_wrapper' , 'input-group' ) . '">' ; } $ inputString .= $ this -> before ( $ config ) ; $ inputString .= $ this -> inputStringGenerator ( $ config ) ; $ inputString .= $ this -> after ( $ config ) ; if ( $ beforeAfterCondition ) { $ inputString .= '</div>' ; } if ( config ( 'form-maker.form.orientation' ) == 'horizontal' && ! in_array ( $ method , $ this -> selectedMethods ) ) { return '<div class="' . config ( 'form-maker.form.input-column' , '' ) . '">' . $ inputString . '</div>' ; } return $ inputString ; }
Input string preparer.

@param array $config

@return string
Input string preparer .