Completed
Push — master ( f73f9d...7388a0 )
by
unknown
35s
created
sample/sample-config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 }
14 14
 
15 15
 // This is your option name where all the Redux data is stored.
16
-$opt_name = 'redux_demo';  // YOU MUST CHANGE THIS.  DO NOT USE 'redux_demo' IN YOUR PROJECT!!!
16
+$opt_name = 'redux_demo'; // YOU MUST CHANGE THIS.  DO NOT USE 'redux_demo' IN YOUR PROJECT!!!
17 17
 
18 18
 // Uncomment to disable demo mode.
19 19
 /* Redux::disable_demo(); */  // phpcs:ignore Squiz.PHP.CommentedOutCode
@@ -643,10 +643,10 @@  discard block
 block discarded – undo
643 643
 		$warning = false;
644 644
 
645 645
 		// Do your validation.
646
-		if ( 1 === (int) $value ) {
646
+		if ( 1 === ( int ) $value ) {
647 647
 			$error = true;
648 648
 			$value = $existing_value;
649
-		} elseif ( 2 === (int) $value ) {
649
+		} elseif ( 2 === ( int ) $value ) {
650 650
 			$warning = true;
651 651
 			$value   = $existing_value;
652 652
 		}
Please login to merge, or discard this patch.
redux-core/inc/classes/class-redux-instances.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
 		 */
36 36
 		public static function get_instance( $opt_name = false ) {
37 37
 
38
-			if ( $opt_name && ! empty( self::$instances[ $opt_name ] ) ) {
39
-				return self::$instances[ $opt_name ];
38
+			if ( $opt_name && ! empty( self::$instances[$opt_name] ) ) {
39
+				return self::$instances[$opt_name];
40 40
 			}
41 41
 
42 42
 			return new self();
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		public function store( $redux_framework ) {
84 84
 			if ( $redux_framework instanceof ReduxFramework ) {
85 85
 				$key                     = $redux_framework->args['opt_name'];
86
-				self::$instances[ $key ] = $redux_framework;
86
+				self::$instances[$key] = $redux_framework;
87 87
 			}
88 88
 		}
89 89
 	}
Please login to merge, or discard this patch.
redux-core/inc/classes/class-redux-network.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@
 block discarded – undo
65 65
 		public function save_network_page() {
66 66
 			$core = $this->core();
67 67
 
68
-			if ( isset( $_POST[ $core->args['opt_name'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
69
-				$opt_name = sanitize_text_field( wp_unslash( $_POST[ $core->args['opt_name'] ] ) ); // phpcs:ignore WordPress.Security.NonceVerification
68
+			if ( isset( $_POST[$core->args['opt_name']] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
69
+				$opt_name = sanitize_text_field( wp_unslash( $_POST[$core->args['opt_name']] ) ); // phpcs:ignore WordPress.Security.NonceVerification
70 70
 			}
71 71
 
72 72
 			$data = $core->options_class->validate_options( $opt_name );
Please login to merge, or discard this patch.
redux-core/inc/classes/class-redux-ajax-select2.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
 							$search_values = preg_grep( '~' . $args['s'] . '~i', $values );
72 72
 							if ( ! empty( $search_values ) ) {
73 73
 								foreach ( $search_values as $id => $val ) {
74
-									$to_json[ $keys[ $id ] ] = array(
75
-										'id'   => $keys[ $id ],
74
+									$to_json[$keys[$id]] = array(
75
+										'id'   => $keys[$id],
76 76
 										'text' => $val,
77 77
 									);
78 78
 								}
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
 							$search_keys = preg_grep( '~' . $args['s'] . '~i', $keys );
82 82
 							if ( ! empty( $search_keys ) ) {
83 83
 								foreach ( $search_keys as $id => $val ) {
84
-									$to_json[ $val ] = array(
84
+									$to_json[$val] = array(
85 85
 										'id'   => $val,
86
-										'text' => $values[ $id ],
86
+										'text' => $values[$id],
87 87
 									);
88 88
 								}
89 89
 							}
Please login to merge, or discard this patch.
redux-core/inc/classes/class-redux-admin-notices.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			// phpcs:ignore WordPress.PHP.DontExtract
76 76
 			extract( $data );
77 77
 
78
-			self::$notices[ $parent->args['page_slug'] ][] = array(
78
+			self::$notices[$parent->args['page_slug']][] = array(
79 79
 				'type'    => $type,
80 80
 				'msg'     => $msg,
81 81
 				'id'      => $id . '_' . $parent->args['opt_name'],
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
 
104 104
 				// Check for an active admin notice array.
105 105
 				if ( ! empty( $notices ) ) {
106
-					if ( isset( $notices[ $core->args['page_slug'] ] ) ) {
106
+					if ( isset( $notices[$core->args['page_slug']] ) ) {
107 107
 						// Enum admin notices.
108
-						foreach ( $notices[ $core->args['page_slug'] ] as $notice ) {
108
+						foreach ( $notices[$core->args['page_slug']] as $notice ) {
109 109
 
110 110
 							$add_style = '';
111 111
 							if ( strpos( $notice['type'], 'redux-message' ) !== false ) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 					}
163 163
 				}
164 164
 				// Clear the admin notice array.
165
-				self::$notices[ $core->args['opt_name'] ] = array();
165
+				self::$notices[$core->args['opt_name']] = array();
166 166
 			}
167 167
 		}
168 168
 
Please login to merge, or discard this patch.
redux-core/inc/themecheck/checks/class-redux-full-package.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 			foreach ( $blacklist as $file => $reason ) {
56 56
 				checkcount();
57 57
 				if ( file_exists( $redux['parent_dir'] . $file ) ) {
58
-					$errors[ $redux['parent_dir'] . $file ] = $reason;
58
+					$errors[$redux['parent_dir'] . $file] = $reason;
59 59
 				}
60 60
 			}
61 61
 
Please login to merge, or discard this patch.
redux-core/inc/themecheck/class-redux-themecheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 
123 123
 					// phpcs:ignore Generic.Strings.UnnecessaryStringConcat
124 124
 					if ( false !== strpos( $phpfile, 'class' . ' ReduxFramework {' ) ) {
125
-						self::$redux_details               = array(
125
+						self::$redux_details = array(
126 126
 							'filename' => Redux_Core::strtolower( basename( $php_key ) ),
127 127
 							'path'     => $php_key,
128 128
 						);
Please login to merge, or discard this patch.
redux-core/inc/fields/switch/class-redux-switch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 			$cb_disabled = '';
28 28
 
29 29
 			// Get selected.
30
-			if ( 1 === (int) $this->value ) {
30
+			if ( 1 === ( int ) $this->value ) {
31 31
 				$cb_enabled = ' selected';
32 32
 			} else {
33 33
 				$cb_disabled = ' selected';
Please login to merge, or discard this patch.
redux-core/inc/fields/button_set/class-redux-button-set.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 				}
53 53
 			}
54 54
 
55
-			$is_multi = isset( $this->field['multi'] ) && true === (bool) $this->field['multi'];
55
+			$is_multi = isset( $this->field['multi'] ) && true === ( bool ) $this->field['multi'];
56 56
 
57 57
 			$name = $this->field['name'] . $this->field['name_suffix'];
58 58
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 						$this->value = array( $this->value );
83 83
 					}
84 84
 
85
-					if ( is_array( $this->value ) && in_array( (string) $k, $this->value, true ) ) {
85
+					if ( is_array( $this->value ) && in_array( ( string ) $k, $this->value, true ) ) {
86 86
 						$selected   = 'checked="checked"';
87 87
 						$post_value = $k;
88 88
 					}
Please login to merge, or discard this patch.