src/Traits/BaseTrait.php
private function internalSanitizeHooks($key, $value, $type = 'input')
    {
        $hook = trim(strtolower($type)) == 'input' ? 'sanitizeInputHook' : 'sanitizeOutputHook';
        return method_exists($this, $hook) ? $this->$hook($key,
            $value) : $value;
    }
private function internalSanitizeHooks($key, $value, $type = 'input')
    {
        $hook = trim(strtolower($type)) == 'input' ? 'sanitizeInputHook' : 'sanitizeOutputHook';
        return method_exists($this, $hook) ? $this->$hook($key,
            $value) : $value;
    }
private function internalSanitizeHooks ( $ key , $ value , $ type = 'input' ) { $ hook = trim ( strtolower ( $ type ) ) == 'input' ? 'sanitizeInputHook' : 'sanitizeOutputHook' ; return method_exists ( $ this , $ hook ) ? $ this -> $ hook ( $ key , $ value ) : $ value ; }
this function have the base logic of sanitizing an array element base on
both of key and value and then return the sanitized value
@param mixed $key the key of the element
@param mixed $value the value of the element
@param string $type which input or output are we sanitizing
@return mixed sanitized or untouched $value of the element
this function have the base logic of sanitizing an array element base on both of key and value and then return the sanitized value