dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use PHP 7 '??' operator instead of if-then-else
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
checkStorage.php
diff --git
a/maintenance/storage/checkStorage.php
b/maintenance/storage/checkStorage.php
index
0dfb834
..
a95789d
100644
(file)
--- a/
maintenance/storage/checkStorage.php
+++ b/
maintenance/storage/checkStorage.php
@@
-29,11
+29,7
@@
if ( !defined( 'MEDIAWIKI' ) ) {
$cs = new CheckStorage;
$fix = isset( $options['fix'] );
- if ( isset( $args[0] ) ) {
- $xml = $args[0];
- } else {
- $xml = false;
- }
+ $xml = $args[0] ?? false;
$cs->check( $fix, $xml );
}