@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $timezone = new DateTimeZone(date_default_timezone_get()); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - if(isset($this->extra_args()['CreatedDateTime'])) { |
|
| 19 | + if (isset($this->extra_args()['CreatedDateTime'])) { |
|
| 20 | 20 | try { |
| 21 | 21 | return new DateTime($this->extra_args()['CreatedDateTime'], $timezone); |
| 22 | 22 | } catch (\Exception $e) { |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | public function description(): string |
| 31 | 31 | { |
| 32 | - return (string)$this->extra_args()['Description']; |
|
| 32 | + return (string) $this->extra_args()['Description']; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | public function endDateTime(string $timezone = 'America/New_York') : ?DateTime |
@@ -42,9 +42,9 @@ discard block |
||
| 42 | 42 | $timezone = new DateTimeZone(date_default_timezone_get()); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - if(isset( $this->extra_args()['EndDateTime'])) { |
|
| 45 | + if (isset($this->extra_args()['EndDateTime'])) { |
|
| 46 | 46 | try { |
| 47 | - return new \DateTime( $this->extra_args()['EndDateTime'], $timezone ); |
|
| 47 | + return new \DateTime($this->extra_args()['EndDateTime'], $timezone); |
|
| 48 | 48 | } catch (\Exception $exception) { |
| 49 | 49 | trigger_error($exception->getMessage(), E_USER_WARNING); |
| 50 | 50 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | if (isset($this->extra_args()['StartDateTime'])) { |
| 72 | 72 | try { |
| 73 | - return new \DateTime( $this->extra_args()['StartDateTime'], $timezone ); |
|
| 73 | + return new \DateTime($this->extra_args()['StartDateTime'], $timezone); |
|
| 74 | 74 | } catch (\Exception $e) { |
| 75 | 75 | trigger_error($e->getMessage(), E_USER_WARNING); |
| 76 | 76 | } |