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:
authorChristian Raue <christian.raue@gmail.com>2014-07-10 17:45:54 +0400
committerChristian Raue <christian.raue@gmail.com>2014-07-15 14:16:49 +0400
commit317bd7e175f04e09cfb6b42f4a282068524df4e0 (patch)
tree2a6c8bc07bc806229bb7f8dc035198e745b34efb /core/Period
parentf6de9efc06b11e067fe4f866377a94996628f796 (diff)
fixed method signatures
Diffstat (limited to 'core/Period')
-rw-r--r--core/Period/Factory.php4
-rw-r--r--core/Period/Range.php2
-rw-r--r--core/Period/Week.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/core/Period/Factory.php b/core/Period/Factory.php
index 4b3f899002..abf4c9aed0 100644
--- a/core/Period/Factory.php
+++ b/core/Period/Factory.php
@@ -27,7 +27,7 @@ class Factory
* @throws Exception If `$strPeriod` is invalid.
* @return \Piwik\Period
*/
- static public function build($period, $date, $timezone = 'UTC')
+ public static function build($period, $date, $timezone = 'UTC')
{
self::checkPeriodIsEnabled($period);
@@ -132,4 +132,4 @@ class Factory
$enabledPeriodsInAPI = array_map('trim', $enabledPeriodsInAPI);
return $enabledPeriodsInAPI;
}
-} \ No newline at end of file
+}
diff --git a/core/Period/Range.php b/core/Period/Range.php
index 1910581aec..2ea6ab1792 100644
--- a/core/Period/Range.php
+++ b/core/Period/Range.php
@@ -220,7 +220,7 @@ class Range extends Period
* @param string $dateString
* @return mixed array(1 => dateStartString, 2 => dateEndString) or `false` if the input was not a date range.
*/
- static public function parseDateRange($dateString)
+ public static function parseDateRange($dateString)
{
$matched = preg_match('/^([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}),(([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})|today|now|yesterday)$/D', trim($dateString), $regs);
if (empty($matched)) {
diff --git a/core/Period/Week.php b/core/Period/Week.php
index 45e9eab278..80aba977c1 100644
--- a/core/Period/Week.php
+++ b/core/Period/Week.php
@@ -53,7 +53,7 @@ class Week extends Period
*
* @return mixed
*/
- static protected function getTranslatedRange($format, $dateStart, $dateEnd)
+ protected static function getTranslatedRange($format, $dateStart, $dateEnd)
{
$string = str_replace('From%', '%', $format);
$string = $dateStart->getLocalized($string);