src/Psecio/Iniscan/Rule/DisableCliFunctions.php
public function evaluate(array $ini)
	{
		$disableFunctions = $this->findValue('disable_functions', $ini);

		if (isset($disableFunctions)) {
			$functions = explode(',', $disableFunctions);
			foreach ($functions as $function) {
				$search = array_search($function, $this->functions);
				if ($search !== false) {
					unset($this->functions[$search]);
				}
			}
		}
		if (!empty($this->functions)) {
			$this->setDescription('Methods still enabled - '.implode(', ', $this->functions));
			$this->fail();
			return false;
		} else {
			$this->pass();
			return true;
		}
	}
public function evaluate(array $ini)
	{
		$disableFunctions = $this->findValue('disable_functions', $ini);

		if (isset($disableFunctions)) {
			$functions = explode(',', $disableFunctions);
			foreach ($functions as $function) {
				$search = array_search($function, $this->functions);
				if ($search !== false) {
					unset($this->functions[$search]);
				}
			}
		}
		if (!empty($this->functions)) {
			$this->setDescription('Methods still enabled - '.implode(', ', $this->functions));
			$this->fail();
			return false;
		} else {
			$this->pass();
			return true;
		}
	}
public function evaluate ( array $ ini ) { $ disableFunctions = $ this -> findValue ( 'disable_functions' , $ ini ) ; if ( isset ( $ disableFunctions ) ) { $ functions = explode ( ',' , $ disableFunctions ) ; foreach ( $ functions as $ function ) { $ search = array_search ( $ function , $ this -> functions ) ; if ( $ search !== false ) { unset ( $ this -> functions [ $ search ] ) ; } } } if ( ! empty ( $ this -> functions ) ) { $ this -> setDescription ( 'Methods still enabled - ' . implode ( ', ' , $ this -> functions ) ) ; $ this -> fail ( ) ; return false ; } else { $ this -> pass ( ) ; return true ; } }
Evaluate the operation

@param array $ini
@return boolean Pass/fail result
Evaluate the operation