Code Duplication    Length = 5-5 lines in 2 locations

src/core/DeCaptchaWiki.php 2 locations

@@ 558-562 (lines=5) @@
555
        $str .= "use {$reflection->getName()};".PHP_EOL;
556
        $str .= ''.PHP_EOL;
557
        $str .= '$captcha = new '.$reflection->getShortName().'(['.PHP_EOL;
558
        foreach ($this->texts['constructor_data'] as $key => $val) {
559
            $str .= "    {$reflection->getShortName()}::{$this->getNameConst('ACTION_FIELD_', $key)} => ";
560
            $str .= is_string($val) ? "'{$val}'" : $val;
561
            $str .= ','.PHP_EOL;
562
        }
563
        $str .= ']);'.PHP_EOL;
564
        $str .= '```'.PHP_EOL;
565
@@ 631-635 (lines=5) @@
628
                $str .= ', ';
629
            }
630
            $str .= '['.PHP_EOL;
631
            foreach ($this->texts['recognize_data'] as $key => $val) {
632
                $str .= "       {$reflection->getShortName()}::{$this->getNameConst('ACTION_FIELD_', $key)} => ";
633
                $str .= is_string($val) ? "'{$val}'" : $val;
634
                $str .= ','.PHP_EOL;
635
            }
636
            $str .= '    ]';
637
        }
638