Code Duplication    Length = 11-11 lines in 2 locations

lib/Page/Tester.php 1 location

@@ 39-49 (lines=11) @@
36
37
        $this->runTests();
38
39
        if (!$_GET['testonly']) {
40
            /** @type Form $f */
41
            $f = $this->add('Form');
42
            $ff = $f->addField('Text', 'responses');
43
            $this->responses =
44
                '    public $proper_responses=array(
45
                '.implode(',
46
                ', $this->responses).'
47
                );';
48
            $ff->set($this->responses);
49
            $ff->js('click')->select();
50
        }
51
    }
52
    public function setVariance($arr)

lib/Controller/Tester.php 1 location

@@ 329-339 (lines=11) @@
326
            $data[] = $row;
327
        }
328
        $this->grid->setSource($data);
329
        if (!$_GET['testonly']) {
330
            $f = $this->form;
331
            $ff = $f->addField('Text', 'responses');
332
            $this->responses =
333
                '    public $proper_responses=array(
334
                '.implode(',
335
                ', $this->responses).'
336
                );';
337
            $ff->set($this->responses);
338
            $ff->js('click')->select();
339
        }
340
    }
341
342
    public function formatResult(&$row, $key, $result)