Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
67 | 1 | public function pullChanges() |
|
68 | { |
||
69 | 1 | $changes = []; |
|
70 | |||
71 | 1 | foreach ($this->data as $key => $value) { |
|
72 | 1 | if (!array_key_exists($key, $this->original) || $this->original[$key] != $value) { |
|
73 | 1 | $changes[$key] = $value; |
|
74 | 1 | } |
|
75 | 1 | } |
|
76 | |||
77 | 1 | $this->original = $this->data; |
|
78 | 1 | return $changes; |
|
79 | } |
||
80 | } |
||
81 |