Source

trekel / src / php / Trekel / Node / Attribute / NotEquals.php

Full commit
<?php

class Trekel_Node_Attribute_NotEquals extends Trekel_Node_Attribute {
  public function reduce ($node, $idx, $total) {
    $this->initMatches();
    $data = $this->getData($node);
    $value = $this->getValue();

    if ($data != $value) {
      $this->matchNode($node);
    }

    return $this->getMatches();
  }
}// end Trekel_Node_Attribute_NotEquals