@@ 771-779 (lines=9) @@ | ||
768 | $oppositeType = 'error'; |
|
769 | } |
|
770 | ||
771 | foreach ($checkCodes as $checkCode) { |
|
772 | // Make sure this message type has not been set to the opposite message type. |
|
773 | if (isset($this->ruleset->ruleset[$checkCode]['type']) === true |
|
774 | && $this->ruleset->ruleset[$checkCode]['type'] === $oppositeType |
|
775 | ) { |
|
776 | $error = !$error; |
|
777 | break; |
|
778 | } |
|
779 | } |
|
780 | ||
781 | if ($error === true) { |
|
782 | $configSeverity = $this->configCache['errorSeverity']; |
|
@@ 801-807 (lines=7) @@ | ||
798 | $severity = 5; |
|
799 | } |
|
800 | ||
801 | foreach ($checkCodes as $checkCode) { |
|
802 | // Make sure we are interested in this severity level. |
|
803 | if (isset($this->ruleset->ruleset[$checkCode]['severity']) === true) { |
|
804 | $severity = $this->ruleset->ruleset[$checkCode]['severity']; |
|
805 | break; |
|
806 | } |
|
807 | } |
|
808 | ||
809 | if ($includeAll === false && $configSeverity > $severity) { |
|
810 | return false; |