@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $output->writeln($name); |
| 80 | 80 | $csq = $this->getCsq(); |
| 81 | 81 | $this->executeSqlStatements( |
| 82 | - $csq->getDropAddOrModifyColumnProcedure() . PHP_EOL . $csq->getCreateAddOrModifyColumnProcedure(), |
|
| 82 | + $csq->getDropAddOrModifyColumnProcedure().PHP_EOL.$csq->getCreateAddOrModifyColumnProcedure(), |
|
| 83 | 83 | $name, |
| 84 | 84 | $output |
| 85 | 85 | ); |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | protected function getUpdateFileList(OutputInterface $output) |
| 170 | 170 | { |
| 171 | 171 | $fileNames = []; |
| 172 | - $path = $this->getDic()['Yapeal.Sql.dir'] . 'updates/'; |
|
| 172 | + $path = $this->getDic()['Yapeal.Sql.dir'].'updates/'; |
|
| 173 | 173 | if (!is_readable($path) || !is_dir($path)) { |
| 174 | 174 | $mess = sprintf( |
| 175 | 175 | '<info>Could NOT access update directory %1$s</info>', |
@@ -257,8 +257,8 @@ discard block |
||
| 257 | 257 | $stmt->execute([$updateVersion]); |
| 258 | 258 | $pdo->commit(); |
| 259 | 259 | } catch (PDOException $exc) { |
| 260 | - $mess = $sql . PHP_EOL; |
|
| 261 | - $mess .= sprintf('Database error message was %s', $exc->getMessage()) . PHP_EOL; |
|
| 260 | + $mess = $sql.PHP_EOL; |
|
| 261 | + $mess .= sprintf('Database error message was %s', $exc->getMessage()).PHP_EOL; |
|
| 262 | 262 | $mess .= sprintf( |
| 263 | 263 | 'Database "version" update failed for %1$s', |
| 264 | 264 | $updateVersion |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | try { |
| 181 | 181 | $pdo->exec($sql); |
| 182 | 182 | } catch (PDOException $exc) { |
| 183 | - $mess = $sql . PHP_EOL; |
|
| 183 | + $mess = $sql.PHP_EOL; |
|
| 184 | 184 | $mess .= sprintf( |
| 185 | 185 | 'Sql failed in %1$s on statement %2$s with (%3$s) %4$s', |
| 186 | 186 | $fileName, |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | $base = 'Yapeal.Sql.'; |
| 207 | 207 | foreach (['class', 'database', 'hostName', 'password', 'platform', 'tablePrefix', 'userName'] as $option) { |
| 208 | 208 | if (!empty($options[$option])) { |
| 209 | - $this->getDic()[$base . $option] = $options[$option]; |
|
| 209 | + $this->getDic()[$base.$option] = $options[$option]; |
|
| 210 | 210 | } |
| 211 | 211 | } |
| 212 | 212 | if (!empty($options['configFile'])) { |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | } |
| 112 | 112 | $fileList = []; |
| 113 | 113 | foreach ($sections as $dir) { |
| 114 | - foreach (new DirectoryIterator($path . $dir . '/') as $fileInfo) { |
|
| 114 | + foreach (new DirectoryIterator($path.$dir.'/') as $fileInfo) { |
|
| 115 | 115 | if (!$fileInfo->isFile() |
| 116 | 116 | || 'sql' !== $fileInfo->getExtension() |
| 117 | 117 | || 'Create' !== substr($fileInfo->getBasename(), 0, 6) |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | do { |
| 109 | 109 | $settings = preg_replace_callback( |
| 110 | 110 | $regEx, |
| 111 | - function ($match) use ($settings, $dic) { |
|
| 111 | + function($match) use ($settings, $dic) { |
|
| 112 | 112 | if (!empty($settings[$match['name']])) { |
| 113 | 113 | return $settings[$match['name']]; |
| 114 | 114 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | if (PREG_NO_ERROR !== $lastError) { |
| 130 | 130 | $constants = array_flip(get_defined_constants(true)['pcre']); |
| 131 | 131 | $lastError = $constants[$lastError]; |
| 132 | - $mess = 'Received preg error ' . $lastError; |
|
| 132 | + $mess = 'Received preg error '.$lastError; |
|
| 133 | 133 | throw new \DomainException($mess); |
| 134 | 134 | } |
| 135 | 135 | } while ($count > 0); |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $rdi->setFlags($flags); |
| 149 | 149 | /** @noinspection SpellCheckingInspection */ |
| 150 | 150 | $rcfi = new RecursiveCallbackFilterIterator( |
| 151 | - $rdi, function (\SplFileInfo $current, $key, \RecursiveDirectoryIterator $rdi) { |
|
| 151 | + $rdi, function(\SplFileInfo $current, $key, \RecursiveDirectoryIterator $rdi) { |
|
| 152 | 152 | if ($rdi->hasChildren()) { |
| 153 | 153 | return true; |
| 154 | 154 | } |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | ); |
| 199 | 199 | } catch (ParseException $exc) { |
| 200 | 200 | $mess = sprintf( |
| 201 | - 'Unable to parse the YAML configuration file %2$s.' . ' The error message was %1$s', |
|
| 201 | + 'Unable to parse the YAML configuration file %2$s.'.' The error message was %1$s', |
|
| 202 | 202 | $exc->getMessage(), |
| 203 | 203 | $configFile |
| 204 | 204 | ); |
@@ -227,12 +227,12 @@ discard block |
||
| 227 | 227 | $dic = $this->dic; |
| 228 | 228 | if ('none' !== $dic['Yapeal.Cache.fileSystemMode']) { |
| 229 | 229 | if (empty($dic['Yapeal.FileSystem.CachePreserver'])) { |
| 230 | - $dic['Yapeal.FileSystem.CachePreserver'] = function () use ($dic) { |
|
| 230 | + $dic['Yapeal.FileSystem.CachePreserver'] = function() use ($dic) { |
|
| 231 | 231 | return new $dic['Yapeal.Cache.Handlers.preserve']($dic['Yapeal.Cache.dir']); |
| 232 | 232 | }; |
| 233 | 233 | } |
| 234 | 234 | if (empty($dic['Yapeal.FileSystem.CacheRetriever'])) { |
| 235 | - $dic['Yapeal.FileSystem.CacheRetriever'] = function () use ($dic) { |
|
| 235 | + $dic['Yapeal.FileSystem.CacheRetriever'] = function() use ($dic) { |
|
| 236 | 236 | return new $dic['Yapeal.Cache.Handlers.retrieve']($dic['Yapeal.Cache.dir']); |
| 237 | 237 | }; |
| 238 | 238 | } |
@@ -266,11 +266,11 @@ discard block |
||
| 266 | 266 | $dic['Yapeal.baseDir'] = $path; |
| 267 | 267 | } |
| 268 | 268 | if (empty($dic['Yapeal.libDir'])) { |
| 269 | - $dic['Yapeal.libDir'] = $path . 'lib/'; |
|
| 269 | + $dic['Yapeal.libDir'] = $path.'lib/'; |
|
| 270 | 270 | } |
| 271 | 271 | $configFiles = [ |
| 272 | - $fpn->normalizeFile(__DIR__ . '/yapeal_defaults.yaml'), |
|
| 273 | - $fpn->normalizeFile($dic['Yapeal.baseDir'] . 'config/yapeal.yaml') |
|
| 272 | + $fpn->normalizeFile(__DIR__.'/yapeal_defaults.yaml'), |
|
| 273 | + $fpn->normalizeFile($dic['Yapeal.baseDir'].'config/yapeal.yaml') |
|
| 274 | 274 | ]; |
| 275 | 275 | if (empty($dic['Yapeal.vendorParentDir'])) { |
| 276 | 276 | $vendorPos = strpos( |
@@ -279,10 +279,10 @@ discard block |
||
| 279 | 279 | ); |
| 280 | 280 | if (false !== $vendorPos) { |
| 281 | 281 | $dic['Yapeal.vendorParentDir'] = substr($path, 0, $vendorPos); |
| 282 | - $configFiles[] = $fpn->normalizeFile($dic['Yapeal.vendorParentDir'] . 'config/yapeal.yaml'); |
|
| 282 | + $configFiles[] = $fpn->normalizeFile($dic['Yapeal.vendorParentDir'].'config/yapeal.yaml'); |
|
| 283 | 283 | } |
| 284 | 284 | } else { |
| 285 | - $configFiles[] = $fpn->normalizeFile($dic['Yapeal.vendorParentDir'] . 'config/yapeal.yaml'); |
|
| 285 | + $configFiles[] = $fpn->normalizeFile($dic['Yapeal.vendorParentDir'].'config/yapeal.yaml'); |
|
| 286 | 286 | } |
| 287 | 287 | $settings = []; |
| 288 | 288 | // Process each file in turn so any substitutions are done in a more |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | if (!empty($this->dic['Yapeal.Error.Logger'])) { |
| 310 | 310 | return $this; |
| 311 | 311 | } |
| 312 | - $this->dic['Yapeal.Error.Logger'] = function ($dic) { |
|
| 312 | + $this->dic['Yapeal.Error.Logger'] = function($dic) { |
|
| 313 | 313 | /** |
| 314 | 314 | * @type Logger $logger |
| 315 | 315 | */ |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | ); |
| 322 | 322 | } |
| 323 | 323 | $group[] = new $dic['Yapeal.Error.Handlers.stream']( |
| 324 | - $dic['Yapeal.Error.dir'] . $dic['Yapeal.Error.fileName'], 100 |
|
| 324 | + $dic['Yapeal.Error.dir'].$dic['Yapeal.Error.fileName'], 100 |
|
| 325 | 325 | ); |
| 326 | 326 | $logger->pushHandler( |
| 327 | 327 | new $dic['Yapeal.Error.Handlers.fingersCrossed']( |
@@ -374,8 +374,8 @@ discard block |
||
| 374 | 374 | basename($subscriber, '.php') |
| 375 | 375 | ); |
| 376 | 376 | if (!array_key_exists($service, $dic)) { |
| 377 | - $dic[$service] = function () use ($dic, $service) { |
|
| 378 | - $class = '\\' . str_replace('.', '\\', $service); |
|
| 377 | + $dic[$service] = function() use ($dic, $service) { |
|
| 378 | + $class = '\\'.str_replace('.', '\\', $service); |
|
| 379 | 379 | /** |
| 380 | 380 | * @type \Yapeal\EveApi\EveApiToolsTrait $callable |
| 381 | 381 | */ |
@@ -384,27 +384,27 @@ discard block |
||
| 384 | 384 | ->setPdo($dic['Yapeal.Sql.Connection']); |
| 385 | 385 | }; |
| 386 | 386 | } |
| 387 | - $events = [$service . '.start' => ['startEveApi', 'last']]; |
|
| 387 | + $events = [$service.'.start' => ['startEveApi', 'last']]; |
|
| 388 | 388 | if (false === strpos($subscriber, 'Section')) { |
| 389 | - $events[$service . '.preserve'] = ['preserveEveApi', 'last']; |
|
| 389 | + $events[$service.'.preserve'] = ['preserveEveApi', 'last']; |
|
| 390 | 390 | } |
| 391 | 391 | $mediator->addServiceSubscriberByEventList($service, $events); |
| 392 | 392 | } |
| 393 | 393 | } |
| 394 | 394 | if (empty($dic['Yapeal.EveApi.Creator'])) { |
| 395 | - $dic['Yapeal.EveApi.Creator'] = function () use ($dic) { |
|
| 395 | + $dic['Yapeal.EveApi.Creator'] = function() use ($dic) { |
|
| 396 | 396 | $loader = new Twig_Loader_Filesystem($dic['Yapeal.EveApi.dir']); |
| 397 | 397 | $twig = new Twig_Environment( |
| 398 | 398 | $loader, ['debug' => true, 'strict_variables' => true, 'autoescape' => false] |
| 399 | 399 | ); |
| 400 | 400 | $filter = new Twig_SimpleFilter( |
| 401 | - 'ucFirst', function ($value) { |
|
| 401 | + 'ucFirst', function($value) { |
|
| 402 | 402 | return ucfirst($value); |
| 403 | 403 | } |
| 404 | 404 | ); |
| 405 | 405 | $twig->addFilter($filter); |
| 406 | 406 | $filter = new Twig_SimpleFilter( |
| 407 | - 'lcFirst', function ($value) { |
|
| 407 | + 'lcFirst', function($value) { |
|
| 408 | 408 | return lcfirst($value); |
| 409 | 409 | } |
| 410 | 410 | ); |
@@ -434,20 +434,20 @@ discard block |
||
| 434 | 434 | $dic = $this->dic; |
| 435 | 435 | if (empty($dic['Yapeal.Event.EveApiEvent'])) { |
| 436 | 436 | $dic['Yapeal.Event.EveApi'] = $dic->factory( |
| 437 | - function ($dic) { |
|
| 437 | + function($dic) { |
|
| 438 | 438 | return new $dic['Yapeal.Event.Factories.eveApi'](); |
| 439 | 439 | } |
| 440 | 440 | ); |
| 441 | 441 | } |
| 442 | 442 | if (empty($this->dic['Yapeal.Event.LogEvent'])) { |
| 443 | 443 | $this->dic['Yapeal.Event.LogEvent'] = $this->dic->factory( |
| 444 | - function ($dic) { |
|
| 444 | + function($dic) { |
|
| 445 | 445 | return new $dic['Yapeal.Event.Factories.log']; |
| 446 | 446 | } |
| 447 | 447 | ); |
| 448 | 448 | } |
| 449 | 449 | if (empty($dic['Yapeal.Event.Mediator'])) { |
| 450 | - $dic['Yapeal.Event.Mediator'] = function ($dic) { |
|
| 450 | + $dic['Yapeal.Event.Mediator'] = function($dic) { |
|
| 451 | 451 | return new $dic['Yapeal.Event.mediator']($dic); |
| 452 | 452 | }; |
| 453 | 453 | } |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | { |
| 461 | 461 | $dic = $this->dic; |
| 462 | 462 | if (empty($dic['Yapeal.Log.Logger'])) { |
| 463 | - $dic['Yapeal.Log.Logger'] = function () use ($dic) { |
|
| 463 | + $dic['Yapeal.Log.Logger'] = function() use ($dic) { |
|
| 464 | 464 | $group = []; |
| 465 | 465 | $lineFormatter = new LineFormatter; |
| 466 | 466 | $lineFormatter->includeStacktraces(); |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | $group[] = $handler; |
| 476 | 476 | } |
| 477 | 477 | $handler = new $dic['Yapeal.Log.Handlers.stream']( |
| 478 | - $dic['Yapeal.Log.dir'] . $dic['Yapeal.Log.fileName'], 100 |
|
| 478 | + $dic['Yapeal.Log.dir'].$dic['Yapeal.Log.fileName'], 100 |
|
| 479 | 479 | ); |
| 480 | 480 | $handler->setFormatter($lineFormatter); |
| 481 | 481 | $group[] = $handler; |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | { |
| 508 | 508 | $dic = $this->dic; |
| 509 | 509 | if (empty($dic['Yapeal.Network.Client'])) { |
| 510 | - $dic['Yapeal.Network.Client'] = function ($dic) { |
|
| 510 | + $dic['Yapeal.Network.Client'] = function($dic) { |
|
| 511 | 511 | $appComment = $dic['Yapeal.Network.appComment']; |
| 512 | 512 | $appName = $dic['Yapeal.Network.appName']; |
| 513 | 513 | $appVersion = $dic['Yapeal.Network.appVersion']; |
@@ -576,7 +576,7 @@ discard block |
||
| 576 | 576 | }; |
| 577 | 577 | } |
| 578 | 578 | if (empty($dic['Yapeal.Network.Retriever'])) { |
| 579 | - $dic['Yapeal.Network.Retriever'] = function ($dic) { |
|
| 579 | + $dic['Yapeal.Network.Retriever'] = function($dic) { |
|
| 580 | 580 | return new GuzzleNetworkRetriever($dic['Yapeal.Network.Client']); |
| 581 | 581 | }; |
| 582 | 582 | } |
@@ -599,7 +599,7 @@ discard block |
||
| 599 | 599 | { |
| 600 | 600 | $dic = $this->dic; |
| 601 | 601 | if (empty($dic['Yapeal.Sql.CommonQueries'])) { |
| 602 | - $dic['Yapeal.Sql.CommonQueries'] = function ($dic) { |
|
| 602 | + $dic['Yapeal.Sql.CommonQueries'] = function($dic) { |
|
| 603 | 603 | return new $dic['Yapeal.Sql.sharedSql']( |
| 604 | 604 | $dic['Yapeal.Sql.database'], $dic['Yapeal.Sql.tablePrefix'] |
| 605 | 605 | ); |
@@ -609,13 +609,13 @@ discard block |
||
| 609 | 609 | return $this; |
| 610 | 610 | } |
| 611 | 611 | if ('mysql' !== $dic['Yapeal.Sql.platform']) { |
| 612 | - $mess = 'Unknown platform, was given ' . $dic['Yapeal.Sql.platform']; |
|
| 612 | + $mess = 'Unknown platform, was given '.$dic['Yapeal.Sql.platform']; |
|
| 613 | 613 | throw new YapealDatabaseException($mess); |
| 614 | 614 | } |
| 615 | - $dic['Yapeal.Sql.Connection'] = function ($dic) { |
|
| 616 | - $dsn = $dic['Yapeal.Sql.platform'] . ':host=' . $dic['Yapeal.Sql.hostName'] . ';charset=utf8'; |
|
| 615 | + $dic['Yapeal.Sql.Connection'] = function($dic) { |
|
| 616 | + $dsn = $dic['Yapeal.Sql.platform'].':host='.$dic['Yapeal.Sql.hostName'].';charset=utf8'; |
|
| 617 | 617 | if (!empty($dic['Yapeal.Sql.port'])) { |
| 618 | - $dsn .= ';port=' . $dic['Yapeal.Sql.port']; |
|
| 618 | + $dsn .= ';port='.$dic['Yapeal.Sql.port']; |
|
| 619 | 619 | } |
| 620 | 620 | /** |
| 621 | 621 | * @type PDO $database |
@@ -632,24 +632,24 @@ discard block |
||
| 632 | 632 | $database->exec('SET SESSION TIME_ZONE=\'+00:00\''); |
| 633 | 633 | $database->exec('SET NAMES utf8mb4 COLLATE utf8mb4_unicode_520_ci'); |
| 634 | 634 | $database->exec('SET COLLATION_CONNECTION=utf8mb4_unicode_520_ci'); |
| 635 | - $database->exec('SET DEFAULT_STORAGE_ENGINE=' . $dic['Yapeal.Sql.engine']); |
|
| 635 | + $database->exec('SET DEFAULT_STORAGE_ENGINE='.$dic['Yapeal.Sql.engine']); |
|
| 636 | 636 | return $database; |
| 637 | 637 | }; |
| 638 | 638 | if (empty($dic['Yapeal.Sql.Creator'])) { |
| 639 | 639 | $dic['Yapeal.Sql.Creator'] = $dic->factory( |
| 640 | - function ($dic) { |
|
| 640 | + function($dic) { |
|
| 641 | 641 | $loader = new Twig_Loader_Filesystem($dic['Yapeal.Sql.dir']); |
| 642 | 642 | $twig = new Twig_Environment( |
| 643 | 643 | $loader, ['debug' => true, 'strict_variables' => true, 'autoescape' => false] |
| 644 | 644 | ); |
| 645 | 645 | $filter = new Twig_SimpleFilter( |
| 646 | - 'ucFirst', function ($value) { |
|
| 646 | + 'ucFirst', function($value) { |
|
| 647 | 647 | return ucfirst($value); |
| 648 | 648 | } |
| 649 | 649 | ); |
| 650 | 650 | $twig->addFilter($filter); |
| 651 | 651 | $filter = new Twig_SimpleFilter( |
| 652 | - 'lcFirst', function ($value) { |
|
| 652 | + 'lcFirst', function($value) { |
|
| 653 | 653 | return lcfirst($value); |
| 654 | 654 | } |
| 655 | 655 | ); |
@@ -685,7 +685,7 @@ discard block |
||
| 685 | 685 | { |
| 686 | 686 | if (empty($this->dic['Yapeal.Xml.Data'])) { |
| 687 | 687 | $this->dic['Yapeal.Xml.Data'] = $this->dic->factory( |
| 688 | - function ($dic) { |
|
| 688 | + function($dic) { |
|
| 689 | 689 | return new $dic['Yapeal.Xml.data'](); |
| 690 | 690 | } |
| 691 | 691 | ); |
@@ -703,19 +703,19 @@ discard block |
||
| 703 | 703 | $dic = $this->dic; |
| 704 | 704 | if (empty($dic['Yapeal.Xsd.Creator'])) { |
| 705 | 705 | $dic['Yapeal.Xsd.Creator'] = $dic->factory( |
| 706 | - function ($dic) { |
|
| 706 | + function($dic) { |
|
| 707 | 707 | $loader = new Twig_Loader_Filesystem($dic['Yapeal.Xsd.dir']); |
| 708 | 708 | $twig = new Twig_Environment( |
| 709 | 709 | $loader, ['debug' => true, 'strict_variables' => true, 'autoescape' => false] |
| 710 | 710 | ); |
| 711 | 711 | $filter = new Twig_SimpleFilter( |
| 712 | - 'ucFirst', function ($value) { |
|
| 712 | + 'ucFirst', function($value) { |
|
| 713 | 713 | return ucfirst($value); |
| 714 | 714 | } |
| 715 | 715 | ); |
| 716 | 716 | $twig->addFilter($filter); |
| 717 | 717 | $filter = new Twig_SimpleFilter( |
| 718 | - 'lcFirst', function ($value) { |
|
| 718 | + 'lcFirst', function($value) { |
|
| 719 | 719 | return lcfirst($value); |
| 720 | 720 | } |
| 721 | 721 | ); |
@@ -733,7 +733,7 @@ discard block |
||
| 733 | 733 | } |
| 734 | 734 | if (empty($dic['Yapeal.Xsd.Validator'])) { |
| 735 | 735 | $dic['Yapeal.Xsd.Validator'] = $dic->factory( |
| 736 | - function ($dic) { |
|
| 736 | + function($dic) { |
|
| 737 | 737 | return new $dic['Yapeal.Xsd.validate']($dic['Yapeal.Xsd.dir']); |
| 738 | 738 | } |
| 739 | 739 | ); |
@@ -763,7 +763,7 @@ discard block |
||
| 763 | 763 | $dic = $this->dic; |
| 764 | 764 | if (empty($dic['Yapeal.Xsl.Transformer'])) { |
| 765 | 765 | $dic['Yapeal.Xsl.Transformer'] = $dic->factory( |
| 766 | - function ($dic) { |
|
| 766 | + function($dic) { |
|
| 767 | 767 | return new $dic['Yapeal.Xsl.transform']($dic['Yapeal.Xsl.dir']); |
| 768 | 768 | } |
| 769 | 769 | ); |
@@ -52,8 +52,8 @@ |
||
| 52 | 52 | array $context = [] |
| 53 | 53 | ) { |
| 54 | 54 | $this->setLevel($level) |
| 55 | - ->setMessage($message) |
|
| 56 | - ->setContext($context); |
|
| 55 | + ->setMessage($message) |
|
| 56 | + ->setContext($context); |
|
| 57 | 57 | } |
| 58 | 58 | /** |
| 59 | 59 | * @return array |
@@ -86,8 +86,8 @@ |
||
| 86 | 86 | $event = new LogEvent(); |
| 87 | 87 | } |
| 88 | 88 | $event->setLevel($level) |
| 89 | - ->setMessage($message) |
|
| 90 | - ->setContext($context); |
|
| 89 | + ->setMessage($message) |
|
| 90 | + ->setContext($context); |
|
| 91 | 91 | return $this->trigger($eventName, $event); |
| 92 | 92 | } |
| 93 | 93 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | $mess = 'Could NOT get a list of active corporations'; |
| 59 | 59 | $this->getYem() |
| 60 | 60 | ->triggerLogEvent('Yapeal.Log.log', Logger::WARNING, $mess); |
| 61 | - $mess = 'Database error message was ' . $exc->getMessage(); |
|
| 61 | + $mess = 'Database error message was '.$exc->getMessage(); |
|
| 62 | 62 | $this->getYem() |
| 63 | 63 | ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $mess); |
| 64 | 64 | return []; |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | ->triggerLogEvent('Yapeal.Log.log', Logger::WARNING, $this->createEveApiMessage($mess, $data)); |
| 174 | 174 | return false; |
| 175 | 175 | } |
| 176 | - if (strtotime($expires[0]['expires'] . '+00:00') < time()) { |
|
| 176 | + if (strtotime($expires[0]['expires'].'+00:00') < time()) { |
|
| 177 | 177 | $mess = 'Expired UtilCachedUntil record found for'; |
| 178 | 178 | $this->getYem() |
| 179 | 179 | ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $this->createEveApiMessage($mess, $data)); |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | /** @noinspection PhpUndefinedFieldInspection */ |
| 281 | 281 | $dateTime = gmdate( |
| 282 | 282 | 'Y-m-d H:i:s', |
| 283 | - strtotime($simple->currentTime[0] . '+00:00') + $data->getCacheInterval() |
|
| 283 | + strtotime($simple->currentTime[0].'+00:00') + $data->getCacheInterval() |
|
| 284 | 284 | ); |
| 285 | 285 | $row = [$data->getEveApiName(), $dateTime, $ownerID, $data->getEveApiSectionName()]; |
| 286 | 286 | $sql = $this->getCsq() |
@@ -160,16 +160,16 @@ |
||
| 160 | 160 | $name = strtolower($name); |
| 161 | 161 | $column = 'null'; |
| 162 | 162 | foreach ([ |
| 163 | - 'descr' => '\'\'', |
|
| 164 | - 'name' => '\'\'', |
|
| 165 | - 'balance' => '\'0.0\'', |
|
| 166 | - 'isk' => '\'0.0\'', |
|
| 167 | - 'tax' => '\'0.0\'', |
|
| 168 | - 'timeefficiency' => 'null', |
|
| 169 | - 'date' => '\'1970-01-01 00:00:01\'', |
|
| 170 | - 'time' => '\'1970-01-01 00:00:01\'', |
|
| 171 | - 'until' => '\'1970-01-01 00:00:01\'' |
|
| 172 | - ] as $search => $replace) { |
|
| 163 | + 'descr' => '\'\'', |
|
| 164 | + 'name' => '\'\'', |
|
| 165 | + 'balance' => '\'0.0\'', |
|
| 166 | + 'isk' => '\'0.0\'', |
|
| 167 | + 'tax' => '\'0.0\'', |
|
| 168 | + 'timeefficiency' => 'null', |
|
| 169 | + 'date' => '\'1970-01-01 00:00:01\'', |
|
| 170 | + 'time' => '\'1970-01-01 00:00:01\'', |
|
| 171 | + 'until' => '\'1970-01-01 00:00:01\'' |
|
| 172 | + ] as $search => $replace) { |
|
| 173 | 173 | if (false !== strpos($name, $search)) { |
| 174 | 174 | return $replace; |
| 175 | 175 | } |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | */ |
| 138 | 138 | protected function getNamespace() |
| 139 | 139 | { |
| 140 | - return 'Yapeal\EveApi\\' . ucfirst($this->sectionName); |
|
| 140 | + return 'Yapeal\EveApi\\'.ucfirst($this->sectionName); |
|
| 141 | 141 | } |
| 142 | 142 | /** |
| 143 | 143 | * Used to determine if API is in section that has an owner. |