diff options
author | Christian Raue <christian.raue@gmail.com> | 2014-07-23 22:27:56 +0400 |
---|---|---|
committer | Christian Raue <christian.raue@gmail.com> | 2014-07-23 22:27:56 +0400 |
commit | d9adcfe6169c6c10059a670f2ed984908eb4e105 (patch) | |
tree | 25cfca25851214c1b744a07e67e9c120adfd7513 /plugins/API | |
parent | 2788e1dad22533f3e0dbddbdd16c51251c4e130a (diff) |
removed lots of trailing whitespace
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/API.php | 12 | ||||
-rw-r--r-- | plugins/API/ProcessedReport.php | 24 |
2 files changed, 18 insertions, 18 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index b72ab0ee86..9ce0742a25 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -103,11 +103,11 @@ class API extends \Piwik\Plugin\API /** * Triggered when gathering all available segment dimensions. - * + * * This event can be used to make new segment dimensions available. - * + * * **Example** - * + * * public function getSegmentsMetadata(&$segments, $idSites) * { * $segments[] = array( @@ -121,11 +121,11 @@ class API extends \Piwik\Plugin\API * 'permission' => $isAuthenticatedWithViewAccess, * ); * } - * + * * @param array &$dimensions The list of available segment dimensions. Append to this list to add * new segments. Each element in this list must contain the * following information: - * + * * - **type**: Either `'metric'` or `'dimension'`. `'metric'` means * the value is a numeric and `'dimension'` means it is * a string. Also, `'metric'` values will be displayed @@ -361,7 +361,7 @@ class API extends \Piwik\Plugin\API $className = Request::getClassNameAPI($plugin); $params['columns'] = implode(',', $columns); $dataTable = Proxy::getInstance()->call($className, 'get', $params); - + // make sure the table has all columns $array = ($dataTable instanceof DataTable\Map ? $dataTable->getDataTables() : array($dataTable)); foreach ($array as $table) { diff --git a/plugins/API/ProcessedReport.php b/plugins/API/ProcessedReport.php index ef1fcf6182..b496004bab 100644 --- a/plugins/API/ProcessedReport.php +++ b/plugins/API/ProcessedReport.php @@ -168,25 +168,25 @@ class ProcessedReport /** * Triggered when gathering metadata for all available reports. - * + * * Plugins that define new reports should use this event to make them available in via * the metadata API. By doing so, the report will become available in scheduled reports * as well as in the Piwik Mobile App. In fact, any third party app that uses the metadata * API will automatically have access to the new report. - * + * * @param string &$availableReports The list of available reports. Append to this list * to make a report available. - * + * * Every element of this array must contain the following * information: - * + * * - **category**: A translated string describing the report's category. * - **name**: The translated display title of the report. * - **module**: The plugin of the report. * - **action**: The API method that serves the report. - * + * * The following information is optional: - * + * * - **dimension**: The report's [dimension](/guides/all-about-analytics-data#dimensions) if any. * - **metrics**: An array mapping metric names with their display names. * - **metricsDocumentation**: An array mapping metric names with their @@ -197,18 +197,18 @@ class ProcessedReport * metrics. * - **order**: The order of the report in the list of reports * with the same category. - * + * * @param array $parameters Contains the values of the sites and period we are * getting reports for. Some reports depend on this data. * For example, Goals reports depend on the site IDs being * requested. Contains the following information: - * + * * - **idSites**: The array of site IDs we are getting reports for. * - **period**: The period type, eg, `'day'`, `'week'`, `'month'`, * `'year'`, `'range'`. * - **date**: A string date within the period or a date range, eg, * `'2013-01-01'` or `'2012-01-01,2013-01-01'`. - * + * * TODO: put dimensions section in all about analytics data * @deprecated since 2.5.0 Use Report Classes instead. * @ignore @@ -238,18 +238,18 @@ class ProcessedReport /** * Triggered after all available reports are collected. - * + * * This event can be used to modify the report metadata of reports in other plugins. You * could, for example, add custom metrics to every report or remove reports from the list * of available reports. - * + * * @param array &$availableReports List of all report metadata. Read the {@hook API.getReportMetadata} * docs to see what this array contains. * @param array $parameters Contains the values of the sites and period we are * getting reports for. Some report depend on this data. * For example, Goals reports depend on the site IDs being * request. Contains the following information: - * + * * - **idSites**: The array of site IDs we are getting reports for. * - **period**: The period type, eg, `'day'`, `'week'`, `'month'`, * `'year'`, `'range'`. |