@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * Returns the date in the raw SQL-format specific to a given timezone passed from the Member class, e.g. “2006-01-18 16:32:04” |
16 | 16 | */ |
17 | 17 | public function Format($format) { |
18 | - if($this->value){ |
|
18 | + if ($this->value) { |
|
19 | 19 | $date = new DateTime($this->value); |
20 | 20 | //if the current user has set a timezone that is not the default then use that |
21 | 21 | $member = $this->getCurrentCachedUser(); |
@@ -34,10 +34,10 @@ discard block |
||
34 | 34 | */ |
35 | 35 | protected function getCurrentCachedUser() { |
36 | 36 | $memberID = \Member::currentUserID(); |
37 | - if(!$memberID) { |
|
37 | + if (!$memberID) { |
|
38 | 38 | return null; |
39 | 39 | } |
40 | - if(!isset(self::$_cache_members[$memberID])) { |
|
40 | + if (!isset(self::$_cache_members[$memberID])) { |
|
41 | 41 | self::$_cache_members[$memberID] = Member::get()->byId($memberID); |
42 | 42 | } |
43 | 43 | return self::$_cache_members[$memberID]; |