I hate to be a pain here, but this looks terrible. Could it be formatted like
```php
        // Clear overdue flag if duedate or SLA changes and the ticket is no longer overdue.
        if($this->isOverdue()
                // Has revolving SLA
                && $this->getSLA()->isRevolving() 
                // New due date in the future.
                && Misc::db2gmtime($this->getEstDueDate()) > Misc::gmtime()) {
            $this->clearOverdue();
        }
```