Completed
Pull Request — master (#20)
by Andreas
04:05
created
src/PersistenceLayer/CfpPersistenceLayer.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.