Code Duplication    Length = 11-11 lines in 2 locations

src/Controller/Maintenance.php 1 location

@@ 24-34 (lines=11) @@
21
namespace HaaseIT\HCSF\Controller;
22
23
24
class Maintenance extends Base
25
{
26
    public function preparePage()
27
    {
28
        $this->P = new \HaaseIT\HCSF\CorePage($this->serviceManager);
29
        $this->P->cb_pagetype = 'content';
30
31
        $hardcodedtextcats = $this->serviceManager->get('hardcodedtextcats');
32
        $this->P->oPayload->cl_html = $hardcodedtextcats->get('site_currently_in_maintenance_mode');
33
    }
34
}
35

src/Controller/Sandbox.php 1 location

@@ 24-34 (lines=11) @@
21
namespace HaaseIT\HCSF\Controller;
22
23
24
class Sandbox extends Base
25
{
26
    public function preparePage()
27
    {
28
        $this->P = new \HaaseIT\HCSF\CorePage($this->serviceManager);
29
        $this->P->cb_pagetype = 'content';
30
31
        $hardcodedtextcats = $this->serviceManager->get('hardcodedtextcats');
32
        $this->P->oPayload->cl_html = $hardcodedtextcats->get('site_currently_in_maintenance_mode');
33
    }
34
}
35