Code Duplication    Length = 10-10 lines in 2 locations

core/request_stack/EE_Request.core.php 1 location

@@ 142-151 (lines=10) @@
139
     * @param bool $override_ee
140
     * @return    void
141
     */
142
    public function set($key, $value, $override_ee = false)
143
    {
144
        // don't allow "ee" to be overwritten unless explicitly instructed to do so
145
        if (
146
            $key !== 'ee'
147
            || ($key === 'ee' && empty($this->_params['ee']))
148
            || ($key === 'ee' && ! empty($this->_params['ee']) && $override_ee)
149
        ) {
150
            $this->_params[$key] = $value;
151
        }
152
    }
153
154

core/EE_Request_Handler.core.php 1 location

@@ 300-309 (lines=10) @@
297
	 * @param bool $override_ee
298
	 * @return    void
299
	 */
300
	public function set( $key, $value, $override_ee = false ) {
301
		// don't allow "ee" to be overwritten unless explicitly instructed to do so
302
		if (
303
			$key !== 'ee' ||
304
			( $key === 'ee' && empty( $this->_params['ee'] ))
305
			|| ( $key === 'ee' && ! empty( $this->_params['ee'] ) && $override_ee )
306
		) {
307
			$this->_params[ $key ] = $value;
308
		}
309
	}
310
311
312