Completed
Push — master ( 64f7a9...9f636b )
by Jamie
03:57
created
classes/controllers/FrmAddonsController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 		$keyed_addons = array();
44 44
 		foreach ( $addons as $addon ) {
45
-			$keyed_addons[ $addon['info']['slug'] ] = $addon;
45
+			$keyed_addons[$addon['info']['slug']] = $addon;
46 46
 		}
47 47
 
48 48
 		$plugin_order = array(
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 		);
54 54
 		$ordered_addons = array();
55 55
 		foreach ( $plugin_order as $plugin ) {
56
-			if ( isset( $keyed_addons[ $plugin ] ) ) {
57
-				$ordered_addons[] = $keyed_addons[ $plugin ];
58
-				unset( $keyed_addons[ $plugin ] );
56
+			if ( isset( $keyed_addons[$plugin] ) ) {
57
+				$ordered_addons[] = $keyed_addons[$plugin];
58
+				unset( $keyed_addons[$plugin] );
59 59
 			}
60 60
 		}
61 61
 		$addons = $ordered_addons + $keyed_addons;
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
 	}
91 91
 
92 92
 	public static function get_licenses() {
93
-		FrmAppHelper::permission_check('frm_change_settings');
93
+		FrmAppHelper::permission_check( 'frm_change_settings' );
94 94
 		check_ajax_referer( 'frm_ajax', 'nonce' );
95 95
 
96
-		$license = get_option('frmpro-credentials');
96
+		$license = get_option( 'frmpro-credentials' );
97 97
 		if ( $license && is_array( $license ) && isset( $license['license'] ) ) {
98 98
 			$url = 'http://formidablepro.com/frm-edd-api/licenses?l=' . urlencode( base64_encode( $license['license'] ) );
99 99
 			$licenses = self::send_api_request( $url, array( 'name' => 'frm_api_licence', 'expires' => 60 * 60 * 5 ) );
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
 		);
147 147
 
148 148
 		foreach ( $pro['pricing'] as $name => $price ) {
149
-			if ( isset( $pro_pricing[ $name ] ) ) {
150
-				$pro_pricing[ $name ]['price'] = $price;
149
+			if ( isset( $pro_pricing[$name] ) ) {
150
+				$pro_pricing[$name]['price'] = $price;
151 151
 			}
152 152
 		}
153 153
 	}
Please login to merge, or discard this patch.