original_string: public static function json($url) {
          $opts = [
              'http' => [
                  'method' => 'GET',
                  'timeout' => 10
              ]
          ];
          $context = stream_context_create($opts);
          $feed = file_get_contents($url, false, $context);
          $json = json_decode($feed, true);
  
          return $json;
      }
code: public static function json($url) {
          $opts = [
              'http' => [
                  'method' => 'GET',
                  'timeout' => 10
              ]
          ];
          $context = stream_context_create($opts);
          $feed = file_get_contents($url, false, $context);
          $json = json_decode($feed, true);
  
          return $json;
      }
code_tokens: public static function json ( $ url ) { $ opts = [ 'http' => [ 'method' => 'GET' , 'timeout' => 10 ] ] ; $ context = stream_context_create ( $ opts ) ; $ feed = file_get_contents ( $ url , false , $ context ) ; $ json = json_decode ( $ feed , true ) ; return $ json ; }
docstring: Executes simple GET request to the CoinMarketCap public API.
  
  @param string $url API method URL.
  
  @return array JSON data.
docstring_tokens: Executes simple GET request to the CoinMarketCap public API .