Code Duplication    Length = 8-16 lines in 2 locations

core/domain/services/wp_queries/EventListQuery.php 1 location

@@ 214-221 (lines=8) @@
211
     * @param string $event_list_css
212
     * @return string
213
     */
214
    public function event_list_css($event_list_css = '')
215
    {
216
        $event_list_css .= ! empty($event_list_css) ? ' ' : '';
217
        $event_list_css .= ! empty($this->css_class) ? $this->css_class : '';
218
        $event_list_css .= ! empty($event_list_css) ? ' ' : '';
219
        $event_list_css .= ! empty($this->category_slug) ? $this->category_slug : '';
220
        return $event_list_css;
221
    }
222
223
}
224
// End of file EventListQuery.php

core/EE_Deprecated.core.php 1 location

@@ 1157-1172 (lines=16) @@
1154
     * @param string $event_list_css
1155
     * @return string
1156
     */
1157
    public function event_list_css($event_list_css = '')
1158
    {
1159
        $event_list_css .= ! empty($event_list_css)
1160
            ? ' '
1161
            : '';
1162
        $event_list_css .= ! empty($this->css_class)
1163
            ? $this->css_class
1164
            : '';
1165
        $event_list_css .= ! empty($event_list_css)
1166
            ? ' '
1167
            : '';
1168
        $event_list_css .= ! empty($this->category_slug)
1169
            ? $this->category_slug
1170
            : '';
1171
        return $event_list_css;
1172
    }
1173
1174
}
1175