Code Duplication    Length = 7-8 lines in 3 locations

src/Controller/Admin/Pageadmin.php 1 location

@@ 53-60 (lines=8) @@
50
     * Pageadmin constructor.
51
     * @param ServiceManager $serviceManager
52
     */
53
    public function __construct(ServiceManager $serviceManager)
54
    {
55
        parent::__construct($serviceManager);
56
        /** @var \Zend\Diactoros\ServerRequest request */
57
        $this->request = $serviceManager->get('request');
58
        $this->post = $this->request->getParsedBody();
59
        $this->get = $this->request->getQueryParams();
60
    }
61
62
    /**
63
     *

src/Controller/Admin/Shop/Itemadmin.php 1 location

@@ 60-67 (lines=8) @@
57
     * Itemadmin constructor.
58
     * @param ServiceManager $serviceManager
59
     */
60
    public function __construct(ServiceManager $serviceManager)
61
    {
62
        parent::__construct($serviceManager);
63
        $this->dbal = $serviceManager->get('dbal');
64
        $this->request = $serviceManager->get('request');
65
        $this->get = $this->request->getQueryParams();
66
        $this->post = $this->request->getParsedBody();
67
    }
68
69
    /**
70
     *

src/Controller/Admin/Shop/Itemgroupadmin.php 1 location

@@ 55-61 (lines=7) @@
52
     * Itemgroupadmin constructor.
53
     * @param ServiceManager $serviceManager
54
     */
55
    public function __construct(ServiceManager $serviceManager)
56
    {
57
        parent::__construct($serviceManager);
58
        $this->dbal = $serviceManager->get('dbal');
59
        $this->request = $serviceManager->get('request');
60
        $this->post = $this->request->getParsedBody();
61
    }
62
63
    /**
64
     *