Code Duplication    Length = 5-5 lines in 2 locations

source/CommonCode.php 2 locations

@@ 132-136 (lines=5) @@
129
    protected function getContentFromUrlThroughCurlAsArrayIfJson($fullURL, $features = null)
130
    {
131
        $result = $this->setJsonToArray($this->getContentFromUrlThroughCurl($fullURL, $features));
132
        if (isset($result['info'])) {
133
            if (is_array($result['info'])) {
134
                ksort($result['info']);
135
            }
136
        }
137
        if (isset($result['response'])) {
138
            if (is_array($result['response'])) {
139
                ksort($result['response']);
@@ 137-141 (lines=5) @@
134
                ksort($result['info']);
135
            }
136
        }
137
        if (isset($result['response'])) {
138
            if (is_array($result['response'])) {
139
                ksort($result['response']);
140
            }
141
        }
142
        return $result;
143
    }
144