Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Error.core.php 2 locations

@@ 868-872 (lines=5) @@
865
        }
866
        $print_scripts = EE_Error::combineExistingAndNewNotices();
867
        // check for success messages
868
        if (self::$_espresso_notices['success'] && ! empty(self::$_espresso_notices['success'])) {
869
            // combine messages
870
            $success_messages .= implode(self::$_espresso_notices['success'], '<br />');
871
            $print_scripts    = true;
872
        }
873
        // check for attention messages
874
        if (self::$_espresso_notices['attention'] && ! empty(self::$_espresso_notices['attention'])) {
875
            // combine messages
@@ 874-878 (lines=5) @@
871
            $print_scripts    = true;
872
        }
873
        // check for attention messages
874
        if (self::$_espresso_notices['attention'] && ! empty(self::$_espresso_notices['attention'])) {
875
            // combine messages
876
            $attention_messages .= implode(self::$_espresso_notices['attention'], '<br />');
877
            $print_scripts      = true;
878
        }
879
        // check for error messages
880
        if (self::$_espresso_notices['errors'] && ! empty(self::$_espresso_notices['errors'])) {
881
            $error_messages .= count(self::$_espresso_notices['errors']) > 1