|
@@ 957-957 (lines=1) @@
|
| 954 |
|
$this->m_content = ""; |
| 955 |
|
else if (!is_string($this->m_content) || empty($this->m_content)) |
| 956 |
|
return false; |
| 957 |
|
if (!is_int($this->m_type) || $this->m_type < self::TYPE_NOTIFICATION || $this->m_type > self::TYPE_MESSAGE) return false; |
| 958 |
|
if (!is_int($this->m_multiPkg) || $this->m_multiPkg < 0 || $this->m_multiPkg > 1) return false; |
| 959 |
|
if ($this->m_type == self::TYPE_NOTIFICATION) { |
| 960 |
|
if (!($this->m_style instanceof Style) || !($this->m_action instanceof ClickAction)) |
|
@@ 1185-1187 (lines=3) @@
|
| 1182 |
|
else |
| 1183 |
|
return false; |
| 1184 |
|
} |
| 1185 |
|
if (!is_int($this->m_type) || $this->m_type < self::TYPE_APNS_NOTIFICATION || $this->m_type > self::TYPE_REMOTE_NOTIFICATION) { |
| 1186 |
|
return false; |
| 1187 |
|
} |
| 1188 |
|
|
| 1189 |
|
foreach ($this->m_acceptTimes as $value) { |
| 1190 |
|
if (!($value instanceof TimeInterval) || !$value->isValid()) |