original_string: protected function loadCdnStyles()
      {
          if (file_exists(sprintf('%s/cdn-styles.json', $this->paths->getThemeConfigDir()))) {
              $cdnContent = file_get_contents(sprintf('%s/cdn-styles.json', $this->paths->getThemeConfigDir()));
              $cdnStyles = json_decode($cdnContent, true);
              for ($i = 0; $i < count($cdnStyles); $i++) {
                  $handle = $i ? 'cdn'.$i : 'cdn';
                  wp_enqueue_style($handle, $cdnStyles[$i], [], null);
              }
          }
      }
code: protected function loadCdnStyles()
      {
          if (file_exists(sprintf('%s/cdn-styles.json', $this->paths->getThemeConfigDir()))) {
              $cdnContent = file_get_contents(sprintf('%s/cdn-styles.json', $this->paths->getThemeConfigDir()));
              $cdnStyles = json_decode($cdnContent, true);
              for ($i = 0; $i < count($cdnStyles); $i++) {
                  $handle = $i ? 'cdn'.$i : 'cdn';
                  wp_enqueue_style($handle, $cdnStyles[$i], [], null);
              }
          }
      }
code_tokens: protected function loadCdnStyles ( ) { if ( file_exists ( sprintf ( '%s/cdn-styles.json' , $ this -> paths -> getThemeConfigDir ( ) ) ) ) { $ cdnContent = file_get_contents ( sprintf ( '%s/cdn-styles.json' , $ this -> paths -> getThemeConfigDir ( ) ) ) ; $ cdnStyles = json_decode ( $ cdnContent , true ) ; for ( $ i = 0 ; $ i < count ( $ cdnStyles ) ; $ i ++ ) { $ handle = $ i ? 'cdn' . $ i : 'cdn' ; wp_enqueue_style ( $ handle , $ cdnStyles [ $ i ] , [ ] , null ) ; } } }
docstring: Loads stylesheets from CDNs such as Google fonts
docstring_tokens: Loads stylesheets from CDNs such as Google fonts