diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-03-28 03:42:39 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-03-28 03:42:40 +0400 |
commit | ae4b03163792f0b6e933933e5d37df87dc3fd566 (patch) | |
tree | d1d7510a9728f587d3d63ebd03e4ecf3d904838b /core/DataTable/Filter/MetadataCallbackReplace.php | |
parent | 158c2150f5f2e13ece459b8d131244c11b763997 (diff) |
Mass conversion of all files to the newly agreed coding standard: PSR 1/2
Converting Piwik core source files, PHP, JS, TPL, CSS
More info: http://piwik.org/participate/coding-standards/
Diffstat (limited to 'core/DataTable/Filter/MetadataCallbackReplace.php')
-rw-r--r-- | core/DataTable/Filter/MetadataCallbackReplace.php | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/core/DataTable/Filter/MetadataCallbackReplace.php b/core/DataTable/Filter/MetadataCallbackReplace.php index 9fc49f0403..4e6e5990de 100644 --- a/core/DataTable/Filter/MetadataCallbackReplace.php +++ b/core/DataTable/Filter/MetadataCallbackReplace.php @@ -1,53 +1,53 @@ <?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 */ /** - * Replace a metadata value with a new value resulting + * Replace a metadata value with a new value resulting * from the function called with the metadata's value - * + * * @package Piwik * @subpackage Piwik_DataTable */ class Piwik_DataTable_Filter_MetadataCallbackReplace extends Piwik_DataTable_Filter_ColumnCallbackReplace { - /** - * @param Piwik_DataTable $table - * @param array|string $metadataToFilter - * @param callback $functionToApply - * @param null|array $functionParameters - * @param array $extraColumnParameters - */ - public function __construct( $table, $metadataToFilter, $functionToApply, $functionParameters = null, - $extraColumnParameters = array() ) - { - parent::__construct($table, $metadataToFilter, $functionToApply, $functionParameters, $extraColumnParameters); - } + /** + * @param Piwik_DataTable $table + * @param array|string $metadataToFilter + * @param callback $functionToApply + * @param null|array $functionParameters + * @param array $extraColumnParameters + */ + public function __construct($table, $metadataToFilter, $functionToApply, $functionParameters = null, + $extraColumnParameters = array()) + { + parent::__construct($table, $metadataToFilter, $functionToApply, $functionParameters, $extraColumnParameters); + } - /** - * @param Piwik_DataTable_Row $row - * @param string $metadataToFilter - * @param mixed $newValue - */ - protected function setElementToReplace($row, $metadataToFilter, $newValue) - { - $row->setMetadata($metadataToFilter, $newValue); - } + /** + * @param Piwik_DataTable_Row $row + * @param string $metadataToFilter + * @param mixed $newValue + */ + protected function setElementToReplace($row, $metadataToFilter, $newValue) + { + $row->setMetadata($metadataToFilter, $newValue); + } - /** - * @param Piwik_DataTable_Row $row - * @param string $metadataToFilter - * @return array|false|mixed - */ - protected function getElementToReplace($row, $metadataToFilter) - { - return $row->getMetadata($metadataToFilter); - } + /** + * @param Piwik_DataTable_Row $row + * @param string $metadataToFilter + * @return array|false|mixed + */ + protected function getElementToReplace($row, $metadataToFilter) + { + return $row->getMetadata($metadataToFilter); + } } |