@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function setName($name) |
122 | 122 | { |
123 | - $this->name = (string) $name; |
|
123 | + $this->name = (string)$name; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | **/ |
160 | 160 | protected function getPairingHash() |
161 | 161 | { |
162 | - return md5($this->getContext()->getCanonicalUrl() . $this->getFeedUrl()); |
|
162 | + return md5($this->getContext()->getCanonicalUrl().$this->getFeedUrl()); |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | public function save() |
@@ -256,14 +256,14 @@ discard block |
||
256 | 256 | */ |
257 | 257 | $canvasObject = $api->get($this->getContext()->getVerificationUrl()); |
258 | 258 | |
259 | - if (!DataUtilities::URLexists($this>getFeedUrl())) { |
|
259 | + if (!DataUtilities::URLexists($this > getFeedUrl())) { |
|
260 | 260 | throw new Exception( |
261 | 261 | "Cannot sync calendars with a valid calendar feed" |
262 | 262 | ); |
263 | 263 | } |
264 | 264 | |
265 | 265 | if ($log) { |
266 | - $log->log(static::getSyncTimestamp() . ' sync started', PEAR_LOG_INFO); |
|
266 | + $log->log(static::getSyncTimestamp().' sync started', PEAR_LOG_INFO); |
|
267 | 267 | } |
268 | 268 | $this->save(); |
269 | 269 | |
@@ -287,10 +287,10 @@ discard block |
||
287 | 287 | * today's date, probably a better system? issue:12 |
288 | 288 | */ |
289 | 289 | foreach ($ics->selectComponents( |
290 | - date('Y')-1, // startYear |
|
290 | + date('Y') - 1, // startYear |
|
291 | 291 | date('m'), // startMonth |
292 | 292 | date('d'), // startDay |
293 | - date('Y')+1, // endYEar |
|
293 | + date('Y') + 1, // endYEar |
|
294 | 294 | date('m'), // endMonth |
295 | 295 | date('d'), // endDay |
296 | 296 | 'vevent', // cType |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | "/calendar_events", |
329 | 329 | [ |
330 | 330 | 'calendar_event' => [ |
331 | - 'context_code' => $this->getContext() . "_{$canvasObject['id']}", |
|
331 | + 'context_code' => $this->getContext()."_{$canvasObject['id']}", |
|
332 | 332 | 'title' => preg_replace( |
333 | 333 | '%^([^\]]+)(\s*\[[^\]]+\]\s*)+$%', |
334 | 334 | '\\1', |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | } |
413 | 413 | |
414 | 414 | if ($log) { |
415 | - $log->log(static::getSyncTimestamp() . ' sync finished', PEAR_LOG_INFO); |
|
415 | + $log->log(static::getSyncTimestamp().' sync finished', PEAR_LOG_INFO); |
|
416 | 416 | } |
417 | 417 | } |
418 | 418 | } |
@@ -34,13 +34,13 @@ |
||
34 | 34 | if (is_a($veventOrHash, vevent::class)) { |
35 | 35 | $this->vevent = $veventOrHash; |
36 | 36 | } else { |
37 | - $this->hash = (string) $veventOrHash; |
|
37 | + $this->hash = (string)$veventOrHash; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | if (empty($calendar)) { |
41 | 41 | throw new Exception("Calendar ID required"); |
42 | 42 | } |
43 | - $this->calendar = (string) $calendar; |
|
43 | + $this->calendar = (string)$calendar; |
|
44 | 44 | |
45 | 45 | $this->getHash(); |
46 | 46 | } |