Code Duplication    Length = 4-4 lines in 3 locations

src/voku/helper/Hooks.php 3 locations

@@ 299-302 (lines=4) @@
296
    }
297
298
    // Sort
299
    if (!isset($this->merged_filters[$tag])) {
300
      ksort($this->filters[$tag]);
301
      $this->merged_filters[$tag] = true;
302
    }
303
304
    reset($this->filters[$tag]);
305
@@ 362-365 (lines=4) @@
359
    }
360
361
    // Sort
362
    if (!isset($this->merged_filters[$tag])) {
363
      ksort($this->filters[$tag]);
364
      $this->merged_filters[$tag] = true;
365
    }
366
367
    reset($this->filters[$tag]);
368
@@ 534-537 (lines=4) @@
531
    }
532
533
    // Sort
534
    if (!isset($this->merged_filters[$tag])) {
535
      ksort($this->filters[$tag]);
536
      $this->merged_filters[$tag] = true;
537
    }
538
539
    reset($this->filters[$tag]);
540