diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-30 09:37:32 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-30 09:37:32 +0400 |
commit | a00487b0b841c4b15463b591c7f62176c4b84d15 (patch) | |
tree | 6eb893ce356a4740e044c9cdadaf84ffb2095b9d /plugins/Live/Visitor.php | |
parent | 0edef3332289a7cbe54b58084b967907d1086d29 (diff) |
coding style fixes, some PHPStorm inspection fixes, improved readability of code, few refactorings, all as part of our code cleanup strategy
Diffstat (limited to 'plugins/Live/Visitor.php')
-rw-r--r-- | plugins/Live/Visitor.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php index ae01ed4e18..55fd3fed83 100644 --- a/plugins/Live/Visitor.php +++ b/plugins/Live/Visitor.php @@ -309,7 +309,7 @@ class Visitor implements VisitorInterface } elseif ($actionDetail['type'] == Action::TYPE_EVENT_CATEGORY) { // Handle Event - if(strlen($actionDetail['pageTitle']) > 0) { + if (strlen($actionDetail['pageTitle']) > 0) { $actionDetail['eventName'] = $actionDetail['pageTitle']; } @@ -322,8 +322,8 @@ class Visitor implements VisitorInterface } // Event value / Generation time - if($actionDetail['type'] == Action::TYPE_EVENT_CATEGORY) { - if(strlen($actionDetail['custom_float']) > 0) { + if ($actionDetail['type'] == Action::TYPE_EVENT_CATEGORY) { + if (strlen($actionDetail['custom_float']) > 0) { $actionDetail['eventValue'] = round($actionDetail['custom_float'], self::EVENT_VALUE_PRECISION); } } elseif ($actionDetail['custom_float'] > 0) { |