Skip to content

Commit ef80196

Browse files
authored
Merge pull request #101 from woolfg/bot/autofix
🤖 Automatic code style fixes
2 parents a62ce74 + 41fa3ce commit ef80196

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

action/editcommit.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,18 @@ private function commitFile($filePath, $message)
117117
}
118118
}
119119

120-
private function getUserInfo($key) {
121-
if (isset($GLOBALS['USERINFO'][$key])) {
122-
return $GLOBALS['USERINFO'][$key];
123-
}
124-
return '';
120+
private function getUserInfo($key)
121+
{
122+
return $GLOBALS['USERINFO'][$key] ?? '';
125123
}
126-
127-
private function getAuthor() {
124+
125+
private function getAuthor()
126+
{
128127
return $this->getUserInfo('name');
129128
}
130-
131-
private function getAuthorMail() {
129+
130+
private function getAuthorMail()
131+
{
132132
return $this->getUserInfo('mail');
133133
}
134134

0 commit comments

Comments
 (0)