@@ -36,7 +36,7 @@ |
||
| 36 | 36 | { |
| 37 | 37 | /** |
| 38 | 38 | * |
| 39 | - * @param Response $response |
|
| 39 | + * @param ResponseInterface $response |
|
| 40 | 40 | * @param array $data |
| 41 | 41 | * @param int $status |
| 42 | 42 | * |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $cfp->setDateCfpStart(new \DateTimeImmutable()); |
| 68 | 68 | } |
| 69 | 69 | $statement = 'INSERT into `cfp`(`dateCfpStart`, `dateCfpEnd`, `dateEventStart`, `dateEventEnd`, `name`, `uri`, `hash`, `timezone`, `description`, `eventUri`, `iconUri`, `latitude`, `longitude`, `location`, `tags`, `lastUpdate`) ' . |
| 70 | - 'VALUES (:dateCfpStart, :dateCfpEnd, :dateEventStart, :dateEventEnd, :name, :uri, :hash, :timezone, :description, :eventUri, :iconUri, :latitude, :longitude, :location, :tags, :lastUpdate);'; |
|
| 70 | + 'VALUES (:dateCfpStart, :dateCfpEnd, :dateEventStart, :dateEventEnd, :name, :uri, :hash, :timezone, :description, :eventUri, :iconUri, :latitude, :longitude, :location, :tags, :lastUpdate);'; |
|
| 71 | 71 | $statement = $this->pdo->prepare($statement); |
| 72 | 72 | |
| 73 | 73 | $values = [ |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | foreach ($options as $option) { |
| 131 | 131 | $method = 'get' . $option; |
| 132 | - // Merge values from tags and source before comparing! |
|
| 132 | + // Merge values from tags and source before comparing! |
|
| 133 | 133 | if (in_array($option, ['tags', 'source'])) { |
| 134 | 134 | $setter = 'set' . $option; |
| 135 | 135 | $cfp->$setter(array_merge($oldValues->$method(), $cfp->$method())); |
@@ -158,9 +158,9 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | $statement = 'UPDATE `cfp` SET ' |
| 161 | - . implode(',', $statementElements) . ',' |
|
| 162 | - . '`lastUpdate` = :lastUpdate ' |
|
| 163 | - . 'WHERE `hash` = :fetchHash'; |
|
| 161 | + . implode(',', $statementElements) . ',' |
|
| 162 | + . '`lastUpdate` = :lastUpdate ' |
|
| 163 | + . 'WHERE `hash` = :fetchHash'; |
|
| 164 | 164 | $statement = $this->pdo->prepare($statement); |
| 165 | 165 | $values['fetchHash'] = $fetchHash; |
| 166 | 166 | $values['lastUpdate'] = (new \DateTime('now', new \DateTimezone('UTC')))->format('c'); |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | $cfp->setLocation($item['location']); |
| 354 | 354 | $cfp->setTags(explode(',', $item['tags'])); |
| 355 | 355 | $cfp->setLastUpdated(new \DateTimeImmutable($item['lastUpdate'])); |
| 356 | - // $cfp->setSource(explode(',', $item['source'])); |
|
| 356 | + // $cfp->setSource(explode(',', $item['source'])); |
|
| 357 | 357 | |
| 358 | 358 | $list->add($cfp); |
| 359 | 359 | } |