Code Duplication    Length = 5-5 lines in 4 locations

src/voku/helper/Hooks.php 4 locations

@@ 283-287 (lines=5) @@
280
    $args = [];
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'])) {
@@ 346-350 (lines=5) @@
343
  public function apply_filters_ref_array(string $tag, array $args)
344
  {
345
    // Do 'all' actions first
346
    if (isset($this->filters['all'])) {
347
      $this->current_filter[] = $tag;
348
      $all_args = \func_get_args();
349
      $this->_call_all_hook($all_args);
350
    }
351
352
    if (!isset($this->filters[$tag])) {
353
      if (isset($this->filters['all'])) {
@@ 501-505 (lines=5) @@
498
    }
499
500
    // Do 'all' actions first
501
    if (isset($this->filters['all'])) {
502
      $this->current_filter[] = $tag;
503
      $all_args = \func_get_args();
504
      $this->_call_all_hook($all_args);
505
    }
506
507
    if (!isset($this->filters[$tag])) {
508
      if (isset($this->filters['all'])) {
@@ 589-593 (lines=5) @@
586
    }
587
588
    // Do 'all' actions first
589
    if (isset($this->filters['all'])) {
590
      $this->current_filter[] = $tag;
591
      $all_args = \func_get_args();
592
      $this->_call_all_hook($all_args);
593
    }
594
595
    if (!isset($this->filters[$tag])) {
596
      if (isset($this->filters['all'])) {