Code Duplication    Length = 7-7 lines in 2 locations

src/core/DeCaptchaWiki.php 1 location

@@ 391-397 (lines=7) @@
388
     * @param string|array $name
389
     * @param string|array $value
390
     */
391
    public function setText($name, $value)
392
    {
393
        if (is_array($name)) {
394
            $name = implode('_', $name);
395
        }
396
        $this->texts[$name] = $value;
397
    }
398
399
    /**
400
     * @param string|array $name

src/core/DeCaptchaWikiMain.php 1 location

@@ 90-96 (lines=7) @@
87
     * @param string|array $name
88
     * @param string|array $value
89
     */
90
    public function setText($name, $value)
91
    {
92
        if (is_array($name)) {
93
            $name = implode('_', $name);
94
        }
95
        $this->texts[$name] = $value;
96
    }
97
98
    /**
99
     * @param string|array $name