Code Duplication    Length = 7-7 lines in 4 locations

src/voku/helper/Hooks.php 4 locations

@@ 286-292 (lines=7) @@
283
      $this->_call_all_hook($args);
284
    }
285
286
    if (!isset($this->filters[$tag])) {
287
      if (isset($this->filters['all'])) {
288
        array_pop($this->current_filter);
289
      }
290
291
      return $value;
292
    }
293
294
    if (!isset($this->filters['all'])) {
295
      $this->current_filter[] = $tag;
@@ 349-355 (lines=7) @@
346
      $this->_call_all_hook($all_args);
347
    }
348
349
    if (!isset($this->filters[$tag])) {
350
      if (isset($this->filters['all'])) {
351
        array_pop($this->current_filter);
352
      }
353
354
      return $args[0];
355
    }
356
357
    if (!isset($this->filters['all'])) {
358
      $this->current_filter[] = $tag;
@@ 499-505 (lines=7) @@
496
      $this->_call_all_hook($all_args);
497
    }
498
499
    if (!isset($this->filters[$tag])) {
500
      if (isset($this->filters['all'])) {
501
        array_pop($this->current_filter);
502
      }
503
504
      return false;
505
    }
506
507
    if (!isset($this->filters['all'])) {
508
      $this->current_filter[] = $tag;
@@ 587-593 (lines=7) @@
584
      $this->_call_all_hook($all_args);
585
    }
586
587
    if (!isset($this->filters[$tag])) {
588
      if (isset($this->filters['all'])) {
589
        array_pop($this->current_filter);
590
      }
591
592
      return false;
593
    }
594
595
    if (!isset($this->filters['all'])) {
596
      $this->current_filter[] = $tag;