Code Duplication    Length = 13-13 lines in 4 locations

src/voku/helper/Hooks.php 4 locations

@@ 369-381 (lines=13) @@
366
367
    reset($this->filters[$tag]);
368
369
    do {
370
      foreach ((array)current($this->filters[$tag]) as $the_) {
371
        if (null !== $the_['function']) {
372
373
          if (null !== $the_['include_path']) {
374
            /** @noinspection PhpIncludeInspection */
375
            include_once $the_['include_path'];
376
          }
377
378
          $args[0] = call_user_func_array($the_['function'], $args);
379
        }
380
      }
381
    } while (next($this->filters[$tag]) !== false);
382
383
    array_pop($this->current_filter);
384
@@ 541-553 (lines=13) @@
538
539
    reset($this->filters[$tag]);
540
541
    do {
542
      foreach ((array)current($this->filters[$tag]) as $the_) {
543
        if (null !== $the_['function']) {
544
545
          if (null !== $the_['include_path']) {
546
            /** @noinspection PhpIncludeInspection */
547
            include_once $the_['include_path'];
548
          }
549
550
          call_user_func_array($the_['function'], $args);
551
        }
552
      }
553
    } while (next($this->filters[$tag]) !== false);
554
555
    array_pop($this->current_filter);
556
@@ 607-619 (lines=13) @@
604
605
    reset($this->filters[$tag]);
606
607
    do {
608
      foreach ((array)current($this->filters[$tag]) as $the_) {
609
        if (null !== $the_['function']) {
610
611
          if (null !== $the_['include_path']) {
612
            /** @noinspection PhpIncludeInspection */
613
            include_once $the_['include_path'];
614
          }
615
616
          call_user_func_array($the_['function'], $args);
617
        }
618
      }
619
    } while (next($this->filters[$tag]) !== false);
620
621
    array_pop($this->current_filter);
622
@@ 701-713 (lines=13) @@
698
  {
699
    reset($this->filters['all']);
700
701
    do {
702
      foreach ((array)current($this->filters['all']) as $the_) {
703
        if (null !== $the_['function']) {
704
705
          if (null !== $the_['include_path']) {
706
            /** @noinspection PhpIncludeInspection */
707
            include_once $the_['include_path'];
708
          }
709
710
          call_user_func_array($the_['function'], $args);
711
        }
712
      }
713
    } while (next($this->filters['all']) !== false);
714
  }
715
716
  /** @noinspection MagicMethodsValidityInspection */