public function handle($old, $new)
    {
        if ( ! $this->canHandle($old) || ! $this->canHandle($new)) {
            return null;
        }

        if ($this->equals($old, $new)) {
            return false;
        }

        $this->lastException = new FailedConstraint(
            sprintf(
                '%s() body changed',
                $new->name
            )
        );

        return true;
    }
public function handle($old, $new)
    {
        if ( ! $this->canHandle($old) || ! $this->canHandle($new)) {
            return null;
        }

        if ($this->equals($old, $new)) {
            return false;
        }

        $this->lastException = new FailedConstraint(
            sprintf(
                '%s() body changed',
                $new->name
            )
        );

        return true;
    }
public function handle ( $ old , $ new ) { if ( ! $ this -> canHandle ( $ old ) || ! $ this -> canHandle ( $ new ) ) { return null ; } if ( $ this -> equals ( $ old , $ new ) ) { return false ; } $ this -> lastException = new FailedConstraint ( sprintf ( '%s() body changed' , $ new -> name ) ) ; return true ; }
Check if body of function has changed.

@param Function_ $old
@param Function_ $new

@return bool
Check if body of function has changed .