Code Duplication    Length = 5-5 lines in 2 locations

src/voku/helper/Hooks.php 2 locations

@@ 486-490 (lines=5) @@
483
      $this->actions = array();
484
    }
485
486
    if (!isset($this->actions[$tag])) {
487
      $this->actions[$tag] = 1;
488
    } else {
489
      ++$this->actions[$tag];
490
    }
491
492
    // Do 'all' actions first
493
    if (isset($this->filters['all'])) {
@@ 574-578 (lines=5) @@
571
      $this->actions = array();
572
    }
573
574
    if (!isset($this->actions[$tag])) {
575
      $this->actions[$tag] = 1;
576
    } else {
577
      ++$this->actions[$tag];
578
    }
579
580
    // Do 'all' actions first
581
    if (isset($this->filters['all'])) {