change method name, add EXTR_SKIP to extract call
This commit is contained in:
parent
e61f3f5cba
commit
b2ca059c05
|
|
@ -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 ) ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue