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:
authormattpiwik <matthieu.aubry@gmail.com>2010-07-27 04:23:00 +0400
committermattpiwik <matthieu.aubry@gmail.com>2010-07-27 04:23:00 +0400
commit09a73a248362f5932a46476248be1bf18f78fe5a (patch)
tree0e2e936aca0e54e236abbd2642d101d390c34012 /core/Date.php
parent5a9353b2d991b4a11c1b7d5b222993e94731d5f7 (diff)
fixing spaces
git-svn-id: http://dev.piwik.org/svn/trunk@2702 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Date.php')
-rw-r--r--core/Date.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/Date.php b/core/Date.php
index 5390357293..9a64f16017 100644
--- a/core/Date.php
+++ b/core/Date.php
@@ -546,11 +546,13 @@ class Piwik_Date
*/
public function addPeriod( $n, $period )
{
- if($n < 0) {
+ if($n < 0)
+ {
$ts = strtotime("$n $period", $this->timestamp);
}
- else {
- $ts = strtotime("+$n $period", $this->timestamp);
+ else
+ {
+ $ts = strtotime("+$n $period", $this->timestamp);
}
return new Piwik_Date( $ts, $this->timezone );
}
@@ -566,5 +568,5 @@ class Piwik_Date
public function subPeriod( $n, $period )
{
return $this->addPeriod(-$n, $period );
-}
+ }
}