Exemplo n.º 1
0
 protected function processFrame(Util\Frame $frame)
 {
     $function = $frame->getClass() ?: '';
     $function .= $frame->getClass() && $frame->getFunction() ? ":" : "";
     $function .= $frame->getFunction() ?: '';
     $fileline = $frame->getFile() ?: '<#unknown>';
     $fileline .= ':';
     $fileline .= (int) $frame->getLine();
     return [$function, $fileline];
 }
Exemplo n.º 2
0
 /**
  * Compares Frame against one another
  *
  * @param Frame $frame
  *
  * @return boolean
  */
 public function equals(Frame $frame)
 {
     if (!$this->getFile() || $this->getFile() === 'Unknown' || !$this->getLine()) {
         return false;
     }
     return $frame->getFile() === $this->getFile() && $frame->getLine() === $this->getLine();
 }