Code Duplication    Length = 10-11 lines in 7 locations

web_interface/astpp/application/libraries/html2pdf/html2pdf.php 7 locations

@@ 3562-3571 (lines=10) @@
3559
         * @param  string $other
3560
         * @return boolean
3561
         */
3562
        protected function _tag_open_B($param, $other = 'b')
3563
        {
3564
            $this->parsingCss->save();
3565
            $this->parsingCss->value['font-bold'] = true;
3566
            $this->parsingCss->analyse($other, $param);
3567
            $this->parsingCss->setPosition();
3568
            $this->parsingCss->fontSet();
3569
3570
            return true;
3571
        }
3572
3573
        /**
3574
         * tag : STRONG
@@ 3620-3629 (lines=10) @@
3617
         * @param  string $other
3618
         * @return boolean
3619
         */
3620
        protected function _tag_open_I($param, $other = 'i')
3621
        {
3622
            $this->parsingCss->save();
3623
            $this->parsingCss->value['font-italic'] = true;
3624
            $this->parsingCss->analyse($other, $param);
3625
            $this->parsingCss->setPosition();
3626
            $this->parsingCss->fontSet();
3627
3628
            return true;
3629
        }
3630
3631
        /**
3632
         * tag : ADDRESS
@@ 3750-3759 (lines=10) @@
3747
         * @param  string $other
3748
         * @return boolean
3749
         */
3750
        protected function _tag_open_S($param, $other = 's')
3751
        {
3752
            $this->parsingCss->save();
3753
            $this->parsingCss->value['font-linethrough'] = true;
3754
            $this->parsingCss->analyse($other, $param);
3755
            $this->parsingCss->setPosition();
3756
            $this->parsingCss->fontSet();
3757
3758
            return true;
3759
        }
3760
3761
        /**
3762
         * tag : DEL
@@ 3808-3817 (lines=10) @@
3805
         * @param  string $other
3806
         * @return boolean
3807
         */
3808
        protected function _tag_open_U($param, $other = 'u')
3809
        {
3810
            $this->parsingCss->save();
3811
            $this->parsingCss->value['font-underline'] = true;
3812
            $this->parsingCss->analyse($other, $param);
3813
            $this->parsingCss->setPosition();
3814
            $this->parsingCss->fontSet();
3815
3816
            return true;
3817
        }
3818
3819
        /**
3820
         * tag : INS
@@ 4630-4640 (lines=11) @@
4627
         * @param  array $param
4628
         * @return boolean
4629
         */
4630
        protected function _tag_open_TBODY($param)
4631
        {
4632
            if ($this->_isForOneLine) {
4633
            	return false;
4634
            }
4635
4636
            $this->parsingCss->save();
4637
            $this->parsingCss->analyse('tbody', $param);
4638
            $this->parsingCss->setPosition();
4639
            $this->parsingCss->fontSet();
4640
4641
            return true;
4642
        }
4643
@@ 4795-4805 (lines=11) @@
4792
         * @param  array $param
4793
         * @return boolean
4794
         */
4795
        protected function _tag_open_THEAD_SUB($param)
4796
        {
4797
            if ($this->_isForOneLine) {
4798
            	return false;
4799
            }
4800
4801
            $this->parsingCss->save();
4802
            $this->parsingCss->analyse('thead', $param);
4803
            $this->parsingCss->setPosition();
4804
            $this->parsingCss->fontSet();
4805
4806
            return true;
4807
        }
4808
@@ 4833-4843 (lines=11) @@
4830
         * @param    array $param
4831
         * @return boolean
4832
         */
4833
        protected function _tag_open_TFOOT_SUB($param)
4834
        {
4835
            if ($this->_isForOneLine) {
4836
            	return false;
4837
            }
4838
4839
            $this->parsingCss->save();
4840
            $this->parsingCss->analyse('tfoot', $param);
4841
            $this->parsingCss->setPosition();
4842
            $this->parsingCss->fontSet();
4843
4844
            return true;
4845
        }
4846