Fix code style for type hints
authorJoshua Rüsweg <josh@bastelstu.be>
Tue, 10 Apr 2018 11:26:47 +0000 (13:26 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Tue, 10 Apr 2018 11:26:47 +0000 (13:26 +0200)
See #2508

wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php

index e990e860cae9c4a9f11df200d6f6408fc5134bf8..00c73dffeb66f3faa5e02ba62b8dcd21b7252560 100644 (file)
@@ -62,7 +62,7 @@ class ReactionType extends DatabaseObject {
        /**
         * @inheritDoc
         */
-       public function getTitle():string {
+       public function getTitle(): string {
                return WCF::getLanguage()->get($this->reactionTitle);
        }
        
@@ -71,7 +71,7 @@ class ReactionType extends DatabaseObject {
         * 
         * @return      string
         */
-       public function renderIcon():string {
+       public function renderIcon(): string {
                switch ($this->iconType) {
                        case self::ICON_TYPE_ICON: {
                                return WCF::getTPL()->fetch('reactionTypeIcon', 'wcf', [