Permalink
Browse files

Fix warnings about continue inside switch on PHP 7.3 (ezsystems#1387)

  • Loading branch information...
emodric authored and andrerom committed Oct 10, 2018
1 parent b494b89 commit 929df6bca01bd11312772c5ffef8ec275f30beda
@@ -226,7 +226,7 @@ static function subTree( $parameters = array() )
default:
{
eZDebug::writeWarning( 'Unknown sort field: ' . $sortField, __METHOD__ );
continue;
continue 2;
}
}
$sortOrder = true; // true is ascending
@@ -389,7 +389,7 @@ static function fetchListTool( $parameters = array(), $asCount )
default:
{
eZDebug::writeWarning( 'Unknown sort field: ' . $sortField, __METHOD__ );
continue;
continue 2;
}
}
$sortOrder = true; // true is ascending
@@ -731,7 +731,7 @@ static function createSortingSQLStrings( $sortList, $treeTableName = 'ezcontento
else
{
eZDebug::writeWarning( 'Unknown sort field: ' . $sortField, __METHOD__ );
continue;
continue 2;
}
}
}
@@ -157,7 +157,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
return $access;
}
else
continue;
continue 2;
} break;
case 'port':
{
@@ -168,7 +168,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
return $access;
}
else
continue;
continue 2;
} break;
case 'uri':
{
@@ -222,7 +222,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
$match_num = $ini->variable( 'SiteAccessSettings', 'URIMatchRegexpItem' );
}
else
continue;
continue 2;
} break;
case 'host':
{
@@ -264,7 +264,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
$match_num = $ini->variable( 'SiteAccessSettings', 'HostMatchRegexpItem' );
}
else
continue;
continue 2;
} break;
case 'host_uri':
{
@@ -353,7 +353,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
$match_num = $ini->variable( 'SiteAccessSettings', 'IndexMatchRegexpItem' );
}
else
continue;
continue 2;
} break;
default:
{
@@ -67,7 +67,6 @@ function fetchList( $filterArray = false, $offset, $limit, $repositoryID )
default:
{
eZDebug::writeWarning( 'Unknown package filter name: ' . $filterName );
continue;
}
}
}
@@ -158,7 +157,6 @@ function fetchDependentPackageList( $packageName, $filterArray = false, $reposit
default:
{
eZDebug::writeWarning( 'Unknown package filter name: ' . $filterName );
continue;
}
}
}
@@ -1206,7 +1206,7 @@ function buildSortSQL( $sortArray )
default:
{
eZDebug::writeWarning( 'Unknown sort field: ' . $sortField, __METHOD__ );
continue;
continue 2;
}
}
$sortOrder = true; // true is ascending
@@ -455,8 +455,7 @@ function executeBody( $includeFile, $className, $bodyStructure,
if ( !$this->UseTriggers )
{
$bodyReturnValue['status'] = eZModuleOperationInfo::STATUS_CONTINUE;
continue;
continue 2;
}
$triggerName = $body['name'];

0 comments on commit 929df6b

Please sign in to comment.