Completed
Branch master (c3ca5f)
by Seth
04:51
created
common.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
  * Canvas calendar
45 45
  **/
46 46
 function getPairingHash($icsUrl, $canvasContext) {
47
-	return md5($icsUrl . $canvasContext . CANVAS_API_URL);
47
+	return md5($icsUrl.$canvasContext.CANVAS_API_URL);
48 48
 }
49 49
 
50 50
 /**
51 51
  * Generate a hash of this version of an event to cache in the database
52 52
  **/
53 53
 function getEventHash($date, $time, $uid, $event) {
54
-	return md5($date . $time . $uid . serialize($event));
54
+	return md5($date.$time.$uid.serialize($event));
55 55
 }
56 56
 
57 57
 /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 		return $SYNC_TIMESTAMP;
65 65
 	} else {
66 66
 		$timestamp = new DateTime();
67
-		$SYNC_TIMESTAMP = $timestamp->format(SYNC_TIMESTAMP_FORMAT) . SEPARATOR . md5($_SERVER['REMOTE_ADDR'] . time());
67
+		$SYNC_TIMESTAMP = $timestamp->format(SYNC_TIMESTAMP_FORMAT).SEPARATOR.md5($_SERVER['REMOTE_ADDR'].time());
68 68
 		return $SYNC_TIMESTAMP;
69 69
 	}
70 70
 }
Please login to merge, or discard this patch.