Code Duplication    Length = 5-5 lines in 2 locations

source/CommonCode.php 2 locations

@@ 230-234 (lines=5) @@
227
    protected function getContentFromUrlThroughCurlAsArrayIfJson($fullURL, $features = null)
228
    {
229
        $result = $this->setJsonToArray($this->getContentFromUrlThroughCurl($fullURL, $features));
230
        if (isset($result['info'])) {
231
            if (is_array($result['info'])) {
232
                ksort($result['info']);
233
            }
234
        }
235
        if (isset($result['response'])) {
236
            if (is_array($result['response'])) {
237
                ksort($result['response']);
@@ 235-239 (lines=5) @@
232
                ksort($result['info']);
233
            }
234
        }
235
        if (isset($result['response'])) {
236
            if (is_array($result['response'])) {
237
                ksort($result['response']);
238
            }
239
        }
240
        return $result;
241
    }
242