aboutsummaryrefslogtreecommitdiff
path: root/lib/models/FileRef.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-06 13:25:06 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-06 13:25:06 +0000
commit89512696839235e4b3d2ca135917ae038ff5fc3c (patch)
treee7870c1f8313dc39836745408dbb7a01f73a9b4e /lib/models/FileRef.php
parenta5813cb77af590aaf2c49aea66f9d33d47b066f6 (diff)
fixes 'Method/function should return XY but return statement is missing', fixes #1278
Closes #1278 Merge request studip/studip!783
Diffstat (limited to 'lib/models/FileRef.php')
-rw-r--r--lib/models/FileRef.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/models/FileRef.php b/lib/models/FileRef.php
index a3f9a3a..a8f5da2 100644
--- a/lib/models/FileRef.php
+++ b/lib/models/FileRef.php
@@ -192,7 +192,7 @@ class FileRef extends SimpleORMap implements PrivacyObject, FeedbackRange
/**
* This method increments the download counter of the FileRef.
*
- * @return The number of rows of the file_refs table that have been altered.
+ * @return int The number of rows of the file_refs table that have been altered.
*/
public function incrementDownloadCounter()
{
@@ -204,6 +204,8 @@ class FileRef extends SimpleORMap implements PrivacyObject, FeedbackRange
WHERE {$where_query}";
return DBManager::get()->exec($query);
}
+
+ return 0;
}
/**