Skip to content

Commit

Permalink
feat(wp-nonce-middleware): split middleware into two responsibilities
Browse files Browse the repository at this point in the history
Fix: #167
Fix: #159
  • Loading branch information
calvinalkan committed Dec 6, 2022
1 parent 1368c80 commit 0aa41b3
Show file tree
Hide file tree
Showing 12 changed files with 516 additions and 423 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private function dispatchMappedFilter(string $event_class): callable
return function (...$args_from_wordpress_hooks) use ($event_class) {
$event = $this->event_factory->make($event_class, $args_from_wordpress_hooks);

if (! array_key_exists(0,$args_from_wordpress_hooks)) {
if (! array_key_exists(0, $args_from_wordpress_hooks)) {
// @codeCoverageIgnoreStart
throw new RuntimeException(
sprintf('Event mapper received invalid arguments from WP for mapped hook [%s].', $event_class),
Expand Down

0 comments on commit 0aa41b3

Please sign in to comment.