mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-23 02:35:23 +00:00
apply null coalescing operator, strict equality, avoid aliases, prefer empty
This commit is contained in:
parent
fc4a92e6a4
commit
b4db5f8e57
17 changed files with 86 additions and 104 deletions
|
|
@ -40,7 +40,7 @@ class FormatV2
|
|||
}
|
||||
|
||||
// Make sure no additionnal keys were added.
|
||||
if (count(array_keys($message)) != count($required_keys)) {
|
||||
if (count(array_keys($message)) !== count($required_keys)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue