Code Duplication    Length = 8-8 lines in 2 locations

src/lib/Zikula/Bundle/CoreBundle/Twig/Extension/CoreExtension.php 2 locations

@@ 266-273 (lines=8) @@
263
     * @param integer $maxLength If set then user names are truncated to x chars
264
     * @return string The output
265
     */
266
    public function profileLinkByUserId($userId, $class = '', $image = '', $maxLength = 0)
267
    {
268
        if (empty($userId) || (int)$userId < 1) {
269
            return $userId;
270
        }
271
272
        return $this->determineProfileLink((int)$userId, null, $class, $image, $maxLength);
273
    }
274
275
    /**
276
     * Create a link to a users profile from the username.
@@ 293-300 (lines=8) @@
290
     * @param integer $maxLength If set then user names are truncated to x chars
291
     * @return string The output
292
     */
293
    public function profileLinkByUserName($userName, $class = '', $image = '', $maxLength = 0)
294
    {
295
        if (empty($userName)) {
296
            return $userName;
297
        }
298
299
        return $this->determineProfileLink(null, $userName, $class, $image, $maxLength);
300
    }
301
302
    /**
303
     * Internal function used by profileLinkByUserId() and profileLinkByUserName().