wiki.techinc.nl/includes/filebackend/lockmanager
Thiemo Kreuz 46f26dff03 Same code style and formatting for exists-style SQL queries
Queries that query a value "1" are expected to return either
that "1" (possibly as a string), or false. It's safe to simply
cast this to bool and use it as it is.

Queries for COUNT(*) are expected to return that number,
possibly as a string. It's not possible for such a query to
return false. And even if, casting to 0 is fine.

I found an existing code style where the table name and the
"1" are on the same line as the selectField() method name, and
applied it to all similar queries.

Change-Id: I9453196281871c03ef03f653f43762eb9284342f
2021-08-12 11:37:58 +02:00
..
LockManagerGroup.php
LockManagerGroupFactory.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MySqlLockManager.php Same code style and formatting for exists-style SQL queries 2021-08-12 11:37:58 +02:00