Code Duplication    Length = 5-5 lines in 4 locations

web_interface/astpp/application/libraries/html2pdf/_class/parsingCss.class.php 4 locations

@@ 858-862 (lines=5) @@
855
856
                    break;
857
858
                case 'border-top-color':
859
                    $res = false;
860
                    $val = $this->convertToColor($val, $res);
861
                    if ($res) {
862
                    	$this->value['border']['t']['color'] = $val;
863
                    }
864
                    break;
865
@@ 866-870 (lines=5) @@
863
                    }
864
                    break;
865
866
                case 'border-right-color':
867
                    $res = false;
868
                    $val = $this->convertToColor($val, $res);
869
                    if ($res) {
870
                    	$this->value['border']['r']['color'] = $val;
871
                    }
872
                    break;
873
@@ 874-878 (lines=5) @@
871
                    }
872
                    break;
873
874
                case 'border-bottom-color':
875
                    $res = false;
876
                    $val = $this->convertToColor($val, $res);
877
                    if ($res) {
878
                    	$this->value['border']['b']['color'] = $val;
879
                    }
880
                    break;
881
@@ 882-886 (lines=5) @@
879
                    }
880
                    break;
881
882
                case 'border-left-color':
883
                    $res = false;
884
                    $val = $this->convertToColor($val, $res);
885
                    if ($res) {
886
                    	$this->value['border']['l']['color'] = $val;
887
                    }
888
                    break;
889