aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/ArrayResult.php
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-08-28 10:44:18 +0200
committerLouis Chemineau <louis@chmn.me>2024-08-28 10:44:18 +0200
commit2574cbfa619bc8650e865f6fda064cd22c6b2d0e (patch)
treea14ce0f2303e7e309225a403c8cfeb9b753ce124 /lib/private/DB/ArrayResult.php
parent9d0248545d85d6a680f2c9507f1bcfe13e889535 (diff)
downloadnextcloud-server-2574cbfa619bc8650e865f6fda064cd22c6b2d0e.tar.gz
nextcloud-server-2574cbfa619bc8650e865f6fda064cd22c6b2d0e.zip
chore: Apply php:cs recommendations
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib/private/DB/ArrayResult.php')
-rw-r--r--lib/private/DB/ArrayResult.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/ArrayResult.php b/lib/private/DB/ArrayResult.php
index 5d094533a3f..b567ad23d57 100644
--- a/lib/private/DB/ArrayResult.php
+++ b/lib/private/DB/ArrayResult.php
@@ -37,7 +37,7 @@ class ArrayResult implements IResult {
PDO::FETCH_ASSOC => $row,
PDO::FETCH_NUM => array_values($row),
PDO::FETCH_COLUMN => current($row),
- default => throw new \InvalidArgumentException("Fetch mode not supported for array result"),
+ default => throw new \InvalidArgumentException('Fetch mode not supported for array result'),
};
}
@@ -51,7 +51,7 @@ class ArrayResult implements IResult {
PDO::FETCH_COLUMN => array_map(function ($row) {
return current($row);
}, $this->rows),
- default => throw new \InvalidArgumentException("Fetch mode not supported for array result"),
+ default => throw new \InvalidArgumentException('Fetch mode not supported for array result'),
};
}