Test Setup Failed
Pull Request — develop (#1737)
by
unknown
03:18
created
modules/webfonts/class-kirki-modules-webfonts-async.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
 	 * @param string $relation_type  The relation type the URLs are printed.
73 73
 	 * @return array $urls           URLs to print for resource hints.
74 74
 	 */
75
-	public function resource_hints( $urls, $relation_type ){
75
+	public function resource_hints( $urls, $relation_type ) {
76 76
 
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 );
114
+			$fonts_to_load[ ] = $font . ':' . join( ',', $weights );
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.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 	 * @param string $relation_type  The relation type the URLs are printed.
73 73
 	 * @return array $urls           URLs to print for resource hints.
74 74
 	 */
75
-	public function resource_hints( $urls, $relation_type ){
75
+	public function resource_hints( $urls, $relation_type ) {
76 76
 
77 77
 		$fonts_to_load = $this->googlefonts->fonts;
78 78
 
Please login to merge, or discard this patch.