Completed
Pull Request — develop (#1199)
by Gennady
17:03
created
future/includes/class-gv-request.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
 				}
141 141
 
142 142
 				$entry = Multi_Entry::from_entries( array_filter( $multientry ) );
143
-			}  else {
143
+			} else {
144 144
 				/**
145 145
 				 * A regular one.
146 146
 				 */
Please login to merge, or discard this patch.
future/includes/class-gv-template-view-table.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 
20 20
 
21 21
 	/**
22
-     * Constructor. Add filters to modify output.
23
-     *
22
+	 * Constructor. Add filters to modify output.
23
+	 *
24 24
 	 * @since 2.0.4
25 25
 	 *
26 26
 	 * @param View $view
@@ -29,19 +29,19 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public function __construct( View $view, Entry_Collection $entries, Request $request ) {
31 31
 
32
-	    add_filter( 'gravityview/template/field/label', array( __CLASS__, 'add_columns_sort_links' ), 100, 2 );
32
+		add_filter( 'gravityview/template/field/label', array( __CLASS__, 'add_columns_sort_links' ), 100, 2 );
33 33
 
34 34
 		parent::__construct( $view, $entries, $request );
35 35
 	}
36 36
 
37 37
 	/**
38
-     * Add sorting links to HTML columns that support sorting
39
-     *
40
-     * @since 2.0.4
41
-     * @since 2.0.5 Made static
42
-     *
43
-     * @static
44
-     *
38
+	 * Add sorting links to HTML columns that support sorting
39
+	 *
40
+	 * @since 2.0.4
41
+	 * @since 2.0.5 Made static
42
+	 *
43
+	 * @static
44
+	 *
45 45
 	 * @param string $column_label Label for the table column
46 46
 	 * @param \GV\Template_Context $context
47 47
 	 *
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$sort_columns = $context->view->settings->get( 'sort_columns' );
53 53
 
54 54
 		if ( empty( $sort_columns ) ) {
55
-            return $column_label;
55
+			return $column_label;
56 56
 		}
57 57
 
58 58
 		if ( ! \GravityView_frontend::getInstance()->is_field_sortable( $context->field->ID, $context->view->form->form ) ) {
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
 	}
114 114
 
115 115
 	/**
116
-     * Returns the label for a column, with support for all deprecated filters
117
-     *
118
-     * @since 2.1
119
-     *
116
+	 * Returns the label for a column, with support for all deprecated filters
117
+	 *
118
+	 * @since 2.1
119
+	 *
120 120
 	 * @param \GV\Field $field
121 121
 	 * @param \GV\Template_Context $context
122 122
 	 */
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 		$column_label = apply_filters( 'gravityview/template/field/label', $column_label, $context );
140 140
 
141 141
 		return $column_label;
142
-    }
142
+	}
143 143
 
144 144
 	/**
145 145
 	 * Output the entry row.
@@ -208,15 +208,15 @@  discard block
 block discarded – undo
208 208
 				 */
209 209
 				do_action( 'gravityview/template/table/cells/before', $context );
210 210
 
211
-                /**
212
-                 * @action `gravityview_table_cells_before` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells.
213
-                 * @since 1.0.7
211
+				/**
212
+				 * @action `gravityview_table_cells_before` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells.
213
+				 * @since 1.0.7
214 214
 				 * @param \GravityView_View $this Current GravityView_View object
215 215
 				 * @deprecated Use `gravityview/template/table/cells/before`
216
-                 */
217
-                do_action( 'gravityview_table_cells_before', \GravityView_View::getInstance() );
216
+				 */
217
+				do_action( 'gravityview_table_cells_before', \GravityView_View::getInstance() );
218 218
 
219
-                foreach ( $fields->all() as $field ) {
219
+				foreach ( $fields->all() as $field ) {
220 220
 					$this->the_field( $field, $entry );
221 221
 				}
222 222
 
@@ -227,13 +227,13 @@  discard block
 block discarded – undo
227 227
 				 */
228 228
 				do_action( 'gravityview/template/table/cells/after', $context );
229 229
 
230
-                /**
231
-                 * @action `gravityview_table_cells_after` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells.
232
-                 * @since 1.0.7
230
+				/**
231
+				 * @action `gravityview_table_cells_after` Inside the `tr` while rendering each entry in the loop. Can be used to insert additional table cells.
232
+				 * @since 1.0.7
233 233
 				 * @param \GravityView_View $this Current GravityView_View object
234 234
 				 * @deprecated Use `gravityview/template/table/cells/after`
235
-                 */
236
-                do_action( 'gravityview_table_cells_after', \GravityView_View::getInstance() );
235
+				 */
236
+				do_action( 'gravityview_table_cells_after', \GravityView_View::getInstance() );
237 237
 
238 238
 				?>
239 239
 			</tr>
@@ -270,9 +270,9 @@  discard block
 block discarded – undo
270 270
 			'value' => $value,
271 271
 			'hide_empty' => false,
272 272
 			'zone_id' => 'directory_table-columns',
273
-            'label' => self::get_field_column_label( $field, $context ),
273
+			'label' => self::get_field_column_label( $field, $context ),
274 274
 			'markup' => '<td id="{{ field_id }}" class="{{ class }}" data-label="{{label_value:data-label}}">{{ value }}</td>',
275
-            'form' => $form,
275
+			'form' => $form,
276 276
 		);
277 277
 
278 278
 		$context = Template_Context::from_template( $this, compact( 'field' ) );
@@ -300,11 +300,11 @@  discard block
 block discarded – undo
300 300
 		do_action( 'gravityview/template/table/body/before', $context );
301 301
 
302 302
 		/**
303
-		* @action `gravityview_table_body_before` Inside the `tbody`, before any rows are rendered. Can be used to insert additional rows.
304
-		* @deprecated Use `gravityview/template/table/body/before`
305
-		* @since 1.0.7
306
-		* @param \GravityView_View $gravityview_view Current GravityView_View object.
307
-		*/
303
+		 * @action `gravityview_table_body_before` Inside the `tbody`, before any rows are rendered. Can be used to insert additional rows.
304
+		 * @deprecated Use `gravityview/template/table/body/before`
305
+		 * @since 1.0.7
306
+		 * @param \GravityView_View $gravityview_view Current GravityView_View object.
307
+		 */
308 308
 		do_action( 'gravityview_table_body_before', \GravityView_View::getInstance() /** ugh! */ );
309 309
 	}
310 310
 
@@ -326,11 +326,11 @@  discard block
 block discarded – undo
326 326
 		do_action( 'gravityview/template/table/body/after', $context );
327 327
 
328 328
 		/**
329
-		* @action `gravityview_table_body_after` Inside the `tbody`, after any rows are rendered. Can be used to insert additional rows.
330
-		* @deprecated Use `gravityview/template/table/body/after`
331
-		* @since 1.0.7
332
-		* @param \GravityView_View $gravityview_view Current GravityView_View object.
333
-		*/
329
+		 * @action `gravityview_table_body_after` Inside the `tbody`, after any rows are rendered. Can be used to insert additional rows.
330
+		 * @deprecated Use `gravityview/template/table/body/after`
331
+		 * @since 1.0.7
332
+		 * @param \GravityView_View $gravityview_view Current GravityView_View object.
333
+		 */
334 334
 		do_action( 'gravityview_table_body_after', \GravityView_View::getInstance() /** ugh! */ );
335 335
 	}
336 336
 
Please login to merge, or discard this patch.