@@ -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() |
@@ -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. |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | 'className' => lcfirst($data->getEveApiName()), |
| 104 | 104 | 'tables' => $this->tables, |
| 105 | 105 | 'sectionName' => lcfirst($this->sectionName), |
| 106 | - 'version' => gmdate('YmdHis', $sec) . sprintf('.%0-3s', floor($mSec * 1000)) |
|
| 106 | + 'version' => gmdate('YmdHis', $sec).sprintf('.%0-3s', floor($mSec * 1000)) |
|
| 107 | 107 | ]; |
| 108 | 108 | try { |
| 109 | 109 | $contents = $this->getTwig() |
@@ -380,11 +380,11 @@ |
||
| 380 | 380 | public function getUpsert($tableName, array $columnNameList, $rowCount) |
| 381 | 381 | { |
| 382 | 382 | $columns = implode('","', $columnNameList); |
| 383 | - $rowPrototype = '(' . implode(',', array_fill(0, count($columnNameList), '?')) . ')'; |
|
| 383 | + $rowPrototype = '('.implode(',', array_fill(0, count($columnNameList), '?')).')'; |
|
| 384 | 384 | $rows = implode(',', array_fill(0, $rowCount, $rowPrototype)); |
| 385 | 385 | $updates = []; |
| 386 | 386 | foreach ($columnNameList as $column) { |
| 387 | - $updates[] = '"' . $column . '"=VALUES("' . $column . '")'; |
|
| 387 | + $updates[] = '"'.$column.'"=VALUES("'.$column.'")'; |
|
| 388 | 388 | } |
| 389 | 389 | $updates = implode(',', $updates); |
| 390 | 390 | $sql = sprintf( |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | 'className' => lcfirst($this->apiName), |
| 119 | 119 | 'tables' => $this->tables, |
| 120 | 120 | 'sectionName' => lcfirst($this->sectionName), |
| 121 | - 'version' => gmdate('YmdHis', $sec) . sprintf('.%0-3s', floor($mSec * 1000)) |
|
| 121 | + 'version' => gmdate('YmdHis', $sec).sprintf('.%0-3s', floor($mSec * 1000)) |
|
| 122 | 122 | ]; |
| 123 | 123 | // Add create or replace view. |
| 124 | 124 | if (!in_array(strtolower($this->apiName), array_map('strtolower', $tableNames), true)) { |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | $names = explode( |
| 195 | 195 | ',', |
| 196 | 196 | sprintf( |
| 197 | - '%1$s/%2$s.%3$s.%4$s,%1$s/%2$s.%4$s,%1$s/%3$s.%4$s,' . '%2$s.%3$s.%4$s,%2$s.%4$s,%3$s.%4$s,sql.%4$s', |
|
| 197 | + '%1$s/%2$s.%3$s.%4$s,%1$s/%2$s.%4$s,%1$s/%3$s.%4$s,'.'%2$s.%3$s.%4$s,%2$s.%4$s,%3$s.%4$s,sql.%4$s', |
|
| 198 | 198 | ucfirst($data->getEveApiSectionName()), |
| 199 | 199 | $data->getEveApiName(), |
| 200 | 200 | $platform, |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | ) |
| 203 | 203 | ); |
| 204 | 204 | foreach ($names as $fileName) { |
| 205 | - if (is_file($this->getDir() . $fileName)) { |
|
| 205 | + if (is_file($this->getDir().$fileName)) { |
|
| 206 | 206 | return $fileName; |
| 207 | 207 | } |
| 208 | 208 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | public function __construct($dir = __DIR__) |
| 55 | 55 | { |
| 56 | - $this->setRelativeBaseDir($dir . '/'); |
|
| 56 | + $this->setRelativeBaseDir($dir.'/'); |
|
| 57 | 57 | } |
| 58 | 58 | /** |
| 59 | 59 | * @param EveApiEventInterface $event |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | if ($code < 200) { |
| 82 | 82 | if (false !== strpos($mess, 'retry after')) { |
| 83 | - $data->setCacheInterval(strtotime(substr($mess, -19) . '+00:00') - time()); |
|
| 83 | + $data->setCacheInterval(strtotime(substr($mess, -19).'+00:00') - time()); |
|
| 84 | 84 | } |
| 85 | 85 | $yem->triggerLogEvent('Yapeal.Log.log', Logger::WARNING, |
| 86 | 86 | $this->createEventMessage($mess, $data, $eventName)); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $data->setCacheInterval(300); |
| 98 | 98 | } |
| 99 | 99 | $apiName = $data->getEveApiName(); |
| 100 | - $data->setEveApiName('Error_' . $apiName); |
|
| 100 | + $data->setEveApiName('Error_'.$apiName); |
|
| 101 | 101 | // Cache error XML. |
| 102 | 102 | $this->emitEvents($data, 'cache'); |
| 103 | 103 | $data->setEveApiName($apiName); |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | { |
| 52 | 52 | if (empty($dic['Yapeal.Xsl.Transformer'])) { |
| 53 | 53 | $dic['Yapeal.Xsl.Transformer'] = $dic->factory( |
| 54 | - function ($dic) { |
|
| 54 | + function($dic) { |
|
| 55 | 55 | return new $dic['Yapeal.Xsl.transform']($dic['Yapeal.Xsl.dir']); |
| 56 | 56 | } |
| 57 | 57 | ); |