From b2ca059c05c41c00d769a4c77c6ba9aad85992f9 Mon Sep 17 00:00:00 2001 From: Richard Coffee Date: Mon, 30 Mar 2020 15:15:35 -0400 Subject: [PATCH] change method name, add EXTR_SKIP to extract call --- Puc/v4p9/Factory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Puc/v4p9/Factory.php b/Puc/v4p9/Factory.php index 77b0afa..ddcbf1c 100644 --- a/Puc/v4p9/Factory.php +++ b/Puc/v4p9/Factory.php @@ -24,7 +24,7 @@ if ( !class_exists('Puc_v4p9_Factory', false) ): * @param string $fullPath * @param array */ - public static function updateChecker( $fullPath, $args = array() ) { + public static function buildFromHeader( $fullPath, $args = array() ) { $fullPath = self::normalizePath( $fullPath ); //Set up defaults. @@ -36,7 +36,7 @@ if ( !class_exists('Puc_v4p9_Factory', false) ): 'muPluginFile' => '', ); $args = array_merge( $defaults, array_intersect_key( $args, $defaults ) ); - extract( $args ); + extract( $args, EXTR_SKIP ); //Check for the service URI if ( empty( $metadataUrl ) ) {