]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Entity.php
Added audit log interface
[bookstack] / app / Entities / Entity.php
index 6a5894cacb91941115e6e01225fd2aa5b100c89b..120290d8ff12317529bd9d60d05519189098d0c8 100644 (file)
@@ -238,10 +238,8 @@ class Entity extends Ownable
 
     /**
      * Gets a limited-length version of the entities name.
-     * @param int $length
-     * @return string
      */
-    public function getShortName($length = 25)
+    public function getShortName(int $length = 25): string
     {
         if (mb_strlen($this->name) <= $length) {
             return $this->name;