@@ -255,24 +255,24 @@ |
||
255 | 255 | $fails++; |
256 | 256 | try { |
257 | 257 | $this->queryId = @mysqli_query($this->linkId, $queryString, MYSQLI_STORE_RESULT); |
258 | - if (in_array((int)@mysqli_errno($this->linkId), [1213, 2006, 3101, 1180])) { |
|
258 | + if (in_array((int) @mysqli_errno($this->linkId), [1213, 2006, 3101, 1180])) { |
|
259 | 259 | //error_log("got ".@mysqli_errno($this->linkId)." sql error fails {$fails} on query {$queryString} from {$line}:{$file}"); |
260 | 260 | usleep(250000); // 0.25 second |
261 | 261 | } else { |
262 | 262 | $onlyRollback = false; |
263 | - if (in_array((int)@mysqli_errno($this->linkId), [1064])) { |
|
263 | + if (in_array((int) @mysqli_errno($this->linkId), [1064])) { |
|
264 | 264 | $tries = 0; |
265 | 265 | } |
266 | 266 | break; |
267 | 267 | } |
268 | 268 | } catch (\mysqli_sql_exception $e) { |
269 | - if (in_array((int)$e->getCode(), [1213, 2006, 3101, 1180])) { |
|
269 | + if (in_array((int) $e->getCode(), [1213, 2006, 3101, 1180])) { |
|
270 | 270 | //error_log("got ".$e->getCode()." sql error fails {$fails}"); |
271 | 271 | usleep(250000); // 0.25 second |
272 | 272 | } else { |
273 | 273 | error_log('Got mysqli_sql_exception code '.$e->getCode().' error '.$e->getMessage().' on query '.$queryString.' from '.$line.':'.$file); |
274 | 274 | $onlyRollback = false; |
275 | - if (in_array((int)@mysqli_errno($this->linkId), [1064])) { |
|
275 | + if (in_array((int) @mysqli_errno($this->linkId), [1064])) { |
|
276 | 276 | $tries = 0; |
277 | 277 | } |
278 | 278 | break; |