/** * Do compare. * * @param bool $strict Use strict compare. * * @return boolean The result of compare. */ public function compare($strict = false) { $compare2 = $this->compare2; if (is_string($this->compare2)) { $compare2 = explode($this->separator, $this->compare2); $compare2 = array_map('trim', $compare2); } return CompareHelper::compare($this->compare1, $this->operator, $compare2, $strict); }
/** * Do compare. * * @param bool $strict Use strict compare. * * @return boolean The result of compare. */ public function compare($strict = false) { return CompareHelper::compare($this->compare1, $this->operator, $this->compare2, $strict); }