We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62ce74 commit 41fa3ceCopy full SHA for 41fa3ce
action/editcommit.php
@@ -117,18 +117,18 @@ private function commitFile($filePath, $message)
117
}
118
119
120
- private function getUserInfo($key) {
121
- if (isset($GLOBALS['USERINFO'][$key])) {
122
- return $GLOBALS['USERINFO'][$key];
123
- }
124
- return '';
+ private function getUserInfo($key)
+ {
+ return $GLOBALS['USERINFO'][$key] ?? '';
125
126
-
127
- private function getAuthor() {
+
+ private function getAuthor()
128
return $this->getUserInfo('name');
129
130
131
- private function getAuthorMail() {
+ private function getAuthorMail()
132
return $this->getUserInfo('mail');
133
134
0 commit comments