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 = parent::decode($data);
|
||||||
$return['type'] = AUTO_SLA_GRAPH;
|
$return['type'] = AUTO_SLA_GRAPH;
|
||||||
$return['maxTime'] = $this->extractMaxTime($data);
|
$return['maxTime'] = static::extractMaxTime($data);
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -149,11 +149,8 @@ final class StaticGraph extends Item
|
||||||
|
|
||||||
// Get the linked module Id.
|
// Get the linked module Id.
|
||||||
$linkedModule = static::extractLinkedModule($data);
|
$linkedModule = static::extractLinkedModule($data);
|
||||||
$moduleId = static::parseIntOr($linkedModule['moduleId'], null);
|
$moduleId = $linkedModule['moduleId'];
|
||||||
$metaconsoleId = static::parseIntOr(
|
$metaconsoleId = $linkedModule['metaconsoleId'];
|
||||||
$linkedModule['metaconsoleId'],
|
|
||||||
null
|
|
||||||
);
|
|
||||||
|
|
||||||
if ($moduleId === null) {
|
if ($moduleId === null) {
|
||||||
throw new \InvalidArgumentException('missing module Id');
|
throw new \InvalidArgumentException('missing module Id');
|
||||||
|
|
Loading…
Reference in New Issue