Completed
Pull Request — master (#43)
by
unknown
01:43
created
includes/class-meta-box.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
 		 *
231 231
 		 * @since 1.1.4
232 232
 		 * @param string       $arg   Field definition.
233
-		 * @param string|array $value A CMB2 field type.
233
+		 * @param string[] $value A CMB2 field type.
234 234
 		 */
235 235
 		public function add_arg( $arg, $value ) {
236 236
 
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -195,17 +195,17 @@
 block discarded – undo
195 195
 		 * @param string $field_options String of options for fields liek select.
196 196
 		 */
197 197
 		private function add_option_arg( $field_options ) {
198
-            $field_options = preg_split("/\\r\\n|\\r|\\n/", $field_options );
199
-            $options = array();
198
+			$field_options = preg_split("/\\r\\n|\\r|\\n/", $field_options );
199
+			$options = array();
200 200
 			foreach ( $field_options as $option ) {
201 201
 				$opt_arr = explode( ',', $option );
202 202
 				if ( ! isset( $opt_arr[1] ) ) {
203
-                    $options[ $option ] = $option;
204
-                    continue;
205
-                }
206
-                $options[ $opt_arr[0] ] = $opt_arr[1];
203
+					$options[ $option ] = $option;
204
+					continue;
205
+				}
206
+				$options[ $opt_arr[0] ] = $opt_arr[1];
207 207
 			}
208
-            $this->field_args['options'] = $options;
208
+			$this->field_args['options'] = $options;
209 209
 		}
210 210
 
211 211
 		/**
Please login to merge, or discard this patch.
cmb2-admin-extension.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -196,6 +196,7 @@
 block discarded – undo
196 196
 	 *
197 197
 	 * @param int    $id    Post ID.
198 198
 	 * @param string $field The meta key to retrieve.
199
+	 * @return string
199 200
 	 */
200 201
 	function cmbf( $id, $field ) {
201 202
 
Please login to merge, or discard this patch.