src/Foundation/Http/Middleware/TransformsRequest.php
protected function cleanValue($key, $value)
    {
        if (is_array($value)) {
            return $this->cleanArray($value);
        }

        return $this->transform($key, $value);
    }
protected function cleanValue($key, $value)
    {
        if (is_array($value)) {
            return $this->cleanArray($value);
        }

        return $this->transform($key, $value);
    }
protected function cleanValue ( $ key , $ value ) { if ( is_array ( $ value ) ) { return $ this -> cleanArray ( $ value ) ; } return $ this -> transform ( $ key , $ value ) ; }
Clean the given value.

@param  string  $key
@param  mixed  $value
@return mixed
Clean the given value .