Code Duplication    Length = 3-3 lines in 2 locations

core/EE_Request_Handler.core.php 1 location

@@ 317-319 (lines=3) @@
314
	 */
315
	public function set( $key, $value, $override_ee = false ) {
316
		// don't allow "ee" to be overwritten unless explicitly instructed to do so
317
		if ( $key != 'ee' || ( $key == 'ee' && empty( $this->_params['ee'] )) || ( $key == 'ee' && ! empty( $this->_params['ee'] ) && $override_ee )) {
318
			$this->_params[ $key ] = $value;
319
		}
320
	}
321
322

core/request_stack/EE_Request.core.php 1 location

@@ 72-74 (lines=3) @@
69
	 */
70
	public function set( $key, $value, $override_ee = FALSE ) {
71
		// don't allow "ee" to be overwritten unless explicitly instructed to do so
72
		if ( $key != 'ee' || ( $key == 'ee' && empty( $this->_params['ee'] )) || ( $key == 'ee' && ! empty( $this->_params['ee'] ) && $override_ee )) {
73
			$this->_params[ $key ] = $value;
74
		}
75
	}
76
77