mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°4517 - PHP 8.1: Fix typos
This commit is contained in:
@@ -35,6 +35,7 @@ use DBObjectSearch;
|
||||
use Exception;
|
||||
use Expression;
|
||||
use MetaModel;
|
||||
use utils;
|
||||
|
||||
class CriterionToOQL extends CriterionConversionAbstract
|
||||
{
|
||||
@@ -119,7 +120,7 @@ class CriterionToOQL extends CriterionConversionAbstract
|
||||
$aValues = self::GetValues($aCriteria);
|
||||
$sValue = self::GetValue($aValues, 0);
|
||||
|
||||
if (!\Utils::StrLen($sValue)) {
|
||||
if (!utils::StrLen($sValue)) {
|
||||
return "1";
|
||||
}
|
||||
|
||||
@@ -131,7 +132,7 @@ class CriterionToOQL extends CriterionConversionAbstract
|
||||
$aValues = self::GetValues($aCriteria);
|
||||
$sValue = self::GetValue($aValues, 0);
|
||||
|
||||
if (!\Utils::StrLen($sValue)) {
|
||||
if (!utils::StrLen($sValue)) {
|
||||
return "1";
|
||||
}
|
||||
|
||||
@@ -143,7 +144,7 @@ class CriterionToOQL extends CriterionConversionAbstract
|
||||
$aValues = self::GetValues($aCriteria);
|
||||
$sValue = self::GetValue($aValues, 0);
|
||||
|
||||
if (!\Utils::StrLen($sValue)) {
|
||||
if (!utils::StrLen($sValue)) {
|
||||
return "1";
|
||||
}
|
||||
|
||||
@@ -159,7 +160,7 @@ class CriterionToOQL extends CriterionConversionAbstract
|
||||
return "({$sRef} = '0')";
|
||||
}
|
||||
|
||||
if (!\Utils::StrLen($sValue) && (!(isset($aCriteria['has_undefined'])) || !($aCriteria['has_undefined']))) {
|
||||
if (!utils::StrLen($sValue) && (!(isset($aCriteria['has_undefined'])) || !($aCriteria['has_undefined']))) {
|
||||
return "1";
|
||||
}
|
||||
|
||||
@@ -171,7 +172,7 @@ class CriterionToOQL extends CriterionConversionAbstract
|
||||
$aValues = self::GetValues($aCriteria);
|
||||
$sValue = self::GetValue($aValues, 0);
|
||||
|
||||
if (!\Utils::StrLen($sValue)) {
|
||||
if (!utils::StrLen($sValue)) {
|
||||
return "1";
|
||||
}
|
||||
|
||||
@@ -186,7 +187,7 @@ class CriterionToOQL extends CriterionConversionAbstract
|
||||
for($i = 0; $i < count($aValues); $i++)
|
||||
{
|
||||
$sRawValue = self::GetValue($aValues, $i);
|
||||
if (!\Utils::StrLen($sRawValue)) {
|
||||
if (!utils::StrLen($sRawValue)) {
|
||||
$bHasUnDefined = true;
|
||||
} else {
|
||||
$aRawValues[] = $sRawValue;
|
||||
|
||||
Reference in New Issue
Block a user