Code Duplication    Length = 5-5 lines in 2 locations

source/CommonCode.php 2 locations

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