Code Duplication    Length = 3-3 lines in 3 locations

core/admin/EE_Admin_Page.core.php 3 locations

@@ 3624-3626 (lines=3) @@
3621
        // first let's set individual error properties if doing_ajax and the properties aren't already set.
3622
        if (defined('DOING_AJAX') && DOING_AJAX) {
3623
            $notices = EE_Error::get_notices(false);
3624
            if (empty($this->_template_args['success'])) {
3625
                $this->_template_args['success'] = isset($notices['success']) ? $notices['success'] : false;
3626
            }
3627
            if (empty($this->_template_args['errors'])) {
3628
                $this->_template_args['errors'] = isset($notices['errors']) ? $notices['errors'] : false;
3629
            }
@@ 3627-3629 (lines=3) @@
3624
            if (empty($this->_template_args['success'])) {
3625
                $this->_template_args['success'] = isset($notices['success']) ? $notices['success'] : false;
3626
            }
3627
            if (empty($this->_template_args['errors'])) {
3628
                $this->_template_args['errors'] = isset($notices['errors']) ? $notices['errors'] : false;
3629
            }
3630
            if (empty($this->_template_args['attention'])) {
3631
                $this->_template_args['attention'] = isset($notices['attention']) ? $notices['attention'] : false;
3632
            }
@@ 3630-3632 (lines=3) @@
3627
            if (empty($this->_template_args['errors'])) {
3628
                $this->_template_args['errors'] = isset($notices['errors']) ? $notices['errors'] : false;
3629
            }
3630
            if (empty($this->_template_args['attention'])) {
3631
                $this->_template_args['attention'] = isset($notices['attention']) ? $notices['attention'] : false;
3632
            }
3633
        }
3634
        $this->_template_args['notices'] = EE_Error::get_notices();
3635
        // IF this isn't ajax we need to create a transient for the notices using the route (however, overridden if $sticky_notices == true)