@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $sql = $this->getCsq() |
| 71 | 71 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 72 | 72 | $this->getYem() |
| 73 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 73 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 74 | 74 | $this->getPdo() |
| 75 | 75 | ->exec($sql); |
| 76 | 76 | $columnDefaults = [ |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $sql = $this->getCsq() |
| 71 | 71 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 72 | 72 | $this->getYem() |
| 73 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 73 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 74 | 74 | $this->getPdo() |
| 75 | 75 | ->exec($sql); |
| 76 | 76 | $columnDefaults = [ |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $sql = $this->getCsq() |
| 72 | 72 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 73 | 73 | $this->getYem() |
| 74 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 74 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 75 | 75 | $this->getPdo() |
| 76 | 76 | ->exec($sql); |
| 77 | 77 | $columnDefaults = [ |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $sql = $this->getCsq() |
| 71 | 71 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 72 | 72 | $this->getYem() |
| 73 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 73 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 74 | 74 | $this->getPdo() |
| 75 | 75 | ->exec($sql); |
| 76 | 76 | $columnDefaults = [ |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | $data->getEveApiName(), |
| 144 | 144 | (int)$this->extractOwnerID($data->getEveApiArguments())); |
| 145 | 145 | $this->getYem() |
| 146 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 146 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 147 | 147 | try { |
| 148 | 148 | $expires = $this->getPdo() |
| 149 | 149 | ->query($sql) |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | ->triggerLogEvent('Yapeal.Log.log', Logger::WARNING, $this->createEveApiMessage($mess, $data)); |
| 170 | 170 | return false; |
| 171 | 171 | } |
| 172 | - if (strtotime($expires[0]['expires'] . '+00:00') < time()) { |
|
| 172 | + if (strtotime($expires[0]['expires'].'+00:00') < time()) { |
|
| 173 | 173 | $mess = 'Expired cached until row found during the processing of'; |
| 174 | 174 | $this->getYem() |
| 175 | 175 | ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $this->createEveApiMessage($mess, $data)); |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | return [false]; |
| 235 | 235 | } |
| 236 | 236 | $this->getYem() |
| 237 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 237 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 238 | 238 | return $this->getPdo() |
| 239 | 239 | ->query($sql) |
| 240 | 240 | ->fetchAll(PDO::FETCH_ASSOC); |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | $sql = $this->getCsq() |
| 261 | 261 | ->getApiLock(crc32($data->getHash())); |
| 262 | 262 | $this->getYem() |
| 263 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 263 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 264 | 264 | $context = []; |
| 265 | 265 | $success = false; |
| 266 | 266 | try { |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | $sql = $this->getCsq() |
| 350 | 350 | ->getApiLockRelease(crc32($data->getHash())); |
| 351 | 351 | $this->getYem() |
| 352 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 352 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 353 | 353 | $context = []; |
| 354 | 354 | $success = false; |
| 355 | 355 | try { |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | if ('' === $currentTime) { |
| 383 | 383 | return $this; |
| 384 | 384 | } |
| 385 | - $dateTime = gmdate('Y-m-d H:i:s', strtotime($currentTime . '+00:00') + $data->getCacheInterval()); |
|
| 385 | + $dateTime = gmdate('Y-m-d H:i:s', strtotime($currentTime.'+00:00') + $data->getCacheInterval()); |
|
| 386 | 386 | $row = [ |
| 387 | 387 | 'accountKey' => $data->hasEveApiArgument('accountKey') ? $data->getEveApiArgument('accountKey') : '0', |
| 388 | 388 | 'apiName' => $data->getEveApiName(), |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | $sql = $this->getCsq() |
| 394 | 394 | ->getUpsert('utilCachedUntil', array_keys($row), 1); |
| 395 | 395 | $this->getYem() |
| 396 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 396 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 397 | 397 | $pdo = $this->getPdo(); |
| 398 | 398 | $pdo->beginTransaction(); |
| 399 | 399 | $context = []; |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | $sql = $this->getCsq() |
| 86 | 86 | ->getActiveApis(); |
| 87 | 87 | $this->getYem() |
| 88 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 88 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 89 | 89 | try { |
| 90 | 90 | $records = $this->getPdo() |
| 91 | 91 | ->query($sql) |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | restore_error_handler(); |
| 140 | 140 | if (!is_resource($this->stream)) { |
| 141 | 141 | $this->stream = null; |
| 142 | - $mess = 'The stream or file "%s" could not be opened: ' . $this->errorMessage; |
|
| 142 | + $mess = 'The stream or file "%s" could not be opened: '.$this->errorMessage; |
|
| 143 | 143 | throw new \UnexpectedValueException(sprintf($mess, $this->url)); |
| 144 | 144 | } |
| 145 | 145 | } |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | $status = mkdir($dir, 0777, true); |
| 187 | 187 | restore_error_handler(); |
| 188 | 188 | if (false === $status) { |
| 189 | - $mess = 'There is no existing directory at "%s" and its not buildable: ' . $this->errorMessage; |
|
| 189 | + $mess = 'There is no existing directory at "%s" and its not buildable: '.$this->errorMessage; |
|
| 190 | 190 | throw new \UnexpectedValueException(sprintf($mess, $dir)); |
| 191 | 191 | } |
| 192 | 192 | } |
@@ -83,18 +83,18 @@ |
||
| 83 | 83 | protected function normalizeException($exc): array |
| 84 | 84 | { |
| 85 | 85 | if (!$exc instanceof \Throwable) { |
| 86 | - throw new \InvalidArgumentException('Throwable expected, got ' . gettype($exc) . ' / ' . get_class($exc)); |
|
| 86 | + throw new \InvalidArgumentException('Throwable expected, got '.gettype($exc).' / '.get_class($exc)); |
|
| 87 | 87 | } |
| 88 | 88 | $data = [ |
| 89 | 89 | 'class' => get_class($exc), |
| 90 | 90 | 'message' => $exc->getMessage(), |
| 91 | 91 | 'code' => $exc->getCode(), |
| 92 | - 'file' => str_replace('\\', '/', $exc->getFile()) . ':' . $exc->getLine() |
|
| 92 | + 'file' => str_replace('\\', '/', $exc->getFile()).':'.$exc->getLine() |
|
| 93 | 93 | ]; |
| 94 | 94 | if ($this->includeStacktraces) { |
| 95 | 95 | foreach ($exc->getTrace() as $frame) { |
| 96 | 96 | if (isset($frame['file'])) { |
| 97 | - $data['trace'][] = str_replace('\\', '/', $frame['file']) . ':' . $frame['line']; |
|
| 97 | + $data['trace'][] = str_replace('\\', '/', $frame['file']).':'.$frame['line']; |
|
| 98 | 98 | } elseif (isset($frame['function']) && $frame['function'] === '{closure}') { |
| 99 | 99 | // We should again normalize the frames, because it might contain invalid items |
| 100 | 100 | $data['trace'][] = $this->normalize($frame['function']); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $mess = $this->createEveApiMessage($mess, $data); |
| 78 | 78 | if ($code < 200) { |
| 79 | 79 | if (false !== strpos($errorText, 'retry after')) { |
| 80 | - $data->setCacheInterval(strtotime(substr($errorText, -19) . '+00:00') - time()); |
|
| 80 | + $data->setCacheInterval(strtotime(substr($errorText, -19).'+00:00') - time()); |
|
| 81 | 81 | } |
| 82 | 82 | $yem->triggerLogEvent('Yapeal.Log.log', |
| 83 | 83 | Logger::WARNING, |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | // Cache error XML. |
| 99 | 99 | $apiName = $data->getEveApiName(); |
| 100 | - $data->setEveApiName('Error_' . $apiName); |
|
| 100 | + $data->setEveApiName('Error_'.$apiName); |
|
| 101 | 101 | $this->emitEvents($data, 'preserve', 'Yapeal.Xml.Error'); |
| 102 | 102 | $data->setEveApiName($apiName); |
| 103 | 103 | return $event->setData($data) |