protected function cleanArray(array $data)
    {
        $parameters = [];

        foreach ($data as $key => $value) {
            $parameters[in_array($key, $this->except) ? $key : snake_case($key)] = $value;
        }

        return $parameters;
    }
protected function cleanArray(array $data)
    {
        $parameters = [];

        foreach ($data as $key => $value) {
            $parameters[in_array($key, $this->except) ? $key : snake_case($key)] = $value;
        }

        return $parameters;
    }
protected function cleanArray ( array $ data ) { $ parameters = [ ] ; foreach ( $ data as $ key => $ value ) { $ parameters [ in_array ( $ key , $ this -> except ) ? $ key : snake_case ( $ key ) ] = $ value ; } return $ parameters ; }
Clean the data in the given array.

@param  array $data
@return array
Clean the data in the given array .