Code Duplication    Length = 11-11 lines in 4 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

@@ 363-373 (lines=11) @@
360
     * @param string $username
361
     * @return string
362
     */
363
    public function GetSharingDiv($id, $priv, $permalink, $desc, $username)
364
    {
365
        if (1 != $priv) {
366
            $text = "<div style='display: none;' class='smallworld_bookmarks' id='share-page' name='share-page" . $id . "'>";
367
            $text .= "<span name='share-page" . $id . "' rel1='" . $desc . "' rel2= '" . $username . "' rel=" . $permalink . " id='basicBookmark' title='" . _SMALLWORLD_SHAREBOX_TITLE . "'>";
368
            $text .= '</span></div>';
369
        } else {
370
            $text = '';
371
        }
372
        return $text;
373
    }
374
375
    /**
376
     * @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

class/WallUpdates.php 1 location

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