src/Core/Model.php
private function findDiff($new)
    {
        $old = $this->oldValues;
        $diff = [];

        foreach ($new as $key => $value) {
            if (!isset($old[$key]) || $old[$key] !== $new[$key]) {
                $diff[$key] = $value;
            }
        }

        return $diff;
    }
private function findDiff($new)
    {
        $old = $this->oldValues;
        $diff = [];

        foreach ($new as $key => $value) {
            if (!isset($old[$key]) || $old[$key] !== $new[$key]) {
                $diff[$key] = $value;
            }
        }

        return $diff;
    }
private function findDiff ( $ new ) { $ old = $ this -> oldValues ; $ diff = [ ] ; foreach ( $ new as $ key => $ value ) { if ( ! isset ( $ old [ $ key ] ) || $ old [ $ key ] !== $ new [ $ key ] ) { $ diff [ $ key ] = $ value ; } } return $ diff ; }
Find changed properties

@param array $new new values
@return array all new or changed values
Find changed properties