maintenance/convertExtensionToRegistration.php 1 location
|
@@ 142-145 (lines=4) @@
|
139 |
|
// Move some keys to the top |
140 |
|
$out = []; |
141 |
|
foreach ( $this->promote as $key ) { |
142 |
|
if ( isset( $this->json[$key] ) ) { |
143 |
|
$out[$key] = $this->json[$key]; |
144 |
|
unset( $this->json[$key] ); |
145 |
|
} |
146 |
|
} |
147 |
|
$out += $this->json; |
148 |
|
// Put this at the bottom |
includes/WebRequest.php 1 location
|
@@ 469-474 (lines=6) @@
|
466 |
|
* @return mixed Old value if one was present, null otherwise |
467 |
|
*/ |
468 |
|
public function unsetVal( $key ) { |
469 |
|
if ( !isset( $this->data[$key] ) ) { |
470 |
|
$ret = null; |
471 |
|
} else { |
472 |
|
$ret = $this->data[$key]; |
473 |
|
unset( $this->data[$key] ); |
474 |
|
} |
475 |
|
return $ret; |
476 |
|
} |
477 |
|
|