Code Duplication    Length = 4-4 lines in 4 locations

src/voku/helper/Hooks.php 4 locations

@@ 302-305 (lines=4) @@
299
    }
300
301
    // Sort
302
    if (!isset($this->merged_filters[$tag])) {
303
      \ksort($this->filters[$tag]);
304
      $this->merged_filters[$tag] = true;
305
    }
306
307
    \reset($this->filters[$tag]);
308
@@ 365-368 (lines=4) @@
362
    }
363
364
    // Sort
365
    if (!isset($this->merged_filters[$tag])) {
366
      \ksort($this->filters[$tag]);
367
      $this->merged_filters[$tag] = true;
368
    }
369
370
    \reset($this->filters[$tag]);
371
@@ 542-545 (lines=4) @@
539
    }
540
541
    // Sort
542
    if (!isset($this->merged_filters[$tag])) {
543
      \ksort($this->filters[$tag]);
544
      $this->merged_filters[$tag] = true;
545
    }
546
547
    \reset($this->filters[$tag]);
548
@@ 608-611 (lines=4) @@
605
    }
606
607
    // Sort
608
    if (!isset($this->merged_filters[$tag])) {
609
      \ksort($this->filters[$tag]);
610
      $this->merged_filters[$tag] = true;
611
    }
612
613
    \reset($this->filters[$tag]);
614