Code Duplication    Length = 4-4 lines in 3 locations

src/voku/helper/Hooks.php 3 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
@@ 368-371 (lines=4) @@
365
    }
366
367
    // Sort
368
    if (!isset($this->merged_filters[$tag])) {
369
      ksort($this->filters[$tag]);
370
      $this->merged_filters[$tag] = true;
371
    }
372
373
    reset($this->filters[$tag]);
374
@@ 539-542 (lines=4) @@
536
    }
537
538
    // Sort
539
    if (!isset($this->merged_filters[$tag])) {
540
      ksort($this->filters[$tag]);
541
      $this->merged_filters[$tag] = true;
542
    }
543
544
    reset($this->filters[$tag]);
545