@@ -72,12 +72,12 @@ discard block |
||
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 |
||
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 ) ) { |
@@ -72,7 +72,7 @@ |
||
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 |