Visual Console Refactor: error fixes
Former-commit-id: 758cd06bfd322a0c409ddf512230fdc1473d54c9
This commit is contained in:
parent
4a3eaca1cd
commit
55b9c07d63
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue