Minor cleanup to Exception\Frame::equals

This commit is contained in:
Denis
2014-02-07 13:32:07 +02:00
parent 89191b4c5f
commit dc2c1559f4
+3 -6
View File
@@ -233,12 +233,9 @@ class Frame implements Serializable
*/
public function equals(Frame $frame)
{
if(in_array('Unknown', array($this->getFile(), $frame->getFile())) ||
in_array(0, array($this->getLine(), $frame->getLine()))
) {
return false; //we need to keep untrackable frames separate
if (!$this->getFile() || $this->getFile() === 'Unknown' || !$this->getLine()) {
return false;
}
return $frame->getFile() == $this->getFile() && $frame->getLine() === $this->getLine();
return $frame->getFile() === $this->getFile() && $frame->getLine() === $this->getLine();
}
}