Code Duplication    Length = 10-10 lines in 2 locations

class/PublicWallUpdates.php 1 location

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

class/WallUpdates.php 1 location

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