Code Duplication    Length = 9-9 lines in 2 locations

src/core/DeCaptchaWiki.php 2 locations

@@ 301-309 (lines=9) @@
298
        $str.= "use {$rc->getName()};".PHP_EOL;
299
        $str.= "".PHP_EOL;
300
        $str.= '$captcha = new '.$rc->getShortName().'(['.PHP_EOL;
301
        foreach ($this->texts['constructor_data'] as $key => $val) {
302
            $str.= "    {$rc->getShortName()}::{$this->getNameConst('ACTION_FIELD_', $key)} => ";
303
            if (is_string($val)) {
304
                $str.= "'{$val}'";
305
            } else {
306
                $str.= "{$val}";
307
            }
308
            $str.= ",".PHP_EOL;
309
        }
310
        $str.= "]);".PHP_EOL;
311
        $str.= "```".PHP_EOL;
312
@@ 324-332 (lines=9) @@
321
                $str.= ", ";
322
            }
323
            $str.= "[".PHP_EOL;
324
            foreach ($this->texts['recognize_data'] as $key => $val) {
325
                $str.= "    {$rc->getShortName()}::{$this->getNameConst('ACTION_FIELD_', $key)} => ";
326
                if (is_string($val)) {
327
                    $str.= "'{$val}'";
328
                } else {
329
                    $str.= "{$val}";
330
                }
331
                $str.= ",".PHP_EOL;
332
            }
333
            $str.= "]";
334
        }
335
        $str.= ")) {".PHP_EOL;