Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit da501e0

Browse files
author
Santiago Garza
committed
codeclimate fixes
1 parent 6076561 commit da501e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wp-uptime-robot-api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ public function __construct( $api_key, $format = 'json', $no_json_callback = 1 )
7575
private function fetch( $request ) {
7676

7777
if ( preg_match( '#\?#', $request ) ) {
78-
$request .= '&apiKey=' . static::$api_key . '&rand=' . mt_rand( 1000000, 10000000 );
78+
$request .= '&apiKey=' . static::$api_key . '&rand=' . mt_rand( 1000000, 10000000 );
7979
} else {
80-
$request .= '?apiKey=' .static::$api_key . '&rand=' . mt_rand( 1000000, 10000000 );
80+
$request .= '?apiKey=' . static::$api_key . '&rand=' . mt_rand( 1000000, 10000000 );
8181
}
8282

8383
$request .= '&format=' . static::$format;
@@ -146,7 +146,7 @@ public function get_monitors( $search = '', $monitors = null, $custom_up_ratio =
146146
while ( ($limit * $offset) + $limit < $total ) {
147147
$result->limit = ($limit * $offset) + $limit;
148148
$offset++;
149-
$append = $this->fetch( $request.'&offset='.($offset * $limit) );
149+
$append = $this->fetch( $request . '&offset=' . ($offset * $limit) );
150150
$result->monitors->monitor = array_merge( $result->monitors->monitor, $append->monitors->monitor );
151151
}
152152
$result->limit = ( $limit * $offset ) + $limit;

0 commit comments

Comments
 (0)