@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * Used to add item to arguments list. |
| 47 | 47 | * |
| 48 | 48 | * @param string $name |
| 49 | - * @param mixed $value |
|
| 49 | + * @param string $value |
|
| 50 | 50 | * |
| 51 | 51 | * @throws InvalidArgumentException |
| 52 | 52 | * @return self Fluent interface. |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * |
| 83 | 83 | * @param string $name |
| 84 | 84 | * |
| 85 | - * @return null|string |
|
| 85 | + * @return string |
|
| 86 | 86 | * @throws DomainException |
| 87 | 87 | */ |
| 88 | 88 | public function getEveApiArgument($name) |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | trait CommonFileHandlingTrait |
| 43 | 43 | { |
| 44 | 44 | /** |
| 45 | - * @param $fileName |
|
| 45 | + * @param string $fileName |
|
| 46 | 46 | * @param MediatorInterface $yem |
| 47 | 47 | * @param string $mode |
| 48 | 48 | * |
@@ -91,9 +91,9 @@ discard block |
||
| 91 | 91 | } |
| 92 | 92 | $this->sectionName = $data->getEveApiSectionName(); |
| 93 | 93 | $xml = $data->getEveApiXml(); |
| 94 | - if (false === $xml) { |
|
| 95 | - return $event->setHandledSufficiently(); |
|
| 96 | - } |
|
| 94 | + if (false === $xml) { |
|
| 95 | + return $event->setHandledSufficiently(); |
|
| 96 | + } |
|
| 97 | 97 | $sxi = new SimpleXMLIterator($xml); |
| 98 | 98 | $this->tables = []; |
| 99 | 99 | $this->processValueOnly($sxi, lcfirst($data->getEveApiName())); |
@@ -154,18 +154,18 @@ discard block |
||
| 154 | 154 | } |
| 155 | 155 | $name = strtolower($name); |
| 156 | 156 | foreach ([ |
| 157 | - 'descr' => 'xs:string', |
|
| 158 | - 'name' => 'eveNameType', |
|
| 159 | - 'balance' => 'eveISKType', |
|
| 160 | - 'isk' => 'eveISKType', |
|
| 161 | - 'tax' => 'eveISKType', |
|
| 162 | - 'timeefficiency' => 'xs:unsignedByte', |
|
| 163 | - 'date' => 'eveNEDTType', |
|
| 164 | - 'time' => 'eveNEDTType', |
|
| 165 | - 'until' => 'eveNEDTType', |
|
| 166 | - 'errorcode' => 'xs:unsignedShort', |
|
| 167 | - 'level' => 'xs:unsignedShort' |
|
| 168 | - ] as $search => $replace) { |
|
| 157 | + 'descr' => 'xs:string', |
|
| 158 | + 'name' => 'eveNameType', |
|
| 159 | + 'balance' => 'eveISKType', |
|
| 160 | + 'isk' => 'eveISKType', |
|
| 161 | + 'tax' => 'eveISKType', |
|
| 162 | + 'timeefficiency' => 'xs:unsignedByte', |
|
| 163 | + 'date' => 'eveNEDTType', |
|
| 164 | + 'time' => 'eveNEDTType', |
|
| 165 | + 'until' => 'eveNEDTType', |
|
| 166 | + 'errorcode' => 'xs:unsignedShort', |
|
| 167 | + 'level' => 'xs:unsignedShort' |
|
| 168 | + ] as $search => $replace) { |
|
| 169 | 169 | if (false !== strpos($name, $search)) { |
| 170 | 170 | return $replace; |
| 171 | 171 | } |
@@ -80,14 +80,14 @@ discard block |
||
| 80 | 80 | $this->setYem($dic['Yapeal.Event.Mediator']); |
| 81 | 81 | $mess = 'Let the magic begin!'; |
| 82 | 82 | $this->getYem() |
| 83 | - ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess); |
|
| 83 | + ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess); |
|
| 84 | 84 | /** |
| 85 | 85 | * @type CommonSqlQueries $csq |
| 86 | 86 | */ |
| 87 | 87 | $csq = $dic['Yapeal.Sql.CommonQueries']; |
| 88 | 88 | $sql = $csq->getActiveApis(); |
| 89 | 89 | $this->getYem() |
| 90 | - ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $sql); |
|
| 90 | + ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $sql); |
|
| 91 | 91 | try { |
| 92 | 92 | /** |
| 93 | 93 | * @type PDO $pdo |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } catch (PDOException $exc) { |
| 102 | 102 | $mess = 'Could not access utilEveApi table'; |
| 103 | 103 | $this->getYem() |
| 104 | - ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess, ['exception' => $exc]); |
|
| 104 | + ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess, ['exception' => $exc]); |
|
| 105 | 105 | return 1; |
| 106 | 106 | } |
| 107 | 107 | // Always check APIKeyInfo. |
@@ -122,8 +122,8 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | $data = $dic['Yapeal.Xml.Data']; |
| 124 | 124 | $data->setEveApiName($record['apiName']) |
| 125 | - ->setEveApiSectionName($record['sectionName']) |
|
| 126 | - ->setCacheInterval($record['interval']); |
|
| 125 | + ->setEveApiSectionName($record['sectionName']) |
|
| 126 | + ->setCacheInterval($record['interval']); |
|
| 127 | 127 | $this->emitEvents($data, 'start'); |
| 128 | 128 | } |
| 129 | 129 | return 0; |
@@ -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 | } |
@@ -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 | } |
@@ -238,18 +238,18 @@ |
||
| 238 | 238 | } |
| 239 | 239 | $name = strtolower($name); |
| 240 | 240 | foreach ([ |
| 241 | - 'descr' => 'TEXT NOT NULL', |
|
| 242 | - 'name' => 'CHAR(100) NOT NULL', |
|
| 243 | - 'balance' => 'DECIMAL(17, 2) NOT NULL', |
|
| 244 | - 'isk' => 'DECIMAL(17, 2) NOT NULL', |
|
| 245 | - 'tax' => 'DECIMAL(17, 2) NOT NULL', |
|
| 246 | - 'timeefficiency' => 'TINYINT(3) UNSIGNED NOT NULL', |
|
| 247 | - 'date' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
| 248 | - 'time' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
| 249 | - 'until' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
| 250 | - 'errorcode' => 'SMALLINT(4) UNSIGNED NOT NULL', |
|
| 251 | - 'level' => 'SMALLINT(4) UNSIGNED NOT NULL' |
|
| 252 | - ] as $search => $replace) { |
|
| 241 | + 'descr' => 'TEXT NOT NULL', |
|
| 242 | + 'name' => 'CHAR(100) NOT NULL', |
|
| 243 | + 'balance' => 'DECIMAL(17, 2) NOT NULL', |
|
| 244 | + 'isk' => 'DECIMAL(17, 2) NOT NULL', |
|
| 245 | + 'tax' => 'DECIMAL(17, 2) NOT NULL', |
|
| 246 | + 'timeefficiency' => 'TINYINT(3) UNSIGNED NOT NULL', |
|
| 247 | + 'date' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
| 248 | + 'time' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
| 249 | + 'until' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
| 250 | + 'errorcode' => 'SMALLINT(4) UNSIGNED NOT NULL', |
|
| 251 | + 'level' => 'SMALLINT(4) UNSIGNED NOT NULL' |
|
| 252 | + ] as $search => $replace) { |
|
| 253 | 253 | if (false !== strpos($name, $search)) { |
| 254 | 254 | return $replace; |
| 255 | 255 | } |