- public function checkRateLimit($fingerPrintInfo): bool
+ /**
+ * Checks if the user has uploaded more than 100 files in the last minute, if so it returns true, if not it updates the database with the new file count and
+ * timestamp
+ *
+ * @param $fingerPrintInfo array An array containing the following:
+ *
+ * @return bool A boolean value.
+ */
+ public function checkRateLimit(array $fingerPrintInfo): bool
{
$q = $this->DB->prepare(
'SELECT files, time, iphash, COUNT(*) AS count FROM ratelimit WHERE iphash = (:iphash)'