src/Psecio/Iniscan/Rule.php
public function respectThreshold($wantedLevel) {
		// If not threshold is given, always display the rule
		if (is_null($wantedLevel)) {
			return true;
		}

		$currentValue = $this->getLevelNumericalValue($this->level);
		$wantedValue = $this->getLevelNumericalValue($wantedLevel);

		return  $currentValue >= $wantedValue;
	}
public function respectThreshold($wantedLevel) {
		// If not threshold is given, always display the rule
		if (is_null($wantedLevel)) {
			return true;
		}

		$currentValue = $this->getLevelNumericalValue($this->level);
		$wantedValue = $this->getLevelNumericalValue($wantedLevel);

		return  $currentValue >= $wantedValue;
	}
public function respectThreshold ( $ wantedLevel ) { // If not threshold is given, always display the rule if ( is_null ( $ wantedLevel ) ) { return true ; } $ currentValue = $ this -> getLevelNumericalValue ( $ this -> level ) ; $ wantedValue = $ this -> getLevelNumericalValue ( $ wantedLevel ) ; return $ currentValue >= $ wantedValue ; }
Check that the rule matches the wanted security level

@param string $wantedLevel The minimum level to display
@return bool
Check that the rule matches the wanted security level