Completed
Push — master ( 282378...b58e6e )
by Lars
02:25
created
src/voku/helper/Hooks.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
    *
687 687
    * @param    string $function Used for creating unique id
688 688
    *
689
-   * @return   string|bool             Unique ID for usage as array key or false if
689
+   * @return   string|false             Unique ID for usage as array key or false if
690 690
    *                                   $priority === false and $function is an
691 691
    *                                   object reference, and it does not already have a unique id.
692 692
    * @access   private
@@ -972,7 +972,7 @@  discard block
 block discarded – undo
972 972
    *
973 973
    * @param array $m Regular expression match array
974 974
    *
975
-   * @return mixed False on failure.
975
+   * @return string False on failure.
976 976
    */
977 977
   private function __do_shortcode_tag($m)
978 978
   {
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
       return false;
262 262
     }
263 263
 
264
-    foreach ((array)array_keys($this->filters[$tag]) as $priority) {
264
+    foreach ((array) array_keys($this->filters[$tag]) as $priority) {
265 265
       if (isset($this->filters[$tag][$priority][$idx])) {
266 266
         return $priority;
267 267
       }
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
     array_shift($args);
323 323
 
324 324
     do {
325
-      foreach ((array)current($this->filters[$tag]) as $the_) {
325
+      foreach ((array) current($this->filters[$tag]) as $the_) {
326 326
         if (null !== $the_['function']) {
327 327
 
328 328
           if (null !== $the_['include_path']) {
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     reset($this->filters[$tag]);
385 385
 
386 386
     do {
387
-      foreach ((array)current($this->filters[$tag]) as $the_) {
387
+      foreach ((array) current($this->filters[$tag]) as $the_) {
388 388
         if (null !== $the_['function']) {
389 389
 
390 390
           if (null !== $the_['include_path']) {
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
     $args = array();
536 536
 
537 537
     if (is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0])) {
538
-      $args[] =& $arg[0];
538
+      $args[] = & $arg[0];
539 539
     } else {
540 540
       $args[] = $arg;
541 541
     }
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
     reset($this->filters[$tag]);
556 556
 
557 557
     do {
558
-      foreach ((array)current($this->filters[$tag]) as $the_) {
558
+      foreach ((array) current($this->filters[$tag]) as $the_) {
559 559
         if (null !== $the_['function']) {
560 560
 
561 561
           if (null !== $the_['include_path']) {
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
     reset($this->filters[$tag]);
624 624
 
625 625
     do {
626
-      foreach ((array)current($this->filters[$tag]) as $the_) {
626
+      foreach ((array) current($this->filters[$tag]) as $the_) {
627 627
         if (null !== $the_['function']) {
628 628
 
629 629
           if (null !== $the_['include_path']) {
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
           '',
706 706
       );
707 707
     } else {
708
-      $function = (array)$function;
708
+      $function = (array) $function;
709 709
     }
710 710
 
711 711
     if (is_object($function[0])) {
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
     reset($this->filters['all']);
733 733
 
734 734
     do {
735
-      foreach ((array)current($this->filters['all']) as $the_) {
735
+      foreach ((array) current($this->filters['all']) as $the_) {
736 736
         if (null !== $the_['function']) {
737 737
 
738 738
           if (null !== $the_['include_path']) {
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
    */
1053 1053
   public function shortcode_atts($pairs, $atts, $shortcode = '')
1054 1054
   {
1055
-    $atts = (array)$atts;
1055
+    $atts = (array) $atts;
1056 1056
     $out = array();
1057 1057
     foreach ($pairs as $name => $default) {
1058 1058
       if (array_key_exists($name, $atts)) {
Please login to merge, or discard this patch.