Code Duplication    Length = 4-6 lines in 2 locations

core/modules/node/model/NodeModel.php 2 locations

@@ 261-266 (lines=6) @@
258
                    strtotime($start) > time()
259
                ) {
260
                    return "<i class='icon-time' title='Queued' />";
261
                } else {
262
                    if (($end = $this->get('published_end')) &&
263
                        strtotime($end) < time()
264
                    ) {
265
                        return "<i class='icon-remove' title='Expired' />";
266
                    } else {
267
                        return "<i class='icon-ok' title='Yes' />";
268
                    }
269
                }
@@ 526-529 (lines=4) @@
523
            ) {
524
                return false;
525
            }
526
            if (($end = $this->get('published_end')) &&
527
                strtotime($end) < time()
528
            ) {
529
                return false;
530
            }
531
        }
532