Code Duplication    Length = 5-5 lines in 4 locations

src/voku/helper/Hooks.php 4 locations

@@ 280-284 (lines=5) @@
277
    $args = array();
278
279
    // Do 'all' actions first
280
    if (isset($this->filters['all'])) {
281
      $this->current_filter[] = $tag;
282
      $args = func_get_args();
283
      $this->_call_all_hook($args);
284
    }
285
286
    if (!isset($this->filters[$tag])) {
287
      if (isset($this->filters['all'])) {
@@ 343-347 (lines=5) @@
340
  public function apply_filters_ref_array($tag, $args)
341
  {
342
    // Do 'all' actions first
343
    if (isset($this->filters['all'])) {
344
      $this->current_filter[] = $tag;
345
      $all_args = func_get_args();
346
      $this->_call_all_hook($all_args);
347
    }
348
349
    if (!isset($this->filters[$tag])) {
350
      if (isset($this->filters['all'])) {
@@ 493-497 (lines=5) @@
490
    }
491
492
    // Do 'all' actions first
493
    if (isset($this->filters['all'])) {
494
      $this->current_filter[] = $tag;
495
      $all_args = func_get_args();
496
      $this->_call_all_hook($all_args);
497
    }
498
499
    if (!isset($this->filters[$tag])) {
500
      if (isset($this->filters['all'])) {
@@ 581-585 (lines=5) @@
578
    }
579
580
    // Do 'all' actions first
581
    if (isset($this->filters['all'])) {
582
      $this->current_filter[] = $tag;
583
      $all_args = func_get_args();
584
      $this->_call_all_hook($all_args);
585
    }
586
587
    if (!isset($this->filters[$tag])) {
588
      if (isset($this->filters['all'])) {