👌 peer review

mostly coding convention,

thanks @molkobain
This commit is contained in:
bruno DA SILVA
2020-01-07 15:34:27 +01:00
parent 2043010aad
commit 838c4f123c
7 changed files with 11 additions and 17 deletions

View File

@@ -43,11 +43,11 @@ function TestConfig($sContents, $oP)
{
/// 1- first check if there is no malicious code
$oiTopConfigValidator = new iTopConfigAstValidator();
$oiTopConfigValidator->validate($sContents);
$oiTopConfigValidator->Validate($sContents);
/// 2 - only after we are sure that there is no malicious cade, we can perform a syntax check!
$oiTopConfigValidator = new iTopConfigSyntaxValidator();
$oiTopConfigValidator->validate($sContents, true);
$oiTopConfigValidator->Validate($sContents, true);
}
/**