Code Duplication    Length = 10-10 lines in 4 locations

class/publicWall.php 1 location

@@ 341-350 (lines=10) @@
338
     * @param int $priv
339
     * @return string
340
     */
341
    public function GetSharing($id, $priv)
342
    {
343
        if (1 != $priv) {
344
            $text = " | <span class='smallworld_share' id='smallworld_share'>";
345
            $text .= "<a class='share' id='share-page" . $id . "' href='javascript:void(0);'>" . _SMALLWORLD_SHARELINK . '</a></span>';
346
        } else {
347
            $text = '';
348
        }
349
        return $text;
350
    }
351
352
    /**
353
     * @Get content for sharing div

class/PublicWallUpdates.php 1 location

@@ 343-352 (lines=10) @@
340
     * @param int $priv
341
     * @return string
342
     */
343
    public function GetSharing($id, $priv)
344
    {
345
        if (1 != $priv) {
346
            $text = " | <span class='smallworld_share' id='smallworld_share'>";
347
            $text .= "<a class='share' id='share-page" . $id . "' href='javascript:void(0);'>" . _SMALLWORLD_SHARELINK . '</a></span>';
348
        } else {
349
            $text = '';
350
        }
351
        return $text;
352
    }
353
354
    /**
355
     * @Get content for sharing div

class/wall.php 1 location

@@ 402-411 (lines=10) @@
399
     * @param int $priv
400
     * @return string
401
     */
402
    public function GetSharing($id, $priv)
403
    {
404
        if (1 != $priv) {
405
            $text = " | <span class='smallworld_share' id='smallworld_share'>";
406
            $text .= "<a class='share' id='share-page" . $id . "' href='javascript:void(0);'>" . _SMALLWORLD_SHARELINK . '</a></span>';
407
        } else {
408
            $text = '';
409
        }
410
        return $text;
411
    }
412
413
    /**
414
     * @Get content for sharing div

class/WallUpdates.php 1 location

@@ 407-416 (lines=10) @@
404
     * @param int $priv
405
     * @return string
406
     */
407
    public function GetSharing($id, $priv)
408
    {
409
        if (1 != $priv) {
410
            $text = " | <span class='smallworld_share' id='smallworld_share'>";
411
            $text .= "<a class='share' id='share-page" . $id . "' href='javascript:void(0);'>" . _SMALLWORLD_SHARELINK . '</a></span>';
412
        } else {
413
            $text = '';
414
        }
415
        return $text;
416
    }
417
418
    /**
419
     * @Get content for sharing div