@@ -686,7 +686,7 @@ discard block |
||
| 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 |
||
| 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 | { |
@@ -261,7 +261,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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,15 +705,15 @@ discard block |
||
| 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])) { |
| 712 | 712 | // Object Class Calling |
| 713 | - return spl_object_hash($function[0]) . $function[1]; |
|
| 713 | + return spl_object_hash($function[0]).$function[1]; |
|
| 714 | 714 | } elseif (is_string($function[0])) { |
| 715 | 715 | // Static Calling |
| 716 | - return $function[0] . $function[1]; |
|
| 716 | + return $function[0].$function[1]; |
|
| 717 | 717 | } |
| 718 | 718 | |
| 719 | 719 | return false; |
@@ -732,7 +732,7 @@ discard block |
||
| 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']) { |
@@ -857,7 +857,7 @@ discard block |
||
| 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 | } |
@@ -986,10 +986,10 @@ discard block |
||
| 986 | 986 | |
| 987 | 987 | if (isset($m[5])) { |
| 988 | 988 | // enclosing tag - extra parameter |
| 989 | - return $m[1] . call_user_func(self::$shortcode_tags[$tag], $attr, $m[5], $tag) . $m[6]; |
|
| 989 | + return $m[1].call_user_func(self::$shortcode_tags[$tag], $attr, $m[5], $tag).$m[6]; |
|
| 990 | 990 | } else { |
| 991 | 991 | // self-closing tag |
| 992 | - return $m[1] . call_user_func(self::$shortcode_tags[$tag], $attr, null, $tag) . $m[6]; |
|
| 992 | + return $m[1].call_user_func(self::$shortcode_tags[$tag], $attr, null, $tag).$m[6]; |
|
| 993 | 993 | } |
| 994 | 994 | } |
| 995 | 995 | |
@@ -1052,7 +1052,7 @@ discard block |
||
| 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)) { |
@@ -1129,7 +1129,7 @@ discard block |
||
| 1129 | 1129 | return substr($m[0], 1, -1); |
| 1130 | 1130 | } |
| 1131 | 1131 | |
| 1132 | - return $m[1] . $m[6]; |
|
| 1132 | + return $m[1].$m[6]; |
|
| 1133 | 1133 | } |
| 1134 | 1134 | |
| 1135 | 1135 | } |