From ed34d8d4549f31e79ad60f9372487424f8455710 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 17 Feb 2019 21:36:14 +0100 Subject: [PATCH] fix comments --- Model/Message/Dom.php | 2 +- Model/Message/Notify.php | 2 +- Model/Message/Redirect.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Model/Message/Dom.php b/Model/Message/Dom.php index be1f5a321..f91039b77 100644 --- a/Model/Message/Dom.php +++ b/Model/Message/Dom.php @@ -153,7 +153,7 @@ class Dom implements \Serializable, ArrayableInterface $this->delay = $unserialized['time'] ?? 0; $this->selector = $unserialized['selector'] ?? ''; $this->action = $unserialized['action'] ?? ''; - $this->content = $unserialized['content'] ?? ''; + $this->content = $unserialized['content'] ?? DomAction::MODIFY; } /** diff --git a/Model/Message/Notify.php b/Model/Message/Notify.php index 523b19d5b..f36f7f034 100644 --- a/Model/Message/Notify.php +++ b/Model/Message/Notify.php @@ -194,7 +194,7 @@ class Notify implements \Serializable, ArrayableInterface, \JsonSerializable $unserialized = \json_decode($raw, true); $this->delay = $unserialized['time'] ?? 0; - $this->stay = $unserialized['stay'] ?? ''; + $this->stay = $unserialized['stay'] ?? 0; $this->message = $unserialized['msg'] ?? ''; $this->title = $unserialized['title'] ?? ''; $this->level = $unserialized['level'] ?? 0; diff --git a/Model/Message/Redirect.php b/Model/Message/Redirect.php index 4b9e0c7b6..5f70e6acc 100644 --- a/Model/Message/Redirect.php +++ b/Model/Message/Redirect.php @@ -137,7 +137,7 @@ class Redirect implements \Serializable, ArrayableInterface, \JsonSerializable $this->delay = $unserialized['time'] ?? 0; $this->uri = $unserialized['uri'] ?? ''; - $this->new = $unserialized['new'] ?? ''; + $this->new = $unserialized['new'] ?? false; } /**