Code Duplication    Length = 10-10 lines in 2 locations

src/Greenter/Factory/CeFactory.php 1 location

@@ 192-201 (lines=10) @@
189
    /**
190
     * @param array $ws
191
     */
192
    private function setWsParams($ws)
193
    {
194
        $this->sender->setCredentials($ws['user'], $ws['pass']);
195
        if (isset($ws['service'])) {
196
            $this->isProd = $ws['service'] == FeSunat::PRODUCCION;
197
        }
198
        if (isset($ws['wsdl'])) {
199
            $this->sender->setUrlWsdl($ws['wsdl']);
200
        }
201
    }
202
203
    /**
204
     * @param string $xml

src/Greenter/Factory/FeFactory.php 1 location

@@ 181-190 (lines=10) @@
178
    /**
179
     * @param array $ws
180
     */
181
    private function setWsParams($ws)
182
    {
183
        $this->sender->setCredentials($ws['user'], $ws['pass']);
184
        if (isset($ws['service'])) {
185
            $this->sender->setService($ws['service']);
186
        }
187
        if (isset($ws['wsdl'])) {
188
            $this->sender->setUrlWsdl($ws['wsdl']);
189
        }
190
    }
191
192
    /**
193
     * @param string $xml