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

@@ 355-364 (lines=10) @@
352
     * @param int $priv
353
     * @return string
354
     */
355
    public function getSharing($id, $priv)
356
    {
357
        $text = '';
358
        if (1 !== $priv) {
359
            $text = " | <span class='smallworld_share' id='smallworld_share'>";
360
            $text .= "<a class='share' id='share-page" . $id . "' href='javascript:void(0);'>" . _SMALLWORLD_SHARELINK . '</a></span>';
361
        }
362
363
        return $text;
364
    }
365
366
    /**
367
     * @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

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