@@ 519-523 (lines=5) @@ | ||
516 | if (isset($style['border-style']) && in_array($style['border-style'], $border_style_allowed)) { |
|
517 | $border_value['style'] = $style['border-style']; |
|
518 | } |
|
519 | if (isset($style['border-color']) && is_string($style['border-color']) && $style['border-color'][0] == '#') { |
|
520 | $v = substr($style['border-color'], 1, 6); |
|
521 | $v = strlen($v) == 3 ? $v[0] . $v[0] . $v[1] . $v[1] . $v[2] . $v[2] : $v;// expand cf0 => ccff00 |
|
522 | $border_value['color'] = "FF" . strtoupper($v); |
|
523 | } |
|
524 | $style_indexes[$i]['border_idx'] = self::add_to_list_get_index($borders, json_encode($border_value)); |
|
525 | } |
|
526 | if (isset($style['fill']) && is_string($style['fill']) && $style['fill'][0] == '#') { |
|
@@ 526-530 (lines=5) @@ | ||
523 | } |
|
524 | $style_indexes[$i]['border_idx'] = self::add_to_list_get_index($borders, json_encode($border_value)); |
|
525 | } |
|
526 | if (isset($style['fill']) && is_string($style['fill']) && $style['fill'][0] == '#') { |
|
527 | $v = substr($style['fill'], 1, 6); |
|
528 | $v = strlen($v) == 3 ? $v[0] . $v[0] . $v[1] . $v[1] . $v[2] . $v[2] : $v;// expand cf0 => ccff00 |
|
529 | $style_indexes[$i]['fill_idx'] = self::add_to_list_get_index($fills, "FF" . strtoupper($v)); |
|
530 | } |
|
531 | if (isset($style['halign']) && in_array($style['halign'], $horizontal_allowed)) { |
|
532 | $style_indexes[$i]['alignment'] = true; |
|
533 | $style_indexes[$i]['halign'] = $style['halign']; |
|
@@ 574-578 (lines=5) @@ | ||
571 | $font['underline'] = true; |
|
572 | } |
|
573 | } |
|
574 | if (isset($style['color']) && is_string($style['color']) && $style['color'][0] == '#') { |
|
575 | $v = substr($style['color'], 1, 6); |
|
576 | $v = strlen($v) == 3 ? $v[0] . $v[0] . $v[1] . $v[1] . $v[2] . $v[2] : $v;// expand cf0 => ccff00 |
|
577 | $font['color'] = "FF" . strtoupper($v); |
|
578 | } |
|
579 | if ($font != $default_font) { |
|
580 | $style_indexes[$i]['font_idx'] = self::add_to_list_get_index($fonts, json_encode($font)); |
|
581 | } |