Completed
Push — master ( 80ba5d...c904be )
by Lars
973:03 queued 971:25
created
src/voku/helper/Hooks.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     \array_shift($args);
314 314
 
315 315
     do {
316
-      foreach ((array)\current($this->filters[$tag]) as $the_) {
316
+      foreach ((array) \current($this->filters[$tag]) as $the_) {
317 317
         if (null !== $the_['function']) {
318 318
 
319 319
           if (null !== $the_['include_path']) {
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
     \reset($this->filters[$tag]);
371 371
 
372 372
     do {
373
-      foreach ((array)\current($this->filters[$tag]) as $the_) {
373
+      foreach ((array) \current($this->filters[$tag]) as $the_) {
374 374
         if (null !== $the_['function']) {
375 375
 
376 376
           if (null !== $the_['include_path']) {
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
         &&
528 528
         1 == \count($arg)
529 529
     ) {
530
-      $args[] =& $arg[0];
530
+      $args[] = & $arg[0];
531 531
     } else {
532 532
       $args[] = $arg;
533 533
     }
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
     \reset($this->filters[$tag]);
548 548
 
549 549
     do {
550
-      foreach ((array)\current($this->filters[$tag]) as $the_) {
550
+      foreach ((array) \current($this->filters[$tag]) as $the_) {
551 551
         if (null !== $the_['function']) {
552 552
 
553 553
           if (null !== $the_['include_path']) {
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
     \reset($this->filters[$tag]);
614 614
 
615 615
     do {
616
-      foreach ((array)\current($this->filters[$tag]) as $the_) {
616
+      foreach ((array) \current($this->filters[$tag]) as $the_) {
617 617
         if (null !== $the_['function']) {
618 618
 
619 619
           if (null !== $the_['include_path']) {
@@ -681,17 +681,17 @@  discard block
 block discarded – undo
681 681
           '',
682 682
       ];
683 683
     } else {
684
-      $function = (array)$function;
684
+      $function = (array) $function;
685 685
     }
686 686
 
687 687
     if (\is_object($function[0])) {
688 688
       // Object Class Calling
689
-      return \spl_object_hash($function[0]) . $function[1];
689
+      return \spl_object_hash($function[0]).$function[1];
690 690
     }
691 691
 
692 692
     if (\is_string($function[0])) {
693 693
       // Static Calling
694
-      return $function[0] . $function[1];
694
+      return $function[0].$function[1];
695 695
     }
696 696
 
697 697
     return false;
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
     \reset($this->filters['all']);
708 708
 
709 709
     do {
710
-      foreach ((array)\current($this->filters['all']) as $the_) {
710
+      foreach ((array) \current($this->filters['all']) as $the_) {
711 711
         if (null !== $the_['function']) {
712 712
 
713 713
           if (null !== $the_['include_path']) {
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
     }
858 858
 
859 859
     if ($this->shortcode_exists($tag)) {
860
-      \preg_match_all('/' . $this->get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER);
860
+      \preg_match_all('/'.$this->get_shortcode_regex().'/s', $content, $matches, PREG_SET_ORDER);
861 861
       if (empty($matches)) {
862 862
         return false;
863 863
       }
@@ -989,11 +989,11 @@  discard block
 block discarded – undo
989 989
 
990 990
     // enclosing tag - extra parameter
991 991
     if (isset($m[5])) {
992
-      return $m[1] . \call_user_func(self::$shortcode_tags[$tag], $attr, $m[5], $tag) . $m[6];
992
+      return $m[1].\call_user_func(self::$shortcode_tags[$tag], $attr, $m[5], $tag).$m[6];
993 993
     }
994 994
 
995 995
     // self-closing tag
996
-    return $m[1] . \call_user_func(self::$shortcode_tags[$tag], $attr, null, $tag) . $m[6];
996
+    return $m[1].\call_user_func(self::$shortcode_tags[$tag], $attr, null, $tag).$m[6];
997 997
   }
998 998
 
999 999
   /**
@@ -1059,7 +1059,7 @@  discard block
 block discarded – undo
1059 1059
    */
1060 1060
   public function shortcode_atts($pairs, $atts, $shortcode = ''): array
1061 1061
   {
1062
-    $atts = (array)$atts;
1062
+    $atts = (array) $atts;
1063 1063
     $out = [];
1064 1064
     foreach ($pairs as $name => $default) {
1065 1065
       if (array_key_exists($name, $atts)) {
@@ -1134,7 +1134,7 @@  discard block
 block discarded – undo
1134 1134
       return substr($m[0], 1, -1);
1135 1135
     }
1136 1136
 
1137
-    return $m[1] . $m[6];
1137
+    return $m[1].$m[6];
1138 1138
   }
1139 1139
 
1140 1140
 }
Please login to merge, or discard this patch.