Code Duplication    Length = 12-12 lines in 2 locations

src/Greenter/Factory/CeFactory.php 1 location

@@ 143-154 (lines=12) @@
140
    /**
141
     * @param array $params
142
     */
143
    public function setParameters($params)
144
    {
145
        $this->setWsParams($params['ws']);
146
147
        if (isset($params['xml'])) {
148
            $this->builder->setParameters($params['xml']);
149
        }
150
151
        if (isset($params['cert'])) {
152
            $this->signer->setCertificate($params['cert']);
153
        }
154
    }
155
156
    private function setService($isGuia = false)
157
    {

src/Greenter/Factory/FeFactory.php 1 location

@@ 122-133 (lines=12) @@
119
    /**
120
     * @param array $params
121
     */
122
    public function setParameters($params)
123
    {
124
        $this->setWsParams($params['ws']);
125
126
        if (isset($params['xml'])) {
127
            $this->builder->setParameters($params['xml']);
128
        }
129
130
        if (isset($params['cert'])) {
131
            $this->signer->setCertificate($params['cert']);
132
        }
133
    }
134
135
    /**
136
     * Get Last XML Signed.