Code Duplication    Length = 5-5 lines in 2 locations

src/voku/helper/Hooks.php 2 locations

@@ 494-498 (lines=5) @@
491
      $this->actions = [];
492
    }
493
494
    if (isset($this->actions[$tag])) {
495
      ++$this->actions[$tag];
496
    } else {
497
      $this->actions[$tag] = 1;
498
    }
499
500
    // Do 'all' actions first
501
    if (isset($this->filters['all'])) {
@@ 582-586 (lines=5) @@
579
      $this->actions = [];
580
    }
581
582
    if (isset($this->actions[$tag])) {
583
      ++$this->actions[$tag];
584
    } else {
585
      $this->actions[$tag] = 1;
586
    }
587
588
    // Do 'all' actions first
589
    if (isset($this->filters['all'])) {