Code Duplication    Length = 7-7 lines in 2 locations

common/models/Media.php 1 location

@@ 175-181 (lines=7) @@
172
    /**
173
     * Get comment status as array
174
     */
175
    public function getCommentStatuses()
176
    {
177
        return [
178
            self::COMMENT_STATUS_OPEN => Yii::t('writesdown', 'Open'),
179
            self::COMMENT_STATUS_CLOSE => Yii::t('writesdown', 'Close'),
180
        ];
181
    }
182
183
    /**
184
     * Get meta for current media.

common/models/Post.php 1 location

@@ 211-217 (lines=7) @@
208
    /**
209
     * Get comment status as array
210
     */
211
    public function getCommentStatuses()
212
    {
213
        return [
214
            self::COMMENT_STATUS_OPEN => Yii::t('writesdown', 'Open'),
215
            self::COMMENT_STATUS_CLOSE => Yii::t('writesdown', 'Close'),
216
        ];
217
    }
218
219
220
    /**