Passed
Push — release_2_0 ( 17ead9...53ebbf )
by Stefan
07:41
created
core/EntityWithDBProperties.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @return array list of row id's of file-based attributes which weren't deleted
161 161
      */
162 162
     public function beginFlushAttributes($extracondition = "") {
163
-        $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : "");
163
+        $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : "");
164 164
         $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND option_name NOT LIKE '%_file' $extracondition");
165 165
         $this->updateFreshness();
166 166
         $execFlush = $this->databaseHandle->exec("SELECT row FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier $extracondition");
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * @return void
180 180
      */
181 181
     public function commitFlushAttributes(array $tobedeleted) {
182
-        $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : "");
182
+        $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : "");
183 183
         foreach (array_keys($tobedeleted) as $row) {
184 184
             $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND row = $row");
185 185
             $this->updateFreshness();
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     public function addAttribute($attrName, $attrLang, $attrValue) {
207 207
         $relevantId = $this->getRelevantIdentifier();
208 208
         $identifierType = (is_int($relevantId) ? "i" : "s");
209
-        $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType . "sss", $relevantId, $attrName, $attrLang, $attrValue);
209
+        $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType."sss", $relevantId, $attrName, $attrLang, $attrValue);
210 210
         $this->updateFreshness();
211 211
     }
212 212
 
Please login to merge, or discard this patch.