Passed
Pull Request — master (#1889)
by Aristeides
04:14
created
modules/webfonts/class-kirki-fonts-google-local.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,8 +80,10 @@
 block discarded – undo
80 80
 	 * @param string $family The font-family name.
81 81
 	 * @return Kirki_Fonts_Google_Local
82 82
 	 */
83
-	public static function do( $family ) {
83
+	public static function do {
84
+		( $family ) {
84 85
 		$key = sanitize_key( $family );
86
+	}
85 87
 		if ( ! isset( self::$instances[ $key ] ) ) {
86 88
 			self::$instances[ $key ] = new self( $family );
87 89
 		}
Please login to merge, or discard this patch.
modules/webfonts/class-kirki-modules-webfonts-local.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,9 @@
 block discarded – undo
91 91
 		$fonts = array_keys( $this->googlefonts->fonts );
92 92
 		$fonts = array_unique( $fonts );
93 93
 		foreach ( $fonts as $family ) {
94
-			$css .= Kirki_Fonts_Google_Local::do( $family )->get_css();
94
+			$css .= Kirki_Fonts_Google_Local::do {
95
+				( $family )->get_css();
96
+			}
95 97
 		}
96 98
 		if ( $css ) {
97 99
 			echo '<style id="kirki-local-webfonts-' . esc_attr( sanitize_key( $this->config_id ) ) . '">' . $css . '</style>'; // WPCS: XSS ok.
Please login to merge, or discard this patch.