Completed
Pull Request — develop (#1810)
by
unknown
18:58
created
future/includes/class-gv-renderer-view.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -123,12 +123,12 @@  discard block
 block discarded – undo
123 123
 		 * @uses {@var $counter}
124 124
 		 * @param Template_Context $context
125 125
 		 */
126
-		add_action( 'gravityview/template/view/render', $add_anchor_id_filter = function ( $context ) use ( &$counter ) {
126
+		add_action( 'gravityview/template/view/render', $add_anchor_id_filter = function( $context ) use ( &$counter ) {
127 127
 			/** @see \GV\View::set_anchor_id() */
128 128
 			$context->view->set_anchor_id( $counter[ $context->view->ID ] );
129 129
 		} );
130 130
 
131
-		$add_search_action_filter = function ( $action ) use ( $view ) {
131
+		$add_search_action_filter = function( $action ) use ( $view ) {
132 132
 			return $action . '#' . $view->get_anchor_id();
133 133
 		};
134 134
 
@@ -155,11 +155,11 @@  discard block
 block discarded – undo
155 155
 		 * This allows us to fake it till we make it.
156 156
 		 */
157 157
 		$parameters = $view->settings->as_atts();
158
-		if ( ! empty( $parameters['sort_field'] ) && is_array( $parameters['sort_field'] ) ) {
158
+		if ( ! empty( $parameters[ 'sort_field' ] ) && is_array( $parameters[ 'sort_field' ] ) ) {
159 159
 			$has_multisort = true;
160
-			$parameters['sort_field'] = reset( $parameters['sort_field'] );
161
-			if ( ! empty( $parameters['sort_direction'] ) && is_array( $parameters['sort_direction'] ) ) {
162
-				$parameters['sort_direction'] = reset( $parameters['sort_direction'] );
160
+			$parameters[ 'sort_field' ] = reset( $parameters[ 'sort_field' ] );
161
+			if ( ! empty( $parameters[ 'sort_direction' ] ) && is_array( $parameters[ 'sort_direction' ] ) ) {
162
+				$parameters[ 'sort_direction' ] = reset( $parameters[ 'sort_direction' ] );
163 163
 			}
164 164
 		}
165 165
 
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
 			'entries' => $entries,
175 175
 			'request' => $request,
176 176
 		), empty( $parameters ) ? array() : array(
177
-			'paging' => $parameters['paging'],
178
-			'sorting' => $parameters['sorting'],
177
+			'paging' => $parameters[ 'paging' ],
178
+			'sorting' => $parameters[ 'sorting' ],
179 179
 		), empty( $post ) ? array() : array(
180 180
 			'post' => $post,
181 181
 		) ) );
Please login to merge, or discard this patch.
future/includes/class-gv-logger.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @return void
38 38
      */
39
-    public function emergency($message, array $context = array())
39
+    public function emergency( $message, array $context = array() )
40 40
     {
41
-        $this->log(LogLevel::EMERGENCY, $message, $context);
41
+        $this->log( LogLevel::EMERGENCY, $message, $context );
42 42
     }
43 43
 
44 44
     /**
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @return void
54 54
      */
55
-    public function alert($message, array $context = array())
55
+    public function alert( $message, array $context = array() )
56 56
     {
57
-        $this->log(LogLevel::ALERT, $message, $context);
57
+        $this->log( LogLevel::ALERT, $message, $context );
58 58
     }
59 59
 
60 60
     /**
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return void
69 69
      */
70
-    public function critical($message, array $context = array())
70
+    public function critical( $message, array $context = array() )
71 71
     {
72
-        $this->log(LogLevel::CRITICAL, $message, $context);
72
+        $this->log( LogLevel::CRITICAL, $message, $context );
73 73
     }
74 74
 
75 75
     /**
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
      *
82 82
      * @return void
83 83
      */
84
-    public function error($message, array $context = array())
84
+    public function error( $message, array $context = array() )
85 85
     {
86
-        $this->log(LogLevel::ERROR, $message, $context);
86
+        $this->log( LogLevel::ERROR, $message, $context );
87 87
     }
88 88
 
89 89
     /**
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
      *
98 98
      * @return void
99 99
      */
100
-    public function warning($message, array $context = array())
100
+    public function warning( $message, array $context = array() )
101 101
     {
102
-        $this->log(LogLevel::WARNING, $message, $context);
102
+        $this->log( LogLevel::WARNING, $message, $context );
103 103
     }
104 104
 
105 105
     /**
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @return void
112 112
      */
113
-    public function notice($message, array $context = array())
113
+    public function notice( $message, array $context = array() )
114 114
     {
115
-        $this->log(LogLevel::NOTICE, $message, $context);
115
+        $this->log( LogLevel::NOTICE, $message, $context );
116 116
     }
117 117
 
118 118
     /**
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
      *
126 126
      * @return void
127 127
      */
128
-    public function info($message, array $context = array())
128
+    public function info( $message, array $context = array() )
129 129
     {
130
-        $this->log(LogLevel::INFO, $message, $context);
130
+        $this->log( LogLevel::INFO, $message, $context );
131 131
     }
132 132
 
133 133
     /**
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
      *
139 139
      * @return void
140 140
      */
141
-    public function debug($message, array $context = array())
141
+    public function debug( $message, array $context = array() )
142 142
     {
143
-        $this->log(LogLevel::DEBUG, $message, $context);
143
+        $this->log( LogLevel::DEBUG, $message, $context );
144 144
     }
145 145
 
146 146
 	/**
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	protected function interpolate( $message, $context ) {
154 154
 		foreach ( $context as $key => $val ) {
155 155
 			if ( strpos( $message, "{{$key}}" ) !== false ) {
156
-				$message = str_replace( "{{$key}}", (string) $val, $message );
156
+				$message = str_replace( "{{$key}}", (string)$val, $message );
157 157
 			}
158 158
 		}
159 159
 
Please login to merge, or discard this patch.
future/includes/class-gv-entry-gravityforms.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -106,14 +106,14 @@  discard block
 block discarded – undo
106 106
 	 * @return \GV\GF_Entry|null An instance of this entry or null if not found.
107 107
 	 */
108 108
 	public static function from_entry( $entry ) {
109
-		if ( empty( $entry['id'] ) ) {
109
+		if ( empty( $entry[ 'id' ] ) ) {
110 110
 			return null;
111 111
 		}
112 112
 
113 113
 		$self = new self();
114 114
 		$self->entry = $entry;
115 115
 
116
-		$self->ID = $self->entry['id'];
116
+		$self->ID = $self->entry[ 'id' ];
117 117
 		$self->slug = $self->get_slug();
118 118
 
119 119
 		return $self;
@@ -127,9 +127,9 @@  discard block
 block discarded – undo
127 127
 	 * @since 2.0
128 128
 	 * @return bool Whether the offset exists or not.
129 129
 	 */
130
-	#[\ReturnTypeWillChange]
130
+	#[\ReturnTypeWillChange ]
131 131
 	public function offsetExists( $offset ) {
132
-		return isset( $this->entry[$offset] );
132
+		return isset( $this->entry[ $offset ] );
133 133
 	}
134 134
 
135 135
 	/**
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
 	 *
144 144
 	 * @return mixed The value of the requested entry data.
145 145
 	 */
146
-	#[\ReturnTypeWillChange]
146
+	#[\ReturnTypeWillChange ]
147 147
 	public function offsetGet( $offset ) {
148
-		return $this->entry[$offset];
148
+		return $this->entry[ $offset ];
149 149
 	}
150 150
 
151 151
 	/**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 *
158 158
 	 * @return void
159 159
 	 */
160
-	#[\ReturnTypeWillChange]
160
+	#[\ReturnTypeWillChange ]
161 161
 	public function offsetSet( $offset, $value ) {
162 162
 		gravityview()->log->error( 'The underlying Gravity Forms entry is immutable. This is a \GV\Entry object and should not be accessed as an array.' );
163 163
 	}
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 * @since 2.0
171 171
 	 * @return void
172 172
 	 */
173
-	#[\ReturnTypeWillChange]
173
+	#[\ReturnTypeWillChange ]
174 174
 	public function offsetUnset( $offset ) {
175 175
 		gravityview()->log->error( 'The underlying Gravity Forms entry is immutable. This is a \GV\Entry object and should not be accessed as an array.' );
176 176
 	}
Please login to merge, or discard this patch.
future/includes/class-gv-form-gravityforms.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$self = new self();
56 56
 		$self->form = $form;
57 57
 
58
-		$self->ID = intval( $self->form['id'] );
58
+		$self->ID = intval( $self->form[ 'id' ] );
59 59
 
60 60
 		return $self;
61 61
 	}
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
 	 * @return \GV\GF_Form|null An instance of this form or null if not found.
71 71
 	 */
72 72
 	public static function from_form( $form ) {
73
-		if ( empty( $form['id'] ) ) {
73
+		if ( empty( $form[ 'id' ] ) ) {
74 74
 			return null;
75 75
 		}
76 76
 
77 77
 		$self = new self();
78 78
 		$self->form = $form;
79
-		$self->ID = $self->form['id'];
79
+		$self->ID = $self->form[ 'id' ];
80 80
 
81 81
 		return $self;
82 82
 	}
@@ -119,11 +119,11 @@  discard block
 block discarded – undo
119 119
 
120 120
 			/** The offset and limit */
121 121
 			if ( ! empty( $offset->limit ) ) {
122
-				$paging['page_size'] = $offset->limit;
122
+				$paging[ 'page_size' ] = $offset->limit;
123 123
 			}
124 124
 
125 125
 			if ( ! empty( $offset->offset ) ) {
126
-				$paging['offset'] = $offset->offset;
126
+				$paging[ 'offset' ] = $offset->offset;
127 127
 			}
128 128
 
129 129
 			foreach ( \GFAPI::get_entries( $form->ID, $search_criteria, $sorting, $paging ) as $entry ) {
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
 	 */
181 181
 	public function get_fields() {
182 182
 		$fields = array();
183
-		foreach ( $this['fields'] as $field ) {
184
-			foreach ( empty( $field['inputs'] ) ? array( $field['id'] ) : wp_list_pluck( $field['inputs'], 'id' ) as $id ) {
183
+		foreach ( $this[ 'fields' ] as $field ) {
184
+			foreach ( empty( $field[ 'inputs' ] ) ? array( $field[ 'id' ] ) : wp_list_pluck( $field[ 'inputs' ], 'id' ) as $id ) {
185 185
 				if ( is_numeric( $id ) ) {
186 186
 					$fields[ $id ] = self::get_field( $this, $id );
187 187
 				} else {
@@ -217,9 +217,9 @@  discard block
 block discarded – undo
217 217
 	 * @since 2.0
218 218
 	 * @return bool Whether the offset exists or not.
219 219
 	 */
220
-	#[\ReturnTypeWillChange]
220
+	#[\ReturnTypeWillChange ]
221 221
 	public function offsetExists( $offset ) {
222
-		return isset( $this->form[$offset] );
222
+		return isset( $this->form[ $offset ] );
223 223
 	}
224 224
 
225 225
 	/**
@@ -233,9 +233,9 @@  discard block
 block discarded – undo
233 233
 	 *
234 234
 	 * @return mixed The value of the requested form data.
235 235
 	 */
236
-	#[\ReturnTypeWillChange]
236
+	#[\ReturnTypeWillChange ]
237 237
 	public function offsetGet( $offset ) {
238
-		return $this->form[$offset];
238
+		return $this->form[ $offset ];
239 239
 	}
240 240
 
241 241
 	/**
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 	 *
248 248
 	 * @return void
249 249
 	 */
250
-	#[\ReturnTypeWillChange]
250
+	#[\ReturnTypeWillChange ]
251 251
 	public function offsetSet( $offset, $value ) {
252 252
 		gravityview()->log->error( 'The underlying Gravity Forms form is immutable. This is a \GV\Form object and should not be accessed as an array.' );
253 253
 	}
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	 * @since 2.0
261 261
 	 * @return void
262 262
 	 */
263
-	#[\ReturnTypeWillChange]
263
+	#[\ReturnTypeWillChange ]
264 264
 	public function offsetUnset( $offset ) {
265 265
 		gravityview()->log->error( 'The underlying Gravity Forms form is immutable. This is a \GV\Form object and should not be accessed as an array.' );
266 266
 	}
Please login to merge, or discard this patch.
future/includes/class-gv-entry-multi.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 			if ( ! $entry instanceof Entry ) {
45 45
 				continue;
46 46
 			}
47
-			$_entry->entries[ $entry['form_id'] ]  = &$entry;
47
+			$_entry->entries[ $entry[ 'form_id' ] ] = &$entry;
48 48
 		}
49 49
 		return $_entry;
50 50
 	}
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
 			foreach ( $this->entries as $entry ) {
67 67
 				$entry = $entry->as_entry();
68
-				$_entry['_multi'][ $entry['form_id'] ] = $entry;
68
+				$_entry[ '_multi' ][ $entry[ 'form_id' ] ] = $entry;
69 69
 			}
70 70
 		}
71 71
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	public function get_permalink( \GV\View $view = null, \GV\Request $request = null, $track_directory = true ) {
88 88
 		$slugs = array();
89 89
 		add_filter( 'gravityview/entry/slug', $callback = function( $slug ) use ( &$slugs ) {
90
-			$slugs[] = $slug;
90
+			$slugs[ ] = $slug;
91 91
 			return implode( ',', $slugs );
92 92
 		}, 10, 1 );
93 93
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 * @since 2.0
109 109
 	 * @return bool Whether the offset exists or not.
110 110
 	 */
111
-	#[\ReturnTypeWillChange]
111
+	#[\ReturnTypeWillChange ]
112 112
 	public function offsetExists( $offset ) {
113 113
 		return isset( $this->entries[ $offset ] );
114 114
 	}
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 	 *
125 125
 	 * @return mixed The value of the requested entry data.
126 126
 	 */
127
-	#[\ReturnTypeWillChange]
127
+	#[\ReturnTypeWillChange ]
128 128
 	public function offsetGet( $offset ) {
129 129
 		if ( ! $this->offsetExists( $offset ) ) {
130 130
 			return null;
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 	 *
142 142
 	 * @return void
143 143
 	 */
144
-	#[\ReturnTypeWillChange]
144
+	#[\ReturnTypeWillChange ]
145 145
 	public function offsetSet( $offset, $value ) {
146 146
 		gravityview()->log->error( 'The underlying multi entry is immutable. This is a \GV\Entry object and should not be accessed as an array.' );
147 147
 	}
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 	 * @since 2.0
155 155
 	 * @return void
156 156
 	 */
157
-	#[\ReturnTypeWillChange]
157
+	#[\ReturnTypeWillChange ]
158 158
 	public function offsetUnset( $offset ) {
159 159
 		gravityview()->log->error( 'The underlying multi entry is immutable. This is a \GV\Entry object and should not be accessed as an array.' );
160 160
 	}
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/search-field-select.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -10,17 +10,17 @@  discard block
 block discarded – undo
10 10
 $search_field = $gravityview_view->search_field;
11 11
 
12 12
 // Make sure that there are choices to display
13
-if( empty( $search_field['choices'] ) ) {
13
+if ( empty( $search_field[ 'choices' ] ) ) {
14 14
 	gravityview()->log->debug( 'search-field-select.php - No choices for field' );
15 15
 	return;
16 16
 }
17 17
 
18
-if( is_array( $search_field['value'] ) ) {
18
+if ( is_array( $search_field[ 'value' ] ) ) {
19 19
     gravityview()->log->debug( 'search-field-select.php - Array values passed; using first value.' );
20
-	$search_field['value'] = reset( $search_field['value'] );
20
+	$search_field[ 'value' ] = reset( $search_field[ 'value' ] );
21 21
 }
22 22
 
23
-$gf_field = GFAPI::get_field( $gravityview_view->getForm(), $search_field['key'] );
23
+$gf_field = GFAPI::get_field( $gravityview_view->getForm(), $search_field[ 'key' ] );
24 24
 $placeholder = \GV\Utils::get( $gf_field, 'placeholder', '' );
25 25
 
26 26
 /**
@@ -29,26 +29,26 @@  discard block
 block discarded – undo
29 29
  * @param string $default_option Default: `—` (—)
30 30
  * @param string $field_type Field type: "select" or "multiselect"
31 31
  */
32
-$default_option = apply_filters('gravityview/extension/search/select_default', ( '' === $placeholder ? '—' : $placeholder ), 'select' );
32
+$default_option = apply_filters( 'gravityview/extension/search/select_default', ( '' === $placeholder ? '—' : $placeholder ), 'select' );
33 33
 
34 34
 ?>
35 35
 <div class="gv-search-box gv-search-field-select">
36
-	<?php if( ! gv_empty( $search_field['label'], false, false ) ) { ?>
37
-		<label for="search-box-<?php echo esc_attr( $search_field['name'] ); ?>"><?php echo esc_html( $search_field['label'] ); ?></label>
36
+	<?php if ( ! gv_empty( $search_field[ 'label' ], false, false ) ) { ?>
37
+		<label for="search-box-<?php echo esc_attr( $search_field[ 'name' ] ); ?>"><?php echo esc_html( $search_field[ 'label' ] ); ?></label>
38 38
 	<?php } ?>
39 39
 	<p>
40
-		<select name="<?php echo esc_attr( $search_field['name'] ); ?>" id="search-box-<?php echo esc_attr( $search_field['name'] ); ?>">
41
-			<option value="" <?php gv_selected( '', $search_field['value'], true ); ?>><?php echo esc_html( $default_option ); ?></option>
40
+		<select name="<?php echo esc_attr( $search_field[ 'name' ] ); ?>" id="search-box-<?php echo esc_attr( $search_field[ 'name' ] ); ?>">
41
+			<option value="" <?php gv_selected( '', $search_field[ 'value' ], true ); ?>><?php echo esc_html( $default_option ); ?></option>
42 42
 			<?php
43
-			foreach( $search_field['choices'] as $choice ) { ?>
44
-				<?php if ( is_array( $choice['value'] ) ) { ?>
45
-					<optgroup label="<?php echo esc_attr( $choice['text'] ); ?>">
46
-						<?php foreach ( $choice['value'] as $subchoice ): ?>
47
-							<option value="<?php echo esc_attr( $subchoice['value'] ); ?>"><?php echo esc_html( $subchoice['text'] ); ?></option>
43
+			foreach ( $search_field[ 'choices' ] as $choice ) { ?>
44
+				<?php if ( is_array( $choice[ 'value' ] ) ) { ?>
45
+					<optgroup label="<?php echo esc_attr( $choice[ 'text' ] ); ?>">
46
+						<?php foreach ( $choice[ 'value' ] as $subchoice ): ?>
47
+							<option value="<?php echo esc_attr( $subchoice[ 'value' ] ); ?>"><?php echo esc_html( $subchoice[ 'text' ] ); ?></option>
48 48
 						<?php endforeach; ?>
49 49
 					</optgroup>
50 50
 				<?php } else { ?>
51
-					<option value="<?php echo esc_attr( $choice['value'] ); ?>" <?php gv_selected( esc_attr( $choice['value'] ), esc_attr( $search_field['value'] ), true ); ?>><?php echo esc_html( $choice['text'] ); ?></option>
51
+					<option value="<?php echo esc_attr( $choice[ 'value' ] ); ?>" <?php gv_selected( esc_attr( $choice[ 'value' ] ), esc_attr( $search_field[ 'value' ] ), true ); ?>><?php echo esc_html( $choice[ 'text' ] ); ?></option>
52 52
 				<?php } ?>
53 53
 			<?php } ?>
54 54
 		</select>
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/search-field-multiselect.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 $search_field = $gravityview_view->search_field;
11 11
 
12 12
 // Make sure that there are choices to display
13
-if( empty( $search_field['choices'] ) ) {
13
+if ( empty( $search_field[ 'choices' ] ) ) {
14 14
 	gravityview()->log->debug( 'search-field-multiselect.php - No choices for field' );
15 15
 	return;
16 16
 }
17 17
 
18
-$gf_field = GFAPI::get_field( $gravityview_view->getForm(), $search_field['key'] );
18
+$gf_field = GFAPI::get_field( $gravityview_view->getForm(), $search_field[ 'key' ] );
19 19
 $placeholder = \GV\Utils::get( $gf_field, 'placeholder', '' );
20 20
 
21 21
 /**
@@ -24,19 +24,19 @@  discard block
 block discarded – undo
24 24
  * @param string $default_option Default: `&mdash;` (—)
25 25
  * @param string $field_type Field type: "select" or "multiselect"
26 26
  */
27
-$default_option = apply_filters('gravityview/extension/search/select_default', ( '' === $placeholder ? '&mdash;' : $placeholder ), 'multiselect' );
27
+$default_option = apply_filters( 'gravityview/extension/search/select_default', ( '' === $placeholder ? '&mdash;' : $placeholder ), 'multiselect' );
28 28
 
29 29
 ?>
30 30
 <div class="gv-search-box gv-search-field-multiselect">
31
-	<?php if( ! gv_empty( $search_field['label'], false, false ) ) { ?>
32
-		<label for="search-box-<?php echo esc_attr( $search_field['name'] ); ?>"><?php echo esc_html( $search_field['label'] ); ?></label>
31
+	<?php if ( ! gv_empty( $search_field[ 'label' ], false, false ) ) { ?>
32
+		<label for="search-box-<?php echo esc_attr( $search_field[ 'name' ] ); ?>"><?php echo esc_html( $search_field[ 'label' ] ); ?></label>
33 33
 	<?php } ?>
34 34
 	<p>
35
-		<select name="<?php echo esc_attr( $search_field['name'] ); ?>[]" id="search-box-<?php echo esc_attr( $search_field['name'] ); ?>" multiple>
36
-			<option value="" <?php gv_selected( '', $search_field['value'], true ); ?>><?php echo esc_html( $default_option ); ?></option>
35
+		<select name="<?php echo esc_attr( $search_field[ 'name' ] ); ?>[]" id="search-box-<?php echo esc_attr( $search_field[ 'name' ] ); ?>" multiple>
36
+			<option value="" <?php gv_selected( '', $search_field[ 'value' ], true ); ?>><?php echo esc_html( $default_option ); ?></option>
37 37
 			<?php
38
-			foreach( $search_field['choices'] as $choice ) : ?>
39
-				<option value="<?php echo esc_attr( $choice['value'] ); ?>" <?php gv_selected( $choice['value'], $search_field['value'], true ); ?>><?php echo esc_html( $choice['text'] ); ?></option>
38
+			foreach ( $search_field[ 'choices' ] as $choice ) : ?>
39
+				<option value="<?php echo esc_attr( $choice[ 'value' ] ); ?>" <?php gv_selected( $choice[ 'value' ], $search_field[ 'value' ], true ); ?>><?php echo esc_html( $choice[ 'text' ] ); ?></option>
40 40
 			<?php endforeach; ?>
41 41
 		</select>
42 42
 	</p>
Please login to merge, or discard this patch.
vendor_prefixed/trustedlogin/client/src/Endpoint.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,11 +210,11 @@  discard block
 block discarded – undo
210 210
 			return;
211 211
 		}
212 212
 
213
-		if ( ! isset( $_REQUEST['_wpnonce'] ) ) {
213
+		if ( ! isset( $_REQUEST[ '_wpnonce' ] ) ) {
214 214
 			return;
215 215
 		}
216 216
 
217
-		$verify_nonce = wp_verify_nonce( $_REQUEST['_wpnonce'], self::REVOKE_SUPPORT_QUERY_PARAM );
217
+		$verify_nonce = wp_verify_nonce( $_REQUEST[ '_wpnonce' ], self::REVOKE_SUPPORT_QUERY_PARAM );
218 218
 
219 219
 		if ( ! $verify_nonce ) {
220 220
 			$this->logging->log( 'Removing user failed: Nonce expired (Nonce value: ' . $verify_nonce . ')', __METHOD__, 'error' );
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 	 * @return string
307 307
 	 */
308 308
 	public function get() {
309
-		return (string) get_site_option( $this->option_name );
309
+		return (string)get_site_option( $this->option_name );
310 310
 	}
311 311
 
312 312
 	/**
Please login to merge, or discard this patch.
vendor_prefixed/trustedlogin/client/src/Envelope.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
 namespace GravityKit\GravityView\Foundation\ThirdParty\TrustedLogin;
14 14
 
15 15
 // Exit if accessed directly
16
-if ( ! defined('ABSPATH') ) {
16
+if ( ! defined( 'ABSPATH' ) ) {
17 17
 	exit;
18 18
 }
19 19
 
@@ -81,13 +81,13 @@  discard block
 block discarded – undo
81 81
 
82 82
 		$e_keys = $this->encryption->generate_keys();
83 83
 
84
-		if ( is_wp_error( $e_keys ) ){
84
+		if ( is_wp_error( $e_keys ) ) {
85 85
 			return $e_keys;
86 86
 		}
87 87
 
88 88
 		$nonce = $this->encryption->get_nonce();
89 89
 
90
-		if ( is_wp_error( $nonce ) ){
90
+		if ( is_wp_error( $nonce ) ) {
91 91
 			return $nonce;
92 92
 		}
93 93
 
Please login to merge, or discard this patch.