Code Duplication    Length = 5-5 lines in 2 locations

source/CommonCode.php 2 locations

@@ 206-210 (lines=5) @@
203
        }
204
        curl_close($chanel);
205
        $sReturn = '';
206
        if ($this->isJsonByDanielGP($aReturn['info'])) {
207
            $sReturn = '"info": ' . $aReturn['info'];
208
        } else {
209
            $sReturn = '"info": {' . $aReturn['info'] . ' }';
210
        }
211
        $sReturn .= ', ';
212
        if ($this->isJsonByDanielGP($aReturn['response'])) {
213
            $sReturn .= '"response": ' . $aReturn['response'];
@@ 212-216 (lines=5) @@
209
            $sReturn = '"info": {' . $aReturn['info'] . ' }';
210
        }
211
        $sReturn .= ', ';
212
        if ($this->isJsonByDanielGP($aReturn['response'])) {
213
            $sReturn .= '"response": ' . $aReturn['response'];
214
        } else {
215
            $sReturn .= '"response": { ' . $aReturn['response'] . ' }';
216
        }
217
        return '{ ' . $sReturn . ' }';
218
    }
219