mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -842,7 +842,8 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
$this->markTestSkipped( 'mbstring extension not available.' );
|
||||
}
|
||||
|
||||
$old_charsets = $charsets = mb_detect_order();
|
||||
$charsets = mb_detect_order();
|
||||
$old_charsets = $charsets;
|
||||
if ( ! in_array( 'EUC-JP', $charsets ) ) {
|
||||
$charsets[] = 'EUC-JP';
|
||||
mb_detect_order( $charsets );
|
||||
@@ -866,7 +867,8 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
$this->markTestSkipped( 'mbstring extension not available.' );
|
||||
}
|
||||
|
||||
$old_charsets = $charsets = mb_detect_order();
|
||||
$charsets = mb_detect_order();
|
||||
$old_charsets = $charsets;
|
||||
if ( ! in_array( 'EUC-JP', $charsets ) ) {
|
||||
$charsets[] = 'EUC-JP';
|
||||
mb_detect_order( $charsets );
|
||||
|
||||
Reference in New Issue
Block a user