aboutsummaryrefslogtreecommitdiff
path: root/lib/models/SimpleORMap.class.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/SimpleORMap.class.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/SimpleORMap.class.php')
-rw-r--r--lib/models/SimpleORMap.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/models/SimpleORMap.class.php b/lib/models/SimpleORMap.class.php
index 92cdf42..3eeac13 100644
--- a/lib/models/SimpleORMap.class.php
+++ b/lib/models/SimpleORMap.class.php
@@ -1885,7 +1885,7 @@ class SimpleORMap implements ArrayAccess, Countable, IteratorAggregate
* is instead invoked
*
* @param null|array|string $only_these
- * @return number addition of all return values, false if none was called
+ * @return int|false number addition of all return values, false if none was called
*/
protected function storeRelations($only_these = null)
{
@@ -1955,9 +1955,9 @@ class SimpleORMap implements ArrayAccess, Countable, IteratorAggregate
WHERE ". join(" AND ", $where_query));
return true;
}
- } else {
- return false;
}
+
+ return false;
}
/**