Code Duplication    Length = 5-5 lines in 2 locations

src/voku/helper/Hooks.php 2 locations

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