dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Safe replacement of a lot of `!count()` with `=== []`
[lhc/web/wiklou.git]
/
includes
/
libs
/
lockmanager
/
PostgreSqlLockManager.php
diff --git
a/includes/libs/lockmanager/PostgreSqlLockManager.php
b/includes/libs/lockmanager/PostgreSqlLockManager.php
index
65c6993
..
fd3ffa5
100644
(file)
--- a/
includes/libs/lockmanager/PostgreSqlLockManager.php
+++ b/
includes/libs/lockmanager/PostgreSqlLockManager.php
@@
-18,7
+18,7
@@
class PostgreSqlLockManager extends DBLockManager {
protected function doGetLocksOnServer( $lockSrv, array $paths, $type ) {
$status = StatusValue::newGood();
- if (
!count( $paths )
) {
+ if (
$paths === []
) {
return $status; // nothing to lock
}