Code Duplication    Length = 7-7 lines in 2 locations

src/Notifynder/Handler/Dispatcher.php 1 location

@@ 131-137 (lines=7) @@
128
     * @param $notificationsResult
129
     * @return bool
130
     */
131
    public function hasNotificationToSend($notificationsResult)
132
    {
133
        return is_array($notificationsResult)
134
                and count($notificationsResult) > 0
135
                and $notificationsResult[0] !== false
136
                and count($notificationsResult[0]) > 0;
137
    }
138
139
    /**
140
     * Get Event name.

src/Notifynder/Handler/NotifynderHandler.php 1 location

@@ 114-120 (lines=7) @@
111
     * @param $notificationsResult
112
     * @return bool
113
     */
114
    protected function hasNotificationToSend($notificationsResult)
115
    {
116
        return is_array($notificationsResult)
117
        and count($notificationsResult) > 0
118
        and $notificationsResult[0] !== false
119
        and count($notificationsResult[0]) > 0;
120
    }
121
}
122