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;
@@ 352-358 (lines=7) @@
349
      $this->_call_all_hook($all_args);
350
    }
351
352
    if (!isset($this->filters[$tag])) {
353
      if (isset($this->filters['all'])) {
354
        \array_pop($this->current_filter);
355
      }
356
357
      return $args[0];
358
    }
359
360
    if (!isset($this->filters['all'])) {
361
      $this->current_filter[] = $tag;
@@ 507-513 (lines=7) @@
504
      $this->_call_all_hook($all_args);
505
    }
506
507
    if (!isset($this->filters[$tag])) {
508
      if (isset($this->filters['all'])) {
509
        \array_pop($this->current_filter);
510
      }
511
512
      return false;
513
    }
514
515
    if (!isset($this->filters['all'])) {
516
      $this->current_filter[] = $tag;
@@ 595-601 (lines=7) @@
592
      $this->_call_all_hook($all_args);
593
    }
594
595
    if (!isset($this->filters[$tag])) {
596
      if (isset($this->filters['all'])) {
597
        \array_pop($this->current_filter);
598
      }
599
600
      return false;
601
    }
602
603
    if (!isset($this->filters['all'])) {
604
      $this->current_filter[] = $tag;