private function prepareAttributes(array $data)
    {
        foreach ($data as $key => &$value) {
            if (is_array($value)) {
                $data[$key] = $this->prepareAttributes($value);
                continue;
            }

            if (is_float($value)) {
                $value = sprintf("%01.2f", $value);
            }
        }

        return $data;
    }
private function prepareAttributes(array $data)
    {
        foreach ($data as $key => &$value) {
            if (is_array($value)) {
                $data[$key] = $this->prepareAttributes($value);
                continue;
            }

            if (is_float($value)) {
                $value = sprintf("%01.2f", $value);
            }
        }

        return $data;
    }
private function prepareAttributes ( array $ data ) { foreach ( $ data as $ key => & $ value ) { if ( is_array ( $ value ) ) { $ data [ $ key ] = $ this -> prepareAttributes ( $ value ) ; continue ; } if ( is_float ( $ value ) ) { $ value = sprintf ( "%01.2f" , $ value ) ; } } return $ data ; }
Prepare request attributes
@param array $data
@return array
Prepare request attributes