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 'plugins/VisitTime/VisitTime.php')
-rw-r--r--plugins/VisitTime/VisitTime.php60
1 files changed, 30 insertions, 30 deletions
diff --git a/plugins/VisitTime/VisitTime.php b/plugins/VisitTime/VisitTime.php
index 4006c197d3..484e3f0b2b 100644
--- a/plugins/VisitTime/VisitTime.php
+++ b/plugins/VisitTime/VisitTime.php
@@ -1,18 +1,18 @@
-<?php
-/**
- * Piwik - Open source web analytics
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
- * @version $Id$
- *
- *
- * @package Piwik_VisitTime
- */
-
-/**
- *
- * @package Piwik_VisitTime
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ *
+ *
+ * @package Piwik_VisitTime
+ */
+
+/**
+ *
+ * @package Piwik_VisitTime
*/
class Piwik_VisitTime extends Piwik_Plugin
{
@@ -57,8 +57,8 @@ class Piwik_VisitTime extends Piwik_Plugin
public function archiveDay( $notification )
{
$archiveProcessing = $notification->getNotificationObject();
-
- $this->archiveProcessing = $archiveProcessing;
+
+ $this->archiveProcessing = $archiveProcessing;
$recordName = 'VisitTime_localTime';
$labelSQL = "HOUR(visitor_localtime)";
@@ -69,22 +69,22 @@ class Piwik_VisitTime extends Piwik_Plugin
$recordName = 'VisitTime_serverTime';
$labelSQL = "HOUR(visit_first_action_time)";
- $tableServerTime = $archiveProcessing->getDataTableInterestForLabel($labelSQL);
+ $tableServerTime = $archiveProcessing->getDataTableInterestForLabel($labelSQL);
$this->makeSureAllHoursAreSet($tableServerTime);
$record = new Piwik_ArchiveProcessing_Record_BlobArray($recordName, $tableServerTime->getSerialized());
// echo $tableServerTime;
- }
-
- private function makeSureAllHoursAreSet($table)
- {
- for($i=0;$i<=23;$i++)
- {
- if($table->getRowFromLabel($i) === false)
- {
- $row = $this->archiveProcessing->getNewInterestRowLabeled($i);
- $table->addRow( $row );
- }
- }
+ }
+
+ private function makeSureAllHoursAreSet($table)
+ {
+ for($i=0;$i<=23;$i++)
+ {
+ if($table->getRowFromLabel($i) === false)
+ {
+ $row = $this->archiveProcessing->getNewInterestRowLabeled($i);
+ $table->addRow( $row );
+ }
+ }
}
}