dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecd0a5f
)
registration: Use null coalescing operator
author
MGChecker
<hgasuser@gmail.com>
Tue, 4 Sep 2018 01:39:41 +0000
(
03:39
+0200)
committer
Legoktm
<legoktm@member.fsf.org>
Tue, 4 Sep 2018 01:42:55 +0000
(
01:42
+0000)
Change-Id: Iba5df6fe8c647baaaff91df311efec22cca7e88f
includes/registration/ExtensionRegistry.php
patch
|
blob
|
history
diff --git
a/includes/registration/ExtensionRegistry.php
b/includes/registration/ExtensionRegistry.php
index
8429afa
..
1f8a27e
100644
(file)
--- a/
includes/registration/ExtensionRegistry.php
+++ b/
includes/registration/ExtensionRegistry.php
@@
-408,11
+408,7
@@
class ExtensionRegistry {
* @return array
*/
public function getAttribute( $name ) {
- if ( isset( $this->attributes[$name] ) ) {
- return $this->attributes[$name];
- } else {
- return [];
- }
+ return $this->attributes[$name] ?? [];
}
/**