@@ -35,16 +35,16 @@ discard block |
||
35 | 35 | protected $phpbb_root_path; |
36 | 36 | |
37 | 37 | /** |
38 | - * Constructor |
|
39 | - * |
|
40 | - * @param \phpbb\config\config $config Config Object |
|
41 | - * @param \phpbb\template\template $template Template object |
|
42 | - * @param \phpbb\user $user User object |
|
43 | - * @param \phpbb\request\request $request Request object |
|
44 | - * @param \phpbb\cache\driver\driver_interface $cache Cache driver interface |
|
45 | - * @param string $phpbb_root_path phpbb_root_path |
|
46 | - * @access public |
|
47 | - */ |
|
38 | + * Constructor |
|
39 | + * |
|
40 | + * @param \phpbb\config\config $config Config Object |
|
41 | + * @param \phpbb\template\template $template Template object |
|
42 | + * @param \phpbb\user $user User object |
|
43 | + * @param \phpbb\request\request $request Request object |
|
44 | + * @param \phpbb\cache\driver\driver_interface $cache Cache driver interface |
|
45 | + * @param string $phpbb_root_path phpbb_root_path |
|
46 | + * @access public |
|
47 | + */ |
|
48 | 48 | public function __construct(\phpbb\config\config $config, \phpbb\template\template $template, \phpbb\user $user, \phpbb\request\request $request, \phpbb\cache\driver\driver_interface $cache, $phpbb_root_path) |
49 | 49 | { |
50 | 50 | $this->config = $config; |
@@ -57,12 +57,12 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * Assign functions defined in this class to event listeners in the core |
|
61 | - * |
|
62 | - * @return array |
|
63 | - * @static |
|
64 | - * @access public |
|
65 | - */ |
|
60 | + * Assign functions defined in this class to event listeners in the core |
|
61 | + * |
|
62 | + * @return array |
|
63 | + * @static |
|
64 | + * @access public |
|
65 | + */ |
|
66 | 66 | public static function getSubscribedEvents() |
67 | 67 | { |
68 | 68 | return array( |
@@ -73,12 +73,12 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * Display the first post as Open Graph description |
|
77 | - * |
|
78 | - * @param object $event The event object |
|
79 | - * @return null |
|
80 | - * @access public |
|
81 | - */ |
|
76 | + * Display the first post as Open Graph description |
|
77 | + * |
|
78 | + * @param object $event The event object |
|
79 | + * @return null |
|
80 | + * @access public |
|
81 | + */ |
|
82 | 82 | public function display_og_description($event) |
83 | 83 | { |
84 | 84 | if (empty($this->description)) |
@@ -93,12 +93,12 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * Display Social Media Buttons at the index page |
|
97 | - * |
|
98 | - * @param object $event The event object |
|
99 | - * @return null |
|
100 | - * @access public |
|
101 | - */ |
|
96 | + * Display Social Media Buttons at the index page |
|
97 | + * |
|
98 | + * @param object $event The event object |
|
99 | + * @return null |
|
100 | + * @access public |
|
101 | + */ |
|
102 | 102 | public function display_on_index($event) |
103 | 103 | { |
104 | 104 | $url = generate_board_url(); |
@@ -135,12 +135,12 @@ discard block |
||
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
138 | - * Display Social Media Buttons at topics page |
|
139 | - * |
|
140 | - * @param object $event The event object |
|
141 | - * @return null |
|
142 | - * @access public |
|
143 | - */ |
|
138 | + * Display Social Media Buttons at topics page |
|
139 | + * |
|
140 | + * @param object $event The event object |
|
141 | + * @return null |
|
142 | + * @access public |
|
143 | + */ |
|
144 | 144 | public function display_on_viewtopic($event) |
145 | 145 | { |
146 | 146 | $enabled_forums = isset($this->config['socialbuttons_enable_forums']) ? explode(',', $this->config['socialbuttons_enable_forums']) : array(); |
@@ -203,12 +203,12 @@ discard block |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
206 | - * Get the number of shares |
|
207 | - * |
|
208 | - * @param string $url The URL to get the shares for |
|
209 | - * @return array |
|
210 | - * @access private |
|
211 | - */ |
|
206 | + * Get the number of shares |
|
207 | + * |
|
208 | + * @param string $url The URL to get the shares for |
|
209 | + * @return array |
|
210 | + * @access private |
|
211 | + */ |
|
212 | 212 | private function get_share_count($url) |
213 | 213 | { |
214 | 214 | $cache_time = isset($this->config['socialbuttons_cachetime']) ? $this->config['socialbuttons_cachetime'] : 0; |