Passed
Push — develop ( 1b3865...c8f8c3 )
by Aristeides
04:12
created
modules/webfonts/class-kirki-modules-webfonts-async.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 		$fonts_to_load = $this->googlefonts->fonts;
78 78
 
79 79
 		if ( ! empty( $fonts_to_load ) && 'preconnect' === $relation_type ) {
80
-			$urls[] = array(
80
+			$urls[ ] = array(
81 81
 				'href' => 'https://fonts.gstatic.com',
82 82
 				'crossorigin',
83 83
 			);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 					$weights[ $key ] = str_replace( array( 'regular', 'bold', 'italic' ), array( '400', '', 'i' ), $value );
112 112
 				}
113 113
 			}
114
-			$fonts_to_load[] = $font . ':' . join( ',', $weights ) . ':cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai';
114
+			$fonts_to_load[ ] = $font . ':' . join( ',', $weights ) . ':cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai';
115 115
 		}
116 116
 		wp_enqueue_script( 'webfont-loader', 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', array(), KIRKI_VERSION );
117 117
 		if ( empty( $fonts_to_load ) ) {
Please login to merge, or discard this patch.