Code Duplication    Length = 4-6 lines in 2 locations

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

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