Code Duplication    Length = 5-5 lines in 2 locations

app/Support/Tencent/XgPush/XingeApp.php 2 locations

@@ 1023-1027 (lines=5) @@
1020
        if (is_string($this->m_raw) && ! empty($this->raw)) {
1021
            return true;
1022
        }
1023
        if (! isset($this->m_title)) {
1024
            $this->m_title = '';
1025
        } elseif (! is_string($this->m_title) || empty($this->m_title)) {
1026
            return false;
1027
        }
1028
        if (! isset($this->m_content)) {
1029
            $this->m_content = '';
1030
        } elseif (! is_string($this->m_content) || empty($this->m_content)) {
@@ 1028-1032 (lines=5) @@
1025
        } elseif (! is_string($this->m_title) || empty($this->m_title)) {
1026
            return false;
1027
        }
1028
        if (! isset($this->m_content)) {
1029
            $this->m_content = '';
1030
        } elseif (! is_string($this->m_content) || empty($this->m_content)) {
1031
            return false;
1032
        }
1033
        if (! is_int($this->m_type) || $this->m_type < self::TYPE_NOTIFICATION || $this->m_type > self::TYPE_MESSAGE) {
1034
            return false;
1035
        }