Passed
Push — master ( 62e7b2...e64af5 )
by Chris
04:08
created
googleanalytics.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
 	 *
503 503
 	 * @return void
504 504
 	 */
505
-	public function load_licensing(){
505
+	public function load_licensing() {
506 506
 		if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
507 507
 			require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/license.php';
508 508
 			self::$instance->license = new MonsterInsights_License();
@@ -795,7 +795,7 @@  discard block
 block discarded – undo
795 795
  *
796 796
  * @return void
797 797
  */
798
-function monsterinsights_lite_call_install_and_upgrade(){
798
+function monsterinsights_lite_call_install_and_upgrade() {
799 799
 	add_action( 'wp_loaded', 'monsterinsights_lite_install_and_upgrade' );
800 800
 }
801 801
 
Please login to merge, or discard this patch.
includes/admin/api-auth.php 1 patch
Braces   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 		add_action( 'wp_ajax_nopriv_monsterinsights_rauthenticate',   array( $this, 'rauthenticate' ) );
41 41
 	}
42 42
 
43
-	public function get_tt(){
43
+	public function get_tt() {
44 44
 		$tt = is_network_admin() ? get_site_option( 'monsterinsights_network_tt', '' ) : get_option( 'monsterinsights_site_tt', '' );
45 45
 		if ( empty( $tt ) ) {
46 46
 			// if TT is empty, generate a new one, save it and then return it
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
 		return $tt;
51 51
 	}
52 52
 
53
-	public function rotate_tt(){
53
+	public function rotate_tt() {
54 54
 		$tt = $this->generate_tt();
55 55
 		is_network_admin() ? update_site_option( 'monsterinsights_network_tt', $tt ) : update_option( 'monsterinsights_site_tt', $tt );
56 56
 	}
57 57
 
58
-	public function generate_tt(){
58
+	public function generate_tt() {
59 59
 		return hash( 'sha512', wp_generate_password( 128, true, true ) . AUTH_SALT . uniqid( "", true ) );
60 60
 	}
61 61
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 		);
74 74
 	}
75 75
 
76
-	public function maybe_authenticate(){
76
+	public function maybe_authenticate() {
77 77
 
78 78
 		// Check nonce
79 79
 		check_ajax_referer( 'mi-admin-nonce', 'nonce' );
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 		wp_send_json_success();
154 154
 	}
155 155
 
156
-	public function authenticate_listener(){
156
+	public function authenticate_listener() {
157 157
 		// Make sure it's for us
158 158
 		if ( empty( $_REQUEST['mi-oauth-action'] ) || $_REQUEST['mi-oauth-action'] !== 'auth' ) {
159 159
 			return;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 		exit;
224 224
 	}
225 225
 
226
-	public function maybe_reauthenticate(){
226
+	public function maybe_reauthenticate() {
227 227
 
228 228
 		// Check nonce
229 229
 		check_ajax_referer( 'mi-admin-nonce', 'nonce' );
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 		wp_send_json_success( array( 'redirect' => $siteurl ) );
273 273
 	}
274 274
 
275
-	public function reauthenticate_listener(){
275
+	public function reauthenticate_listener() {
276 276
 		// Make sure it's for us
277 277
 		if ( empty( $_REQUEST['mi-oauth-action'] ) || $_REQUEST['mi-oauth-action'] !== 'reauth' ) {
278 278
 			return;
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 		exit;
343 343
 	}
344 344
 
345
-	public function maybe_verify(){
345
+	public function maybe_verify() {
346 346
 
347 347
 		// Check nonce
348 348
 		check_ajax_referer( 'mi-admin-nonce', 'nonce' );
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 		}
377 377
 	}
378 378
 
379
-	public function verify_auth( $credentials = array() ){
379
+	public function verify_auth( $credentials = array() ) {
380 380
 		$creds = ! empty( $credentials ) ? $credentials : ( $this->is_network_admin() ? MonsterInsights()->auth->get_network_analytics_profile( true ) : MonsterInsights()->auth->get_analytics_profile( true ) );
381 381
 
382 382
 		if ( empty( $creds['key'] ) ) {
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 		}
395 395
 	}
396 396
 
397
-	public function maybe_delete(){
397
+	public function maybe_delete() {
398 398
 
399 399
 		// Check nonce
400 400
 		check_ajax_referer( 'mi-admin-nonce', 'nonce' );
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
 		}
435 435
 	}
436 436
 
437
-	public function delete_auth( $force = false ){
437
+	public function delete_auth( $force = false ) {
438 438
 		if ( $this->is_network_admin() && ! MonsterInsights()->auth->is_network_authed() ) {
439 439
 			return false;
440 440
 		} else if ( ! $this->is_network_admin() && ! MonsterInsights()->auth->is_authed() ) {
Please login to merge, or discard this patch.