@@ -71,7 +71,7 @@ public function load_google_analytics()
7171 /**
7272 * Add config vars to ACP Board Settings
7373 *
74- * @param object $event The event object
74+ * @param \phpbb\event\data $event The event object
7575 * @return null
7676 * @access public
7777 */
@@ -81,7 +81,7 @@ public function add_googleanalytics_configs($event)
8181 $ this ->user ->add_lang_ext ('phpbb/googleanalytics ' , 'googleanalytics_acp ' );
8282
8383 // Add a config to the settings mode, after board_timezone
84- if ($ event ['mode ' ] == 'settings ' && isset ($ event ['display_vars ' ]['vars ' ]['board_timezone ' ]))
84+ if ($ event ['mode ' ] === 'settings ' && isset ($ event ['display_vars ' ]['vars ' ]['board_timezone ' ]))
8585 {
8686 // Store display_vars event in a local variable
8787 $ display_vars = $ event ['display_vars ' ];
@@ -108,7 +108,7 @@ public function add_googleanalytics_configs($event)
108108 /**
109109 * Validate the Google Analytics ID
110110 *
111- * @param object $event The event object
111+ * @param \phpbb\event\data $event The event object
112112 * @return null
113113 * @access public
114114 */
@@ -117,7 +117,7 @@ public function validate_googleanalytics_id($event)
117117 $ input = $ event ['cfg_array ' ]['googleanalytics_id ' ];
118118
119119 // Check if the validate test is for google_analytics
120- if (( $ event ['config_definition ' ]['validate ' ] == 'googleanalytics_id ' ) && ( $ input !== '' ) )
120+ if ($ input !== '' && $ event ['config_definition ' ]['validate ' ] === 'googleanalytics_id ' )
121121 {
122122 // Store the error and input event data
123123 $ error = $ event ['error ' ];
0 commit comments