@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains Transformer interface. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains Transformer class. |
| 5 | 5 | * |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function __construct($dir = __DIR__) |
| 56 | 56 | { |
| 57 | - $this->setRelativeBaseDir($dir . '/'); |
|
| 57 | + $this->setRelativeBaseDir($dir.'/'); |
|
| 58 | 58 | } |
| 59 | 59 | /** |
| 60 | 60 | * @param EveApiEventInterface $event |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | $arguments = $data->getEveApiArguments(); |
| 113 | 113 | if (!empty($arguments['vCode'])) { |
| 114 | - $arguments['vCode'] = substr($arguments['vCode'], 0, 8) . '...'; |
|
| 114 | + $arguments['vCode'] = substr($arguments['vCode'], 0, 8).'...'; |
|
| 115 | 115 | } |
| 116 | 116 | if (!in_array($data->getEveApiName(), ['accountBalance', 'walletJournal', 'walletTransactions'], true)) { |
| 117 | 117 | unset($arguments['accountKey']); |
@@ -121,8 +121,8 @@ discard block |
||
| 121 | 121 | $json = json_encode($arguments); |
| 122 | 122 | $xml = str_replace(["encoding='UTF-8'?>\r\n<eveapi", "encoding='UTF-8'?>\n<eveapi"], |
| 123 | 123 | [ |
| 124 | - "encoding='UTF-8'?>\r\n<?yapeal.parameters.json " . $json . "?>\r\n<eveapi", |
|
| 125 | - "encoding='UTF-8'?>\n<?yapeal.parameters.json " . $json . "?>\n<eveapi" |
|
| 124 | + "encoding='UTF-8'?>\r\n<?yapeal.parameters.json ".$json."?>\r\n<eveapi", |
|
| 125 | + "encoding='UTF-8'?>\n<?yapeal.parameters.json ".$json."?>\n<eveapi" |
|
| 126 | 126 | ], |
| 127 | 127 | $xml); |
| 128 | 128 | $data->setEveApiXml($xml); |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | } |
| 170 | 170 | } |
| 171 | 171 | $apiName = $data->getEveApiName(); |
| 172 | - $data->setEveApiName('Untransformed_' . $apiName); |
|
| 172 | + $data->setEveApiName('Untransformed_'.$apiName); |
|
| 173 | 173 | // Cache error causing XML. |
| 174 | 174 | $this->emitEvents($data, 'preserve', 'Yapeal.Xml.Error'); |
| 175 | 175 | $data->setEveApiName($apiName); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | 'className' => lcfirst($this->apiName), |
| 106 | 106 | 'tables' => $this->tables, |
| 107 | 107 | 'sectionName' => lcfirst($this->sectionName), |
| 108 | - 'version' => gmdate('YmdHis', $sec) . substr($mSec, 1, 4) |
|
| 108 | + 'version' => gmdate('YmdHis', $sec).substr($mSec, 1, 4) |
|
| 109 | 109 | ]; |
| 110 | 110 | $templateName = $this->getTemplateName($this->getPlatform(), |
| 111 | 111 | ucfirst($this->sectionName), |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | $columns['ownerID'] = 'BIGINT(20) UNSIGNED NOT NULL'; |
| 172 | 172 | } |
| 173 | 173 | uksort($columns, |
| 174 | - function ($alpha, $beta) { |
|
| 174 | + function($alpha, $beta) { |
|
| 175 | 175 | return strtolower($alpha) <=> strtolower($beta); |
| 176 | 176 | }); |
| 177 | 177 | if (0 === count($this->tables)) { |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | $columns['ownerID'] = 'BIGINT(20) UNSIGNED NOT NULL'; |
| 205 | 205 | } |
| 206 | 206 | uksort($columns, |
| 207 | - function ($alpha, $beta) { |
|
| 207 | + function($alpha, $beta) { |
|
| 208 | 208 | return strtolower($alpha) <=> strtolower($beta); |
| 209 | 209 | }); |
| 210 | 210 | $keys = $this->getSqlKeys(); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains CommonSqlQueries class. |
| 5 | 5 | * |
@@ -381,11 +381,11 @@ discard block |
||
| 381 | 381 | public function getUpsert($tableName, array $columnNameList, $rowCount) |
| 382 | 382 | { |
| 383 | 383 | $columns = implode('","', $columnNameList); |
| 384 | - $rowPrototype = '(' . implode(',', array_fill(0, count($columnNameList), '?')) . ')'; |
|
| 384 | + $rowPrototype = '('.implode(',', array_fill(0, count($columnNameList), '?')).')'; |
|
| 385 | 385 | $rows = implode(',', array_fill(0, $rowCount, $rowPrototype)); |
| 386 | 386 | $updates = []; |
| 387 | 387 | foreach ($columnNameList as $column) { |
| 388 | - $updates[] = '"' . $column . '"=VALUES("' . $column . '")'; |
|
| 388 | + $updates[] = '"'.$column.'"=VALUES("'.$column.'")'; |
|
| 389 | 389 | } |
| 390 | 390 | $updates = implode(',', $updates); |
| 391 | 391 | $sql = sprintf( |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains class LineFormatter. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains class ActivationStrategy. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * EventAwareLoggerInterface.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains class Kills. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains MapSection class. |
| 5 | 5 | * |