mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 07:07:04 +00:00
Coding Standards: Always use parentheses when instantiating an object.
Note: This will be enforced by WPCS 3.0.0. Props jrf. See #56791. git-svn-id: https://develop.svn.wordpress.org/trunk@54891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -639,7 +639,7 @@ class WP_oEmbed {
|
||||
return false;
|
||||
}
|
||||
|
||||
$dom = new DOMDocument;
|
||||
$dom = new DOMDocument();
|
||||
$success = $dom->loadXML( $response_body );
|
||||
if ( ! $success ) {
|
||||
return false;
|
||||
@@ -660,7 +660,7 @@ class WP_oEmbed {
|
||||
return false;
|
||||
}
|
||||
|
||||
$return = new stdClass;
|
||||
$return = new stdClass();
|
||||
foreach ( $xml as $key => $value ) {
|
||||
$return->$key = (string) $value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user