public function apply($testable, array $config = array()) {
		$tokens = $testable->tokens();
		$message = 'Weak comparison operator {:key} used, try {:value} instead';
		$filtered = $testable->findAll(array_keys($this->inspectableTokens));

		foreach ($filtered as $id) {
			$token = $tokens[$id];
			$this->addWarning(array(
				'message' => String::insert($message, array(
					'key' => token_name($token['id']),
					'value' => $this->inspectableTokens[$token['id']],
				)),
				'line' => $token['line'],
			));
		}
	}
public function apply($testable, array $config = array()) {
		$tokens = $testable->tokens();
		$message = 'Weak comparison operator {:key} used, try {:value} instead';
		$filtered = $testable->findAll(array_keys($this->inspectableTokens));

		foreach ($filtered as $id) {
			$token = $tokens[$id];
			$this->addWarning(array(
				'message' => String::insert($message, array(
					'key' => token_name($token['id']),
					'value' => $this->inspectableTokens[$token['id']],
				)),
				'line' => $token['line'],
			));
		}
	}
public function apply ( $ testable , array $ config = array ( ) ) { $ tokens = $ testable -> tokens ( ) ; $ message = 'Weak comparison operator {:key} used, try {:value} instead' ; $ filtered = $ testable -> findAll ( array_keys ( $ this -> inspectableTokens ) ) ; foreach ( $ filtered as $ id ) { $ token = $ tokens [ $ id ] ; $ this -> addWarning ( array ( 'message' => String :: insert ( $ message , array ( 'key' => token_name ( $ token [ 'id' ] ) , 'value' => $ this -> inspectableTokens [ $ token [ 'id' ] ] , ) ) , 'line' => $ token [ 'line' ] , ) ) ; } }
Will iterate over each line checking if any weak comparison operators
are used within the code.

@param  Testable $testable The testable object
@return void
Will iterate over each line checking if any weak comparison operators are used within the code .