Code Duplication    Length = 10-10 lines in 2 locations

class/PublicWallUpdates.php 1 location

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

class/WallUpdates.php 1 location

@@ 415-424 (lines=10) @@
412
     * @param int $priv
413
     * @return string
414
     */
415
    public function GetSharing($id, $priv)
416
    {
417
        if (1 != $priv) {
418
            $text = " | <span class='smallworld_share' id='smallworld_share'>";
419
            $text .= "<a class='share' id='share-page" . $id . "' href='javascript:void(0);'>" . _SMALLWORLD_SHARELINK . '</a></span>';
420
        } else {
421
            $text = '';
422
        }
423
424
        return $text;
425
    }
426
427
    /**