Skip to content

Commit

Permalink
Merge pull request #10 from voku/analysis-87LBEX
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
voku committed Aug 19, 2015
2 parents 22e35f7 + 038e459 commit 8c8a4ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/voku/helper/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public function apply_filters($tag, $value)
if (!is_null($the_['function'])) {

if (!is_null($the_['include_path'])) {
include_once($the_['include_path']);
include_once $the_['include_path'];
}

$args[0] = $value;
Expand Down Expand Up @@ -408,7 +408,7 @@ public function apply_filters_ref_array($tag, $args)
if (!is_null($the_['function'])) {

if (!is_null($the_['include_path'])) {
include_once($the_['include_path']);
include_once $the_['include_path'];
}

$args[0] = call_user_func_array($the_['function'], $args);
Expand Down Expand Up @@ -579,7 +579,7 @@ public function do_action($tag, $arg = '')
if (!is_null($the_['function'])) {

if (!is_null($the_['include_path'])) {
include_once($the_['include_path']);
include_once $the_['include_path'];
}

call_user_func_array($the_['function'], $args);
Expand Down Expand Up @@ -647,7 +647,7 @@ public function do_action_ref_array($tag, $args)
if (!is_null($the_['function'])) {

if (!is_null($the_['include_path'])) {
include_once($the_['include_path']);
include_once $the_['include_path'];
}

call_user_func_array($the_['function'], $args);
Expand Down Expand Up @@ -731,7 +731,7 @@ private function __filter_build_unique_id($function)
if (is_object($function[0])) {
// Object Class Calling
return spl_object_hash($function[0]) . $function[1];
} else if (is_string($function[0])) {
} elseif (is_string($function[0])) {
// Static Calling
return $function[0] . $function[1];
}
Expand All @@ -756,7 +756,7 @@ public function __call_all_hook($args)
if (!is_null($the_['function'])) {

if (!is_null($the_['include_path'])) {
include_once($the_['include_path']);
include_once $the_['include_path'];
}

call_user_func_array($the_['function'], $args);
Expand Down Expand Up @@ -1028,7 +1028,7 @@ public function shortcode_parse_atts($text)
{
$atts = array();
$pattern = '/(\w+)\s*=\s*"([^"]*)"(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/';
$text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text);
$text = preg_replace("/[\x{00a0}\x{200b}]+/u", ' ', $text);
if (preg_match_all($pattern, $text, $match, PREG_SET_ORDER)) {
foreach ($match as $m) {
if (!empty($m[1])) {
Expand Down
2 changes: 1 addition & 1 deletion tests/HooksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function testFilter()
*
* @return string
*/
function parse_youtube($attrs)
public function parse_youtube($attrs)
{
$hooks = Hooks::getInstance();

Expand Down

0 comments on commit 8c8a4ac

Please sign in to comment.