src/includes/classes/Core/Utils/Escape.php
public function sq($value)
    {
        if (is_array($value) || is_object($value)) {
            foreach ($value as $_key => &$_value) {
                $_value = $this->sq($_value);
            } // unset($_key, $_value);
            return $value;
        }
        return str_replace("'", "\\'", (string) $value);
    }
public function sq($value)
    {
        if (is_array($value) || is_object($value)) {
            foreach ($value as $_key => &$_value) {
                $_value = $this->sq($_value);
            } // unset($_key, $_value);
            return $value;
        }
        return str_replace("'", "\\'", (string) $value);
    }
Escape single-quote.

@since 160708 Quotes.

@param mixed $value Input value.

@return string|array|object Output value.