Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php')
-rw-r--r--core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php34
1 files changed, 17 insertions, 17 deletions
diff --git a/core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php b/core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php
index 71e1764668..99284508e4 100644
--- a/core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php
+++ b/core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php
@@ -1,22 +1,22 @@
<?php
/**
* Piwik - Open source web analytics
- *
+ *
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- *
+ *
* @category Piwik
* @package Piwik
*/
/**
- * Add a new column to the table which is a percentage based on the value resulting
+ * Add a new column to the table which is a percentage based on the value resulting
* from a callback function with the parameter being another column's value
- *
- * For example in the keywords table, we can create a "nb_visits_percentage" column
+ *
+ * For example in the keywords table, we can create a "nb_visits_percentage" column
* from the "nb_visits" column that will be nb_visits / $totalValueUsedToComputePercentage
* You can also specify the precision of the percentage value to be displayed (defaults to 0, eg "11%")
- *
+ *
* Usage:
* $nbVisits = Piwik_VisitsSummary_API::getInstance()->getVisits($idSite, $period, $date);
* $dataTable->queueFilter('ColumnCallbackAddColumnPercentage', array('nb_visits', 'nb_visits_percentage', $nbVisits, 1));
@@ -26,15 +26,15 @@
*/
class Piwik_DataTable_Filter_ColumnCallbackAddColumnPercentage extends Piwik_DataTable_Filter_ColumnCallbackAddColumnQuotient
{
- /**
- * Formats the given value
- *
- * @param number $value
- * @param number $divisor
- * @return string
- */
- protected function formatValue($value, $divisor)
- {
- return Piwik::getPercentageSafe($value, $divisor, $this->quotientPrecision) . '%';
- }
+ /**
+ * Formats the given value
+ *
+ * @param number $value
+ * @param number $divisor
+ * @return string
+ */
+ protected function formatValue($value, $divisor)
+ {
+ return Piwik::getPercentageSafe($value, $divisor, $this->quotientPrecision) . '%';
+ }
}