Code Duplication    Length = 5-5 lines in 2 locations

source/CommonCode.php 2 locations

@@ 108-112 (lines=5) @@
105
        }
106
        curl_close($chanel);
107
        $sReturn = '';
108
        if ($this->isJsonByDanielGP($aReturn['info'])) {
109
            $sReturn = '"info": ' . $aReturn['info'];
110
        } else {
111
            $sReturn = '"info": {' . $aReturn['info'] . ' }';
112
        }
113
        $sReturn .= ', ';
114
        if ($this->isJsonByDanielGP($aReturn['response'])) {
115
            $sReturn .= '"response": ' . $aReturn['response'];
@@ 114-118 (lines=5) @@
111
            $sReturn = '"info": {' . $aReturn['info'] . ' }';
112
        }
113
        $sReturn .= ', ';
114
        if ($this->isJsonByDanielGP($aReturn['response'])) {
115
            $sReturn .= '"response": ' . $aReturn['response'];
116
        } else {
117
            $sReturn .= '"response": { ' . $aReturn['response'] . ' }';
118
        }
119
        return '{ ' . $sReturn . ' }';
120
    }
121