@@ -172,7 +172,7 @@ |
||
| 172 | 172 | * constructor. |
| 173 | 173 | * |
| 174 | 174 | * @param LoggerInterface $logger |
| 175 | - * @param int|null $uncaughtExceptionLevel |
|
| 175 | + * @param integer $uncaughtExceptionLevel |
|
| 176 | 176 | */ |
| 177 | 177 | public function __construct(LoggerInterface $logger, int $uncaughtExceptionLevel) |
| 178 | 178 | { |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | private function wireCli(ContainerInterface $dic): self |
| 294 | 294 | { |
| 295 | 295 | if (empty($dic['Yapeal.Log.Callable.Cli'])) { |
| 296 | - $dic['Yapeal.Log.Callable.Cli'] = function () use ($dic) { |
|
| 296 | + $dic['Yapeal.Log.Callable.Cli'] = function() use ($dic) { |
|
| 297 | 297 | $parameters = [ |
| 298 | 298 | $dic['Yapeal.Log.Parameters.Cli.stream'], |
| 299 | 299 | $dic['Yapeal.Log.Parameters.Cli.level'], |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | private function wireFileSystem(ContainerInterface $dic): self |
| 322 | 322 | { |
| 323 | 323 | if (empty($dic['Yapeal.Log.Callable.FileSystem'])) { |
| 324 | - $dic['Yapeal.Log.Callable.FileSystem'] = function () use ($dic) { |
|
| 324 | + $dic['Yapeal.Log.Callable.FileSystem'] = function() use ($dic) { |
|
| 325 | 325 | $parameters = [ |
| 326 | 326 | $dic['Yapeal.Log.Parameters.FileSystem.stream'], |
| 327 | 327 | $dic['Yapeal.Log.Parameters.FileSystem.level'], |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | private function wireFingersCrossed(ContainerInterface $dic): self |
| 350 | 350 | { |
| 351 | 351 | if (empty($dic['Yapeal.Log.Callable.FingersCrossed'])) { |
| 352 | - $dic['Yapeal.Log.Callable.FingersCrossed'] = function () use ($dic) { |
|
| 352 | + $dic['Yapeal.Log.Callable.FingersCrossed'] = function() use ($dic) { |
|
| 353 | 353 | /** |
| 354 | 354 | * @var string $activationStrategy |
| 355 | 355 | * @var string $handler |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | private function wireGroup(ContainerInterface $dic): self |
| 379 | 379 | { |
| 380 | 380 | if (empty($dic['Yapeal.Log.Callable.Group'])) { |
| 381 | - $dic['Yapeal.Log.Callable.Group'] = function () use ($dic) { |
|
| 381 | + $dic['Yapeal.Log.Callable.Group'] = function() use ($dic) { |
|
| 382 | 382 | $handlers = []; |
| 383 | 383 | foreach (explode(',', $dic['Yapeal.Log.Parameters.Group.handlers']) as $handler) { |
| 384 | 384 | if ('' === $handler) { |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | private function wireLineFormatter(ContainerInterface $dic): self |
| 404 | 404 | { |
| 405 | 405 | if (empty($dic['Yapeal.Log.Callable.LFFactory'])) { |
| 406 | - $dic['Yapeal.Log.Callable.LFFactory'] = $dic->factory(function () use ($dic) { |
|
| 406 | + $dic['Yapeal.Log.Callable.LFFactory'] = $dic->factory(function() use ($dic) { |
|
| 407 | 407 | $parameters = [ |
| 408 | 408 | $dic['Yapeal.Log.Parameters.LineFormatter.format'], |
| 409 | 409 | $dic['Yapeal.Log.Parameters.LineFormatter.dateFormat'], |
@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | private function wireLogger(ContainerInterface $dic) |
| 436 | 436 | { |
| 437 | 437 | if (empty($dic['Yapeal.Log.Callable.Logger'])) { |
| 438 | - $dic['Yapeal.Log.Callable.Logger'] = function () use ($dic) { |
|
| 438 | + $dic['Yapeal.Log.Callable.Logger'] = function() use ($dic) { |
|
| 439 | 439 | /** |
| 440 | 440 | * @var \Yapeal\Log\Logger $logger |
| 441 | 441 | */ |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | private function wireStrategy(ContainerInterface $dic): self |
| 473 | 473 | { |
| 474 | 474 | if (empty($dic['Yapeal.Log.Callable.Strategy'])) { |
| 475 | - $dic['Yapeal.Log.Callable.Strategy'] = function () use ($dic) { |
|
| 475 | + $dic['Yapeal.Log.Callable.Strategy'] = function() use ($dic) { |
|
| 476 | 476 | return new $dic['Yapeal.Log.Classes.strategy']((int)$dic['Yapeal.Log.Parameters.Strategy.actionLevel']); |
| 477 | 477 | }; |
| 478 | 478 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function __construct(string $dir = __DIR__) |
| 63 | 63 | { |
| 64 | - $this->setRelativeBaseDir($dir . '/'); |
|
| 64 | + $this->setRelativeBaseDir($dir.'/'); |
|
| 65 | 65 | } |
| 66 | 66 | /** |
| 67 | 67 | * @param EveApiEventInterface $event |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $arguments = $data->getEveApiArguments(); |
| 118 | 118 | // Include only partial vCode for security. |
| 119 | 119 | if (!empty($arguments['vCode'])) { |
| 120 | - $arguments['vCode'] = substr($arguments['vCode'], 0, min(8, strlen($arguments['vCode']) - 1)) . '...'; |
|
| 120 | + $arguments['vCode'] = substr($arguments['vCode'], 0, min(8, strlen($arguments['vCode']) - 1)).'...'; |
|
| 121 | 121 | } |
| 122 | 122 | // Remove arguments that never need to be included. |
| 123 | 123 | unset($arguments['mask'], $arguments['rowCount']); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | $json = json_encode($arguments); |
| 130 | 130 | $xml = str_ireplace("=\"utf-8\"?>\n<eveapi", |
| 131 | - "=\"utf-8\"?>\n<?yapeal.parameters.json " . $json . "?>\n<eveapi", |
|
| 131 | + "=\"utf-8\"?>\n<?yapeal.parameters.json ".$json."?>\n<eveapi", |
|
| 132 | 132 | $xml); |
| 133 | 133 | $data->setEveApiXml(tidy_repair_string($xml, $this->tidyConfig, 'utf8')); |
| 134 | 134 | return $this; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | ['exception' => $exc]); |
| 228 | 228 | // Cache error causing XML. |
| 229 | 229 | $apiName = $data->getEveApiName(); |
| 230 | - $data->setEveApiName('Untransformed_' . $apiName); |
|
| 230 | + $data->setEveApiName('Untransformed_'.$apiName); |
|
| 231 | 231 | $this->emitEvents($data, 'preserve', 'Yapeal.Xml.Error'); |
| 232 | 232 | $data->setEveApiName($apiName); |
| 233 | 233 | // Empty invalid XML since it is not usable. |
@@ -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 = [ |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $sql = $this->getCsq() |
| 84 | 84 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 85 | 85 | $this->getYem() |
| 86 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 86 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 87 | 87 | $this->getPdo() |
| 88 | 88 | ->exec($sql); |
| 89 | 89 | $columnDefaults = [ |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $sql = $this->getCsq() |
| 115 | 115 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 116 | 116 | $this->getYem() |
| 117 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 117 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 118 | 118 | $this->getPdo() |
| 119 | 119 | ->exec($sql); |
| 120 | 120 | $columnDefaults = [ |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | $sql = $this->getCsq() |
| 142 | 142 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 143 | 143 | $this->getYem() |
| 144 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 144 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 145 | 145 | $this->getPdo() |
| 146 | 146 | ->exec($sql); |
| 147 | 147 | $columnDefaults = [ |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | $sql = $this->getCsq() |
| 197 | 197 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 198 | 198 | $this->getYem() |
| 199 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 199 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 200 | 200 | $this->getPdo() |
| 201 | 201 | ->exec($sql); |
| 202 | 202 | $columnDefaults = [ |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | $sql = $this->getCsq() |
| 225 | 225 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 226 | 226 | $this->getYem() |
| 227 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 227 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 228 | 228 | $this->getPdo() |
| 229 | 229 | ->exec($sql); |
| 230 | 230 | $columnDefaults = [ |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $sql = $this->getCsq() |
| 253 | 253 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 254 | 254 | $this->getYem() |
| 255 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 255 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 256 | 256 | $this->getPdo() |
| 257 | 257 | ->exec($sql); |
| 258 | 258 | $columnDefaults = [ |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | $sql = $this->getCsq() |
| 281 | 281 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 282 | 282 | $this->getYem() |
| 283 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 283 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 284 | 284 | $this->getPdo() |
| 285 | 285 | ->exec($sql); |
| 286 | 286 | $columnDefaults = [ |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | $sql = $this->getCsq() |
| 309 | 309 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 310 | 310 | $this->getYem() |
| 311 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 311 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 312 | 312 | $this->getPdo() |
| 313 | 313 | ->exec($sql); |
| 314 | 314 | $columnDefaults = [ |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | $sql = $this->getCsq() |
| 337 | 337 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 338 | 338 | $this->getYem() |
| 339 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 339 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 340 | 340 | $this->getPdo() |
| 341 | 341 | ->exec($sql); |
| 342 | 342 | $columnDefaults = [ |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | $sql = $this->getCsq() |
| 365 | 365 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 366 | 366 | $this->getYem() |
| 367 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 367 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 368 | 368 | $this->getPdo() |
| 369 | 369 | ->exec($sql); |
| 370 | 370 | $columnDefaults = [ |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | $sql = $this->getCsq() |
| 394 | 394 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 395 | 395 | $this->getYem() |
| 396 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 396 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 397 | 397 | $this->getPdo() |
| 398 | 398 | ->exec($sql); |
| 399 | 399 | $columnDefaults = [ |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | $sql = $this->getCsq() |
| 424 | 424 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 425 | 425 | $this->getYem() |
| 426 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 426 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 427 | 427 | $this->getPdo() |
| 428 | 428 | ->exec($sql); |
| 429 | 429 | $columnDefaults = [ |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | $data = $event->getData(); |
| 79 | 79 | $apiName = $data->getEveApiName(); |
| 80 | - $data->setEveApiName($apiName . 'History'); |
|
| 80 | + $data->setEveApiName($apiName.'History'); |
|
| 81 | 81 | // Insure history has already been updated first so current data overwrites old data. |
| 82 | 82 | $this->emitEvents($data, 'start'); |
| 83 | 83 | $data->setEveApiName($apiName) |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $sql = $this->getCsq() |
| 98 | 98 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 99 | 99 | $this->getYem() |
| 100 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 100 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 101 | 101 | $this->getPdo() |
| 102 | 102 | ->exec($sql); |
| 103 | 103 | $columnDefaults = [ |
@@ -71,7 +71,7 @@ discard block |
||
| 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 = [ |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $sql = $this->getCsq() |
| 101 | 101 | ->getDeleteFromTableWithOwnerID($tableName, $ownerID); |
| 102 | 102 | $this->getYem() |
| 103 | - ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - ' . $sql); |
|
| 103 | + ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, 'sql - '.$sql); |
|
| 104 | 104 | $this->getPdo() |
| 105 | 105 | ->exec($sql); |
| 106 | 106 | $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 = [ |
@@ -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 = [ |