@@ -35,29 +35,29 @@ class Notification implements NotificationInterface
35
35
protected bool $ useQueue = false ;
36
36
37
37
/**
38
- * Save the notifications into the db
38
+ * Save the notifications into the db.
39
39
*
40
40
* @var bool
41
41
*/
42
42
protected bool $ saveNotification = true ;
43
43
44
44
/**
45
- * Send this notification to pusher
46
- *
45
+ * Send this notification to pusher.
46
+ *
47
47
* @var bool
48
48
*/
49
49
protected bool $ toPusher = true ;
50
50
51
51
/**
52
- * Send this notification to mail
53
- *
52
+ * Send this notification to mail.
53
+ *
54
54
* @var bool
55
55
*/
56
56
protected bool $ toMail = true ;
57
57
58
58
/**
59
- * Send this notification to push notification
60
- *
59
+ * Send this notification to push notification.
60
+ *
61
61
* @var bool
62
62
*/
63
63
protected bool $ toPushNotification = true ;
@@ -293,11 +293,11 @@ public function sendToQueue() : bool
293
293
}
294
294
295
295
/**
296
- * Save the notification used to the database
296
+ * Save the notification used to the database.
297
297
*
298
- * @return boolean
298
+ * @return bool
299
299
*/
300
- public function saveNotification (): bool
300
+ public function saveNotification () : bool
301
301
{
302
302
$ content = $ this ->message ();
303
303
$ app = Di::getDefault ()->getApp ();
@@ -325,29 +325,29 @@ public function saveNotification(): bool
325
325
*/
326
326
public function trigger () : bool
327
327
{
328
- if ($ this ->saveNotification ) {
328
+ if ($ this ->saveNotification ) {
329
329
$ this ->saveNotification ();
330
330
}
331
331
332
- if ($ this ->toPusher ) {
332
+ if ($ this ->toPusher ) {
333
333
$ this ->toPusher ();
334
334
}
335
335
336
- if ($ this ->toMail ) {
336
+ if ($ this ->toMail ) {
337
337
$ this ->toMailNotification ();
338
338
}
339
339
340
- if ($ this ->toPushNotification ) {
340
+ if ($ this ->toPushNotification ) {
341
341
$ this ->toSendPushNotification ();
342
342
}
343
343
344
344
return true ;
345
345
}
346
346
347
347
/**
348
- * Send to pusher the notification
348
+ * Send to pusher the notification.
349
349
*
350
- * @return boolean
350
+ * @return bool
351
351
*/
352
352
public function toPusher () : bool
353
353
{
@@ -360,9 +360,9 @@ public function toPusher() : bool
360
360
}
361
361
362
362
/**
363
- * Send notification to mail
363
+ * Send notification to mail.
364
364
*
365
- * @return boolean
365
+ * @return bool
366
366
*/
367
367
public function toMailNotification () : bool
368
368
{
@@ -375,9 +375,9 @@ public function toMailNotification() : bool
375
375
}
376
376
377
377
/**
378
- * Send Push notification
378
+ * Send Push notification.
379
379
*
380
- * @return boolean
380
+ * @return bool
381
381
*/
382
382
public function toSendPushNotification () : bool
383
383
{
0 commit comments