@@ -49,7 +49,9 @@ discard block |
||
49 | 49 | public static function get_profile_picture() |
50 | 50 | { |
51 | 51 | if (!empty(self::get_profile())) { |
52 | - if (isset(self::get_profile()['picture'])) return self::get_profile()['picture']; |
|
52 | + if (isset(self::get_profile()['picture'])) { |
|
53 | + return self::get_profile()['picture']; |
|
54 | + } |
|
53 | 55 | } |
54 | 56 | return 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/480px-No_image_available.svg.png'; |
55 | 57 | } |
@@ -57,7 +59,9 @@ discard block |
||
57 | 59 | public static function get_profile_name() |
58 | 60 | { |
59 | 61 | if (!empty(self::get_profile())) { |
60 | - if (isset(self::get_profile()['name'])) return self::get_profile()['name']; |
|
62 | + if (isset(self::get_profile()['name'])) { |
|
63 | + return self::get_profile()['name']; |
|
64 | + } |
|
61 | 65 | } |
62 | 66 | return 'Login Required'; |
63 | 67 | } |