| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function execute(array $eventData, $eventName) |
||
| 43 | { |
||
| 44 | if (!empty($eventData['mention'])) { |
||
| 45 | $this->userNotificationModel->sendUserNotification($eventData['mention'], $eventName, $eventData); |
||
|
|
|||
| 46 | } else { |
||
| 47 | $this->userNotificationModel->sendNotifications($eventName, $eventData); |
||
| 48 | $this->projectNotificationModel->sendNotifications($eventData['task']['project_id'], $eventName, $eventData); |
||
| 49 | } |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.