Code Duplication    Length = 7-7 lines in 4 locations

src/voku/helper/Hooks.php 4 locations

@@ 289-295 (lines=7) @@
286
      $this->__call_all_hook($args);
287
    }
288
289
    if (!isset($this->filters[$tag])) {
290
      if (isset($this->filters['all'])) {
291
        array_pop($this->current_filter);
292
      }
293
294
      return $value;
295
    }
296
297
    if (!isset($this->filters['all'])) {
298
      $this->current_filter[] = $tag;
@@ 355-361 (lines=7) @@
352
      $this->__call_all_hook($all_args);
353
    }
354
355
    if (!isset($this->filters[$tag])) {
356
      if (isset($this->filters['all'])) {
357
        array_pop($this->current_filter);
358
      }
359
360
      return $args[0];
361
    }
362
363
    if (!isset($this->filters['all'])) {
364
      $this->current_filter[] = $tag;
@@ 504-510 (lines=7) @@
501
      $this->__call_all_hook($all_args);
502
    }
503
504
    if (!isset($this->filters[$tag])) {
505
      if (isset($this->filters['all'])) {
506
        array_pop($this->current_filter);
507
      }
508
509
      return false;
510
    }
511
512
    if (!isset($this->filters['all'])) {
513
      $this->current_filter[] = $tag;
@@ 594-600 (lines=7) @@
591
      $this->__call_all_hook($all_args);
592
    }
593
594
    if (!isset($this->filters[$tag])) {
595
      if (isset($this->filters['all'])) {
596
        array_pop($this->current_filter);
597
      }
598
599
      return false;
600
    }
601
602
    if (!isset($this->filters['all'])) {
603
      $this->current_filter[] = $tag;