diff options
Diffstat (limited to 'plugins/API/API.php')
-rw-r--r-- | plugins/API/API.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index 4fb8ee1ec0..e571d71ab0 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -156,7 +156,9 @@ class API 'segment' => 'visitorType', 'acceptedValues' => 'new, returning, returningCustomer' . ". " . Piwik_Translate('General_VisitTypeExample', '"&segment=visitorType==returning,visitorType==returningCustomer"'), 'sqlSegment' => 'log_visit.visitor_returning', - 'sqlFilter' => function($type) { return $type == "new" ? 0 : ($type == "returning" ? 1 : 2); } + 'sqlFilter' => function ($type) { + return $type == "new" ? 0 : ($type == "returning" ? 1 : 2); + } ); $segments[] = array( 'type' => 'metric', |