Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Apply fixes from StyleCI (#94) (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
herpaderpaldent authored Mar 28, 2019
1 parent a86b557 commit 7c56397
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Listeners/GroupApplicationNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public function handle(GroupApplication $event)

if($recipients->isEmpty()){
logger()->debug('No Receiver found for ' . AbstractSeatGroupApplicationNotification::getTitle() . ' Notification. This job is going to be deleted.');

return false;
}

Expand Down
1 change: 1 addition & 0 deletions src/Listeners/GroupSyncFailedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function handle(GroupSyncFailed $event)

if($recipients->isEmpty()){
logger()->debug('No Receiver found for ' . AbstractSeatGroupErrorNotification::getTitle() . ' Notification. This job is going to be deleted.');

return false;
}

Expand Down
1 change: 1 addition & 0 deletions src/Listeners/GroupSyncedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function handle(GroupSynced $event)

if($recipients->isEmpty()){
logger()->debug('No Receiver found for ' . AbstractSeatGroupSyncNotification::getTitle() . ' Notification. This job is going to be deleted.');

return false;
}

Expand Down
1 change: 1 addition & 0 deletions src/Listeners/MissingRefreshTokenNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function handle(MissingRefreshToken $event)

if($recipients->isEmpty()){
logger()->debug('No Receiver found for ' . AbstractMissingRefreshTokenNotification::getTitle() . ' Notification. This job is going to be deleted.');

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,14 @@ public function dontSend($notifiable) :bool
$value = collect([
'recipient' => $notifiable->driver_id,
'notification' => get_called_class(),
'content' => get_object_vars($this)
'content' => get_object_vars($this),
])->toJson();

$key = sha1($value);

if (empty(cache($key))) {
cache([$key => $value], now()->addHours(4));

return false;
}

Expand Down

0 comments on commit 7c56397

Please sign in to comment.