Code Duplication    Length = 13-13 lines in 4 locations

src/voku/helper/Hooks.php 4 locations

@@ 375-387 (lines=13) @@
372
373
    reset($this->filters[$tag]);
374
375
    do {
376
      foreach ((array)current($this->filters[$tag]) as $the_) {
377
        if (null !== $the_['function']) {
378
379
          if (null !== $the_['include_path']) {
380
            /** @noinspection PhpIncludeInspection */
381
            include_once $the_['include_path'];
382
          }
383
384
          $args[0] = call_user_func_array($the_['function'], $args);
385
        }
386
      }
387
    } while (next($this->filters[$tag]) !== false);
388
389
    array_pop($this->current_filter);
390
@@ 546-558 (lines=13) @@
543
544
    reset($this->filters[$tag]);
545
546
    do {
547
      foreach ((array)current($this->filters[$tag]) as $the_) {
548
        if (null !== $the_['function']) {
549
550
          if (null !== $the_['include_path']) {
551
            /** @noinspection PhpIncludeInspection */
552
            include_once $the_['include_path'];
553
          }
554
555
          call_user_func_array($the_['function'], $args);
556
        }
557
      }
558
    } while (next($this->filters[$tag]) !== false);
559
560
    array_pop($this->current_filter);
561
@@ 614-626 (lines=13) @@
611
612
    reset($this->filters[$tag]);
613
614
    do {
615
      foreach ((array)current($this->filters[$tag]) as $the_) {
616
        if (null !== $the_['function']) {
617
618
          if (null !== $the_['include_path']) {
619
            /** @noinspection PhpIncludeInspection */
620
            include_once $the_['include_path'];
621
          }
622
623
          call_user_func_array($the_['function'], $args);
624
        }
625
      }
626
    } while (next($this->filters[$tag]) !== false);
627
628
    array_pop($this->current_filter);
629
@@ 719-731 (lines=13) @@
716
  {
717
    reset($this->filters['all']);
718
719
    do {
720
      foreach ((array)current($this->filters['all']) as $the_) {
721
        if (null !== $the_['function']) {
722
723
          if (null !== $the_['include_path']) {
724
            /** @noinspection PhpIncludeInspection */
725
            include_once $the_['include_path'];
726
          }
727
728
          call_user_func_array($the_['function'], $args);
729
        }
730
      }
731
    } while (next($this->filters['all']) !== false);
732
  }
733
734
  /**