set exclude directory as notice, not warning

master
Jean-Christian Paul Denis 2021-11-06 14:12:15 +01:00
parent 72ddf05f19
commit e2d880af27
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class ImproveActionPhpheader extends ImproveAction
$this->stop_scan = false;
if (!empty($this->getSetting('exclude_locales')) && preg_match('/\/(locales|libs)(\/.*?|)$/', $this->path_full)) {
if (!$skipped) {
$this->setWarning(__('Skip directory'));
$this->setSuccess(__('Skip directory'));
}
$this->stop_scan = true;
}
@ -160,7 +160,7 @@ class ImproveActionPhpheader extends ImproveAction
$bloc = trim($this->getSetting('bloc_content'));
if (empty($bloc)) {
self::notice(__('bloc is empty'), false);
$this->setWarning(__('bloc is empty'));
return null;
}