Add explicit `return null;` statements
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / box / Box.class.php
index 25877a1909455f07ae021ba0be693cfd054789c4..2e00f9522c4150a2bf6a34d87b009c081d618432 100644 (file)
@@ -386,7 +386,7 @@ class Box extends DatabaseObject
     public function getImage()
     {
         if ($this->boxType === 'menu') {
-            return;
+            return null;
         }
 
         if ($this->image === null) {
@@ -405,7 +405,7 @@ class Box extends DatabaseObject
         }
 
         if ($this->image === null || !$this->image->isAccessible()) {
-            return;
+            return null;
         }
 
         return $this->image;