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 'modules/Period.php')
-rw-r--r--modules/Period.php92
1 files changed, 46 insertions, 46 deletions
diff --git a/modules/Period.php b/modules/Period.php
index 90d94bb707..f967aa0ff1 100644
--- a/modules/Period.php
+++ b/modules/Period.php
@@ -1,14 +1,14 @@
-<?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_Helper
- */
-
+<?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_Helper
+ */
+
/**
* Creating a new Piwik_Period subclass:
*
@@ -19,8 +19,8 @@
* }
* that checks whether the subperiods have already been computed.
* This is for performance improvements, computing the subperiods is done a per demand basis.
- *
- *
+ *
+ *
* @package Piwik_Helper
*/
abstract class Piwik_Period
@@ -60,11 +60,11 @@ abstract class Piwik_Period
break;
}
}
-
- /**
- * Returns the first day of the period
- *
- * @return Piwik_Date First day of the period
+
+ /**
+ * Returns the first day of the period
+ *
+ * @return Piwik_Date First day of the period
*/
public function getDateStart()
{
@@ -85,11 +85,11 @@ abstract class Piwik_Period
}
return $currentPeriod->getDate();
}
-
- /**
- * Returns the last day of the period ; can be a date in the future
- *
- * @return Piwik_Date Last day of the period
+
+ /**
+ * Returns the last day of the period ; can be a date in the future
+ *
+ * @return Piwik_Date Last day of the period
*/
public function getDateEnd()
{
@@ -114,7 +114,7 @@ abstract class Piwik_Period
public function getId()
{
return Piwik::$idPeriods[$this->getLabel()];
- }
+ }
public function getLabel()
{
@@ -124,11 +124,11 @@ abstract class Piwik_Period
/**
*
* @return Piwik_Date
- */
- protected function getDate()
- {
- return $this->date;
- }
+ */
+ protected function getDate()
+ {
+ return $this->date;
+ }
protected function checkInputDate($date)
{
@@ -380,10 +380,10 @@ class Piwik_Period_Range extends Piwik_Period
return $range;
}
}
-
-/**
- *
- * @package Piwik_Period
+
+/**
+ *
+ * @package Piwik_Period
*/
class Piwik_Period_Day extends Piwik_Period
{
@@ -425,10 +425,10 @@ class Piwik_Period_Day extends Piwik_Period
}
-
-/**
- *
- * @package Piwik_Period
+
+/**
+ *
+ * @package Piwik_Period
*/
class Piwik_Period_Week extends Piwik_Period
{
@@ -468,10 +468,10 @@ class Piwik_Period_Week extends Piwik_Period
}
}
-
-/**
- *
- * @package Piwik_Period
+
+/**
+ *
+ * @package Piwik_Period
*/
class Piwik_Period_Month extends Piwik_Period
{
@@ -518,11 +518,11 @@ class Piwik_Period_Month extends Piwik_Period
return ( date("m") > $this->date->get("m") && date("Y") == $year)
|| date("Y") > $year;
}
-}
-
-/**
- *
- * @package Piwik_Period
+}
+
+/**
+ *
+ * @package Piwik_Period
*/
class Piwik_Period_Year extends Piwik_Period
{