| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | * To parse a string representation of a date-time from a feed, instantiate and |
| 14 | 14 | * then pull the timestamp: |
| 15 | 15 | * |
| 16 | 16 | * $time = new FeedTime($s); |
| 17 | - * if ( ! $time->failed()) : | |
| 17 | + * if (!$time->failed()) : | |
| 18 | 18 | * $ts = $time->timestamp(); |
| 19 | 19 | * else : |
| 20 | 20 | * // ... |
| 21 | 21 | * endif; |
| @@ -63,9 +63,9 @@ | ||
| 63 | 63 | } /* FeedTime::set() */ |
| 64 | 64 | |
| 65 | 65 | function timestamp () { |
| 66 | 66 | $unix = NULL; |
| 67 | - if ( ! $this->failed()) : | |
| 67 | + if (!$this->failed()) : | |
| 68 | 68 | $unix = $this->ts; |
| 69 | 69 | endif; |
| 70 | 70 | return $unix; |
| 71 | 71 | } /* FeedTime::timestamp() */ |
| @@ -70,9 +70,9 @@ | ||
| 70 | 70 | return $unix; |
| 71 | 71 | } /* FeedTime::timestamp() */ |
| 72 | 72 | |
| 73 | 73 | function failed () { |
| 74 | - return ( !is_numeric($this->ts) or ! $this->ts or ($this->ts <= 0)); | |
| 74 | + return (!is_numeric($this->ts) or !$this->ts or ($this->ts <= 0)); | |
| 75 | 75 | } /* FeedTime::failed() */ |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * FeedTime::parse_w3cdtf() parses a W3C date-time format date into a |