Code Duplication    Length = 11-11 lines in 2 locations

src/Intraface/XMLRPC/Shop/Server0004.php 1 location

@@ 1062-1072 (lines=11) @@
1059
     *
1060
     * @return array
1061
     */
1062
    public function getCompanyInformation($credentials)
1063
    {
1064
        $this->checkCredentials($credentials);
1065
        $address = array();
1066
        $address['name'] = $this->kernel->getIntranet()->getAddress()->get('name');
1067
        $address['address'] = $this->kernel->getIntranet()->getAddress()->get('address');
1068
        $address['postcode'] = $this->kernel->getIntranet()->getAddress()->get('postcode');
1069
        $address['city'] = $this->kernel->getIntranet()->getAddress()->get('city');
1070
        $address['cvr'] = $this->kernel->getIntranet()->getAddress()->get('cvr');
1071
        return  $this->prepareResponseData($address);
1072
    }
1073
1074
    /**
1075
     * Initialize the webshop

src/Intraface/XMLRPC/Shop/Server0100.php 1 location

@@ 1224-1234 (lines=11) @@
1221
     *
1222
     * @return array
1223
     */
1224
    public function getCompanyInformation($credentials)
1225
    {
1226
        $this->checkCredentials($credentials);
1227
        $address = array();
1228
        $address['name'] = $this->kernel->getIntranet()->getAddress()->get('name');
1229
        $address['address'] = $this->kernel->getIntranet()->getAddress()->get('address');
1230
        $address['postcode'] = $this->kernel->getIntranet()->getAddress()->get('postcode');
1231
        $address['city'] = $this->kernel->getIntranet()->getAddress()->get('city');
1232
        $address['cvr'] = $this->kernel->getIntranet()->getAddress()->get('cvr');
1233
        return  $this->prepareResponseData($address);
1234
    }
1235
1236
    /**
1237
     * Initialize the webshop