Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.



git-svn-id: https://develop.svn.wordpress.org/trunk@45583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast
2019-07-01 12:50:14 +00:00
parent 5fe76184f2
commit 9a1549767e
74 changed files with 634 additions and 337 deletions
+6 -4
View File
@@ -43,7 +43,8 @@ if ( is_network_admin() ) {
// Create list of page plugin hook names.
foreach ( $menu as $menu_page ) {
if ( false !== $pos = strpos( $menu_page[2], '?' ) ) {
$pos = strpos( $menu_page[2], '?' );
if ( false !== $pos ) {
// Handle post_type=post|page|foo pages.
$hook_name = substr( $menu_page[2], 0, $pos );
$hook_args = substr( $menu_page[2], $pos + 1 );
@@ -200,9 +201,10 @@ function add_cssclass( $add, $class ) {
* @return array
*/
function add_menu_classes( $menu ) {
$first = $lastorder = false;
$i = 0;
$mc = count( $menu );
$first = false;
$lastorder = false;
$i = 0;
$mc = count( $menu );
foreach ( $menu as $order => $top ) {
$i++;