Completed
Pull Request — master (#807)
by Stig
03:51
created
code/SS_Datetimezone.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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];
Please login to merge, or discard this patch.