Code Duplication    Length = 5-5 lines in 4 locations

src/voku/helper/Hooks.php 4 locations

@@ 283-287 (lines=5) @@
280
    $args = array();
281
282
    // Do 'all' actions first
283
    if (isset($this->filters['all'])) {
284
      $this->current_filter[] = $tag;
285
      $args = func_get_args();
286
      $this->__call_all_hook($args);
287
    }
288
289
    if (!isset($this->filters[$tag])) {
290
      if (isset($this->filters['all'])) {
@@ 349-353 (lines=5) @@
346
  public function apply_filters_ref_array($tag, $args)
347
  {
348
    // Do 'all' actions first
349
    if (isset($this->filters['all'])) {
350
      $this->current_filter[] = $tag;
351
      $all_args = func_get_args();
352
      $this->__call_all_hook($all_args);
353
    }
354
355
    if (!isset($this->filters[$tag])) {
356
      if (isset($this->filters['all'])) {
@@ 498-502 (lines=5) @@
495
    }
496
497
    // Do 'all' actions first
498
    if (isset($this->filters['all'])) {
499
      $this->current_filter[] = $tag;
500
      $all_args = func_get_args();
501
      $this->__call_all_hook($all_args);
502
    }
503
504
    if (!isset($this->filters[$tag])) {
505
      if (isset($this->filters['all'])) {
@@ 588-592 (lines=5) @@
585
    }
586
587
    // Do 'all' actions first
588
    if (isset($this->filters['all'])) {
589
      $this->current_filter[] = $tag;
590
      $all_args = func_get_args();
591
      $this->__call_all_hook($all_args);
592
    }
593
594
    if (!isset($this->filters[$tag])) {
595
      if (isset($this->filters['all'])) {