diff options
author | Fomafix <fomafix@googlemail.com> | 2018-06-20 07:26:57 +0200 |
---|---|---|
committer | Aaron Schulz <aschulz@wikimedia.org> | 2018-07-10 20:03:17 +0000 |
commit | 6866cfec3731409994b3edf857504e8674c00a8e (patch) | |
tree | cefb09c02112dc02ac355c367895c2db2eddca85 /includes/logging/LogEntry.php | |
parent | 436f96e50be384c8fcd1f1938296f1398726148d (diff) | |
download | mediawikicore-6866cfec3731409994b3edf857504e8674c00a8e.tar.gz mediawikicore-6866cfec3731409994b3edf857504e8674c00a8e.zip |
Simplify PHP by using ?? and ?:
Also remove not necessary surrounding parentheses.
Change-Id: I0eb5c9c1bdfb09a800258379cdcefb5fd4d3d21c
Diffstat (limited to 'includes/logging/LogEntry.php')
-rw-r--r-- | includes/logging/LogEntry.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index e9e338dc3a9e..b329587b67ca 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -821,7 +821,7 @@ class ManualLogEntry extends LogEntryBase { } public function getTimestamp() { - $ts = $this->timestamp !== null ? $this->timestamp : wfTimestampNow(); + $ts = $this->timestamp ?? wfTimestampNow(); return wfTimestamp( TS_MW, $ts ); } |