Code Duplication    Length = 10-11 lines in 4 locations

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

@@ 4319-4328 (lines=10) @@
4316
         * @param    array $param
4317
         * @return boolean
4318
         */
4319
        protected function _tag_open_BIG($param)
4320
        {
4321
            $this->parsingCss->save();
4322
            $this->parsingCss->value['mini-decal'] -= $this->parsingCss->value['mini-size'] * 0.12;
4323
            $this->parsingCss->value['mini-size'] *= 1.2;
4324
            $this->parsingCss->analyse('big', $param);
4325
            $this->parsingCss->setPosition();
4326
            $this->parsingCss->fontSet();
4327
            return true;
4328
        }
4329
4330
        /**
4331
         * tag : BIG
@@ 4352-4361 (lines=10) @@
4349
         * @param    array $param
4350
         * @return boolean
4351
         */
4352
        protected function _tag_open_SMALL($param)
4353
        {
4354
            $this->parsingCss->save();
4355
            $this->parsingCss->value['mini-decal'] += $this->parsingCss->value['mini-size'] * 0.05;
4356
            $this->parsingCss->value['mini-size'] *= 0.82;
4357
            $this->parsingCss->analyse('small', $param);
4358
            $this->parsingCss->setPosition();
4359
            $this->parsingCss->fontSet();
4360
            return true;
4361
        }
4362
4363
        /**
4364
         * tag : SMALL
@@ 4385-4395 (lines=11) @@
4382
         * @param    array $param
4383
         * @return boolean
4384
         */
4385
        protected function _tag_open_SUP($param)
4386
        {
4387
            $this->parsingCss->save();
4388
            $this->parsingCss->value['mini-decal'] -= $this->parsingCss->value['mini-size'] * 0.15;
4389
            $this->parsingCss->value['mini-size'] *= 0.75;
4390
            $this->parsingCss->analyse('sup', $param);
4391
            $this->parsingCss->setPosition();
4392
            $this->parsingCss->fontSet();
4393
4394
            return true;
4395
        }
4396
4397
        /**
4398
         * tag : SUP
@@ 4419-4428 (lines=10) @@
4416
         * @param    array $param
4417
         * @return boolean
4418
         */
4419
        protected function _tag_open_SUB($param)
4420
        {
4421
            $this->parsingCss->save();
4422
            $this->parsingCss->value['mini-decal'] += $this->parsingCss->value['mini-size'] * 0.15;
4423
            $this->parsingCss->value['mini-size'] *= 0.75;
4424
            $this->parsingCss->analyse('sub', $param);
4425
            $this->parsingCss->setPosition();
4426
            $this->parsingCss->fontSet();
4427
            return true;
4428
        }
4429
4430
        /**
4431
         * tag : SUB