| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function collect($messages, $final) |
||
| 53 | { |
||
| 54 | // Bail if either values are null |
||
| 55 | if (($messages === null) || ($this->messages === null)) { |
||
| 56 | return; |
||
| 57 | } |
||
| 58 | // Merge in any messages intended for us |
||
| 59 | $this->messages = array_merge( |
||
| 60 | $this->messages, |
||
| 61 | static::filterMessages($messages, $this->getLevels(), $this->categories, $this->except) |
||
| 62 | ); |
||
| 63 | if ($final) { |
||
| 64 | $this->export(); |
||
| 65 | Webperf::$plugin->beacons->includeCraftErrorsBeacon(); |
||
| 66 | } |
||
| 76 |