@@ -16,23 +16,23 @@ |
||
16 | 16 | class m1_initial_data extends \phpbb\db\migration\migration |
17 | 17 | { |
18 | 18 | /** |
19 | - * Assign migration file dependencies for this migration |
|
20 | - * |
|
21 | - * @return array Array of migration files |
|
22 | - * @static |
|
23 | - * @access public |
|
24 | - */ |
|
19 | + * Assign migration file dependencies for this migration |
|
20 | + * |
|
21 | + * @return array Array of migration files |
|
22 | + * @static |
|
23 | + * @access public |
|
24 | + */ |
|
25 | 25 | static public function depends_on() |
26 | 26 | { |
27 | 27 | return array('\phpbb\db\migration\data\v310\gold'); |
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
31 | - * Add Google Analytics data to the database. |
|
32 | - * |
|
33 | - * @return array Array of table data |
|
34 | - * @access public |
|
35 | - */ |
|
31 | + * Add Google Analytics data to the database. |
|
32 | + * |
|
33 | + * @return array Array of table data |
|
34 | + * @access public |
|
35 | + */ |
|
36 | 36 | public function update_data() |
37 | 37 | { |
38 | 38 | return array( |
@@ -27,13 +27,13 @@ discard block |
||
27 | 27 | protected $user; |
28 | 28 | |
29 | 29 | /** |
30 | - * Constructor |
|
31 | - * |
|
32 | - * @param \phpbb\config\config $config Config object |
|
33 | - * @param \phpbb\template\template $template Template object |
|
34 | - * @param \phpbb\user $user User object |
|
35 | - * @access public |
|
36 | - */ |
|
30 | + * Constructor |
|
31 | + * |
|
32 | + * @param \phpbb\config\config $config Config object |
|
33 | + * @param \phpbb\template\template $template Template object |
|
34 | + * @param \phpbb\user $user User object |
|
35 | + * @access public |
|
36 | + */ |
|
37 | 37 | public function __construct(\phpbb\config\config $config, \phpbb\template\template $template, \phpbb\user $user) |
38 | 38 | { |
39 | 39 | $this->config = $config; |
@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * Assign functions defined in this class to event listeners in the core |
|
46 | - * |
|
47 | - * @return array |
|
48 | - * @static |
|
49 | - * @access public |
|
50 | - */ |
|
45 | + * Assign functions defined in this class to event listeners in the core |
|
46 | + * |
|
47 | + * @return array |
|
48 | + * @static |
|
49 | + * @access public |
|
50 | + */ |
|
51 | 51 | static public function getSubscribedEvents() |
52 | 52 | { |
53 | 53 | return array( |
@@ -58,23 +58,23 @@ discard block |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
61 | - * Load Google Analytics js code |
|
62 | - * |
|
63 | - * @return void |
|
64 | - * @access public |
|
65 | - */ |
|
61 | + * Load Google Analytics js code |
|
62 | + * |
|
63 | + * @return void |
|
64 | + * @access public |
|
65 | + */ |
|
66 | 66 | public function load_google_analytics() |
67 | 67 | { |
68 | 68 | $this->template->assign_var('GOOGLEANALYTICS_ID', $this->config['googleanalytics_id']); |
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * Add config vars to ACP Board Settings |
|
73 | - * |
|
74 | - * @param \phpbb\event\data $event The event object |
|
75 | - * @return void |
|
76 | - * @access public |
|
77 | - */ |
|
72 | + * Add config vars to ACP Board Settings |
|
73 | + * |
|
74 | + * @param \phpbb\event\data $event The event object |
|
75 | + * @return void |
|
76 | + * @access public |
|
77 | + */ |
|
78 | 78 | public function add_googleanalytics_configs($event) |
79 | 79 | { |
80 | 80 | // Load language file |
@@ -106,12 +106,12 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
109 | - * Validate the Google Analytics ID |
|
110 | - * |
|
111 | - * @param \phpbb\event\data $event The event object |
|
112 | - * @return void |
|
113 | - * @access public |
|
114 | - */ |
|
109 | + * Validate the Google Analytics ID |
|
110 | + * |
|
111 | + * @param \phpbb\event\data $event The event object |
|
112 | + * @return void |
|
113 | + * @access public |
|
114 | + */ |
|
115 | 115 | public function validate_googleanalytics_id($event) |
116 | 116 | { |
117 | 117 | $input = $event['cfg_array']['googleanalytics_id']; |