Skip to content

Commit

Permalink
Merge pull request #36 from tanhongit/develop
Browse files Browse the repository at this point in the history
clean code in event service
  • Loading branch information
tanhongit authored Aug 12, 2023
2 parents 1492ae1 + 848502c commit a2f6ae6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/EventService.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ private function getEventName(string $event, $value): string
/**
* Get callback data for markup
*
* @param string $event
* @param array|string $value
* @param string $event
* @param array|bool $value
* @param string|null $parentEvent
*
* @return string
*/
private function getCallbackData(string $event, array|string $value, ?string $parentEvent = null): string
private function getCallbackData(string $event, array|bool $value = false, ?string $parentEvent = null): string
{
if (is_array($value)) {
return $this->event::EVENT_PREFIX . self::EVENT_HAS_ACTION_SEPARATOR . $event;
Expand Down

0 comments on commit a2f6ae6

Please sign in to comment.