Skip to content

Commit d503f93

Browse files
authored
Merge pull request #61 from VSEphpbb/updates
Some more updates
2 parents dc05c10 + 2472b10 commit d503f93

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</target>
2727

2828
<!--
29-
TODO: DO NOT EDIT BELOW THIS LINE!!!!
29+
DO NOT EDIT BELOW THIS LINE!!!!
3030
-->
3131

3232
<property name="version" value="HEAD" override="true" />

event/listener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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'];

tests/event/listener_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace phpbb\googleanalytics\tests\event;
1212

13-
require_once dirname(__FILE__) . '/../../../../../includes/functions_acp.php';
13+
require_once __DIR__ . '/../../../../../includes/functions_acp.php';
1414

1515
class event_listener_test extends \phpbb_test_case
1616
{

0 commit comments

Comments
 (0)