Code Duplication    Length = 12-12 lines in 2 locations

src/Greenter/Factory/CeFactory.php 1 location

@@ 176-187 (lines=12) @@
173
    /**
174
     * @param array $params
175
     */
176
    public function setParameters($params)
177
    {
178
        $this->setWsParams($params['ws']);
179
180
        if (isset($params['xml'])) {
181
            $this->builder->setParameters($params['xml']);
182
        }
183
184
        if (isset($params['cert'])) {
185
            $this->signer->setCertificate($params['cert']);
186
        }
187
    }
188
189
    /**
190
     * @param array $ws

src/Greenter/Factory/FeFactory.php 1 location

@@ 155-166 (lines=12) @@
152
    /**
153
     * @param array $params
154
     */
155
    public function setParameters($params)
156
    {
157
        $this->setWsParams($params['ws']);
158
159
        if (isset($params['xml'])) {
160
            $this->builder->setParameters($params['xml']);
161
        }
162
163
        if (isset($params['cert'])) {
164
            $this->signer->setCertificate($params['cert']);
165
        }
166
    }
167
168
    /**
169
     * Get Last XML Signed.