Visual Console Refactor: error fixes

Former-commit-id: 758cd06bfd322a0c409ddf512230fdc1473d54c9
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-05 14:16:18 +02:00
parent 4a3eaca1cd
commit 55b9c07d63
2 changed files with 3 additions and 6 deletions

View File

@ -48,7 +48,7 @@ final class EventsHistory extends Item
{
$return = parent::decode($data);
$return['type'] = AUTO_SLA_GRAPH;
$return['maxTime'] = $this->extractMaxTime($data);
$return['maxTime'] = static::extractMaxTime($data);
return $return;
}

View File

@ -149,11 +149,8 @@ final class StaticGraph extends Item
// Get the linked module Id.
$linkedModule = static::extractLinkedModule($data);
$moduleId = static::parseIntOr($linkedModule['moduleId'], null);
$metaconsoleId = static::parseIntOr(
$linkedModule['metaconsoleId'],
null
);
$moduleId = $linkedModule['moduleId'];
$metaconsoleId = $linkedModule['metaconsoleId'];
if ($moduleId === null) {
throw new \InvalidArgumentException('missing module Id');