Code Duplication    Length = 11-11 lines in 3 locations

class/publicWall.php 1 location

@@ 361-371 (lines=11) @@
358
     * @param string $username
359
     * @return string
360
     */
361
    public function GetSharingDiv($id, $priv, $permalink, $desc, $username)
362
    {
363
        if (1 != $priv) {
364
            $text = "<div style='display: none;' class='smallworld_bookmarks' id='share-page' name='share-page" . $id . "'>";
365
            $text .= "<span name='share-page" . $id . "' rel1='" . $desc . "' rel2= '" . $username . "' rel=" . $permalink . " id='basicBookmark' title='" . _SMALLWORLD_SHAREBOX_TITLE . "'>";
366
            $text .= '</span></div>';
367
        } else {
368
            $text = '';
369
        }
370
        return $text;
371
    }
372
373
    /**
374
     * @Parse update and comments array to template for public updates

class/PublicWallUpdates.php 1 location

@@ 375-385 (lines=11) @@
372
     * @param string $username
373
     * @return string
374
     */
375
    public function getSharingDiv($id, $priv, $permalink, $desc, $username)
376
    {
377
        $text = '';
378
        if (1 != $priv) {
379
            $text = "<div style='display: none;' class='smallworld_bookmarks' id='share-page' name='share-page" . $id . "'>";
380
            $text .= "<span name='share-page" . $id . "' rel1='" . $desc . "' rel2= '" . $username . "' rel=" . $permalink . " id='basicBookmark' title='" . _SMALLWORLD_SHAREBOX_TITLE . "'>";
381
            $text .= '</span></div>';
382
        }
383
384
        return $text;
385
    }
386
387
    /**
388
     * Parse update and comments array to template for public updates

class/wall.php 1 location

@@ 422-432 (lines=11) @@
419
     * @param string $username
420
     * @return string
421
     */
422
    public function GetSharingDiv($id, $priv, $permalink, $desc, $username)
423
    {
424
        if (1 != $priv) {
425
            $text = "<div style='display: none;' class='smallworld_bookmarks' id='share-page' name='share-page" . $id . "'>";
426
            $text .= "<span name='share-page" . $id . "' rel1='" . $desc . "' rel2= '" . $username . "' rel=" . $permalink . " id='basicBookmark' title='" . _SMALLWORLD_SHAREBOX_TITLE . "'>";
427
            $text .= '</span></div>';
428
        } else {
429
            $text = '';
430
        }
431
        return $text;
432
    }
433
434
    /**
435
     * @Parse update and comments array to template for public updates