mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 02:14:06 +02:00
run lint
This commit is contained in:
parent
3e22e36a79
commit
7320711a36
23 changed files with 36 additions and 81 deletions
|
|
@ -7,7 +7,6 @@ namespace Demostf\API\Providers;
|
|||
use Demostf\API\Data\SteamUser;
|
||||
use Demostf\API\Data\User;
|
||||
use Doctrine\DBAL\Connection;
|
||||
use function is_array;
|
||||
use PDO;
|
||||
use RandomLib\Generator;
|
||||
use SteamId;
|
||||
|
|
@ -108,7 +107,7 @@ class UserProvider extends BaseProvider {
|
|||
->setMaxResults(1);
|
||||
|
||||
$result = $query->execute()->fetch();
|
||||
if (is_array($result)) {
|
||||
if (\is_array($result)) {
|
||||
return $result;
|
||||
} else {
|
||||
return null;
|
||||
|
|
@ -116,8 +115,6 @@ class UserProvider extends BaseProvider {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $search
|
||||
*
|
||||
* @return SteamUser[]
|
||||
*/
|
||||
public function search(string $search): array {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue