Code Duplication    Length = 3-3 lines in 3 locations

core/admin/EE_Admin_Page.core.php 3 locations

@@ 2976-2978 (lines=3) @@
2973
		//first let's set individual error properties if doing_ajax and the properties aren't already set.
2974
		if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
2975
			$notices = EE_Error::get_notices( false );
2976
			if ( empty( $this->_template_args['success'] ) ) {
2977
				$this->_template_args['success'] = isset( $notices['success'] ) ? $notices['success'] : false;
2978
			}
2979
2980
			if ( empty( $this->_template_args['errors'] ) ) {
2981
				$this->_template_args['errors'] = isset( $notices['errors'] ) ? $notices['errors'] : false;
@@ 2980-2982 (lines=3) @@
2977
				$this->_template_args['success'] = isset( $notices['success'] ) ? $notices['success'] : false;
2978
			}
2979
2980
			if ( empty( $this->_template_args['errors'] ) ) {
2981
				$this->_template_args['errors'] = isset( $notices['errors'] ) ? $notices['errors'] : false;
2982
			}
2983
2984
			if ( empty( $this->_template_args['attention'] ) ) {
2985
				$this->_template_args['attention'] = isset( $notices['attention'] ) ? $notices['attention'] : false;
@@ 2984-2986 (lines=3) @@
2981
				$this->_template_args['errors'] = isset( $notices['errors'] ) ? $notices['errors'] : false;
2982
			}
2983
2984
			if ( empty( $this->_template_args['attention'] ) ) {
2985
				$this->_template_args['attention'] = isset( $notices['attention'] ) ? $notices['attention'] : false;
2986
			}
2987
		}
2988
2989
		$this->_template_args['notices'] = EE_Error::get_notices();