protected function sanitizeArray($array)
    {
        foreach($array as $key => $value){
            if(is_array($value)){
                $array[$key] = $this->sanitizeArray($value);
            } else {
                $array[$key] = $this->convertStaticPhpExcelConstantsFromStringsToConstants($value);
            }
        }

        return $array;
    }
protected function sanitizeArray($array)
    {
        foreach($array as $key => $value){
            if(is_array($value)){
                $array[$key] = $this->sanitizeArray($value);
            } else {
                $array[$key] = $this->convertStaticPhpExcelConstantsFromStringsToConstants($value);
            }
        }

        return $array;
    }
protected function sanitizeArray ( $ array ) { foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { $ array [ $ key ] = $ this -> sanitizeArray ( $ value ) ; } else { $ array [ $ key ] = $ this -> convertStaticPhpExcelConstantsFromStringsToConstants ( $ value ) ; } } return $ array ; }
Sanitize styles array

@param array $styles
@return array
Sanitize styles array