protected function appendOperatorIfRequired($requireArray, $value, $sqlOperator)
    {
        if (!$requireArray) {
            if (isset($sqlOperator['append'])) {
                $value = $sqlOperator['append'].$value;
            }

            if (isset($sqlOperator['prepend'])) {
                $value = $value.$sqlOperator['prepend'];
            }
        }

        return $value;
    }
protected function appendOperatorIfRequired($requireArray, $value, $sqlOperator)
    {
        if (!$requireArray) {
            if (isset($sqlOperator['append'])) {
                $value = $sqlOperator['append'].$value;
            }

            if (isset($sqlOperator['prepend'])) {
                $value = $value.$sqlOperator['prepend'];
            }
        }

        return $value;
    }
protected function appendOperatorIfRequired ( $ requireArray , $ value , $ sqlOperator ) { if ( ! $ requireArray ) { if ( isset ( $ sqlOperator [ 'append' ] ) ) { $ value = $ sqlOperator [ 'append' ] . $ value ; } if ( isset ( $ sqlOperator [ 'prepend' ] ) ) { $ value = $ value . $ sqlOperator [ 'prepend' ] ; } } return $ value ; }
Append or prepend a string to the query if required.

@param bool $requireArray value must be an array
@param mixed $value the value we are checking against
@param mixed $sqlOperator
@return mixed $value
Append or prepend a string to the query if required .