maintenance/convertExtensionToRegistration.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 129-132 (lines=4) @@
                                 | 
                            
                                                            
                                    | 126 | 
                                     | 
                                    		// Move some keys to the top  | 
                                
                                                            
                                    | 127 | 
                                     | 
                                    		$out = [];  | 
                                
                                                            
                                    | 128 | 
                                     | 
                                    		foreach ( $this->promote as $key ) { | 
                                
                                                            
                                    | 129 | 
                                     | 
                                    			if ( isset( $this->json[$key] ) ) { | 
                                
                                                            
                                    | 130 | 
                                     | 
                                    				$out[$key] = $this->json[$key];  | 
                                
                                                            
                                    | 131 | 
                                     | 
                                    				unset( $this->json[$key] );  | 
                                
                                                            
                                    | 132 | 
                                     | 
                                    			}  | 
                                
                                                            
                                    | 133 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 134 | 
                                     | 
                                    		$out += $this->json;  | 
                                
                                                            
                                    | 135 | 
                                     | 
                                    		// Put this at the bottom  | 
                                
                                                                        
                 
                                                            
                    
includes/WebRequest.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 419-424 (lines=6) @@
                                 | 
                            
                                                            
                                    | 416 | 
                                     | 
                                    	 * @return mixed Old value if one was present, null otherwise  | 
                                
                                                            
                                    | 417 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 418 | 
                                     | 
                                    	public function unsetVal( $key ) { | 
                                
                                                            
                                    | 419 | 
                                     | 
                                    		if ( !isset( $this->data[$key] ) ) { | 
                                
                                                            
                                    | 420 | 
                                     | 
                                    			$ret = null;  | 
                                
                                                            
                                    | 421 | 
                                     | 
                                    		} else { | 
                                
                                                            
                                    | 422 | 
                                     | 
                                    			$ret = $this->data[$key];  | 
                                
                                                            
                                    | 423 | 
                                     | 
                                    			unset( $this->data[$key] );  | 
                                
                                                            
                                    | 424 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 425 | 
                                     | 
                                    		return $ret;  | 
                                
                                                            
                                    | 426 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 427 | 
                                     | 
                                     |