| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function add($message, $icon = null) |
||
| 21 | { |
||
| 22 | $activity = $this->createActivity($message, $icon); |
||
| 23 | |||
| 24 | $activityLog = $this->repository->activityLog; |
||
| 25 | $activityLog[] = $activity; |
||
| 26 | usort($activityLog, array($this, 'cmp')); |
||
| 27 | $activityLog = array_slice($activityLog, 0, 100); |
||
| 28 | $this->repository->activityLog = $activityLog; |
||
| 29 | $this->repository->save(); |
||
| 30 | } |
||
| 59 | } |