Code Duplication    Length = 13-13 lines in 4 locations

src/voku/helper/Hooks.php 4 locations

@@ 372-384 (lines=13) @@
369
370
    \reset($this->filters[$tag]);
371
372
    do {
373
      foreach ((array)\current($this->filters[$tag]) as $the_) {
374
        if (null !== $the_['function']) {
375
376
          if (null !== $the_['include_path']) {
377
            /** @noinspection PhpIncludeInspection */
378
            include_once $the_['include_path'];
379
          }
380
381
          $args[0] = \call_user_func_array($the_['function'], $args);
382
        }
383
      }
384
    } while (\next($this->filters[$tag]) !== false);
385
386
    \array_pop($this->current_filter);
387
@@ 549-561 (lines=13) @@
546
547
    \reset($this->filters[$tag]);
548
549
    do {
550
      foreach ((array)\current($this->filters[$tag]) as $the_) {
551
        if (null !== $the_['function']) {
552
553
          if (null !== $the_['include_path']) {
554
            /** @noinspection PhpIncludeInspection */
555
            include_once $the_['include_path'];
556
          }
557
558
          \call_user_func_array($the_['function'], $args);
559
        }
560
      }
561
    } while (\next($this->filters[$tag]) !== false);
562
563
    \array_pop($this->current_filter);
564
@@ 615-627 (lines=13) @@
612
613
    \reset($this->filters[$tag]);
614
615
    do {
616
      foreach ((array)\current($this->filters[$tag]) as $the_) {
617
        if (null !== $the_['function']) {
618
619
          if (null !== $the_['include_path']) {
620
            /** @noinspection PhpIncludeInspection */
621
            include_once $the_['include_path'];
622
          }
623
624
          \call_user_func_array($the_['function'], $args);
625
        }
626
      }
627
    } while (\next($this->filters[$tag]) !== false);
628
629
    \array_pop($this->current_filter);
630
@@ 709-721 (lines=13) @@
706
  {
707
    \reset($this->filters['all']);
708
709
    do {
710
      foreach ((array)\current($this->filters['all']) as $the_) {
711
        if (null !== $the_['function']) {
712
713
          if (null !== $the_['include_path']) {
714
            /** @noinspection PhpIncludeInspection */
715
            include_once $the_['include_path'];
716
          }
717
718
          \call_user_func_array($the_['function'], $args);
719
        }
720
      }
721
    } while (\next($this->filters['all']) !== false);
722
  }
723
724
  /** @noinspection MagicMethodsValidityInspection */