@@ -230,8 +230,8 @@ discard block |
||
| 230 | 230 | return $this->get_pagenum(); |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | - if ( isset( $this->_pagination_args[ $key ] ) ) { |
|
| 234 | - return $this->_pagination_args[ $key ]; |
|
| 233 | + if ( isset( $this->_pagination_args[$key] ) ) { |
|
| 234 | + return $this->_pagination_args[$key]; |
|
| 235 | 235 | } |
| 236 | 236 | } |
| 237 | 237 | |
@@ -281,8 +281,8 @@ discard block |
||
| 281 | 281 | * @return void |
| 282 | 282 | */ |
| 283 | 283 | private function hidden_search_inputs( $param_name ) { |
| 284 | - if ( ! empty( $_REQUEST[ $param_name ] ) ) { |
|
| 285 | - $value = sanitize_text_field( wp_unslash( $_REQUEST[ $param_name ] ) ); |
|
| 284 | + if ( ! empty( $_REQUEST[$param_name] ) ) { |
|
| 285 | + $value = sanitize_text_field( wp_unslash( $_REQUEST[$param_name] ) ); |
|
| 286 | 286 | echo '<input type="hidden" name="' . esc_attr( $param_name ) . '" value="' . esc_attr( $value ) . '" />'; |
| 287 | 287 | } |
| 288 | 288 | } |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | |
| 325 | 325 | echo "<ul class='subsubsub'>\n"; |
| 326 | 326 | foreach ( $views as $class => $view ) { |
| 327 | - $views[ $class ] = "\t" . '<li class="' . esc_attr( $class ) . '">' . $view; |
|
| 327 | + $views[$class] = "\t" . '<li class="' . esc_attr( $class ) . '">' . $view; |
|
| 328 | 328 | } |
| 329 | 329 | echo implode( " |</li>\n", $views ) . "</li>\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 330 | 330 | echo '</ul>'; |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | |
| 491 | 491 | $out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">'; |
| 492 | 492 | foreach ( $actions as $action => $link ) { |
| 493 | - ++$i; |
|
| 493 | + ++ $i; |
|
| 494 | 494 | $sep = $i === $action_count ? '' : ' | '; |
| 495 | 495 | $out .= "<span class='$action'>$link$sep</span>"; |
| 496 | 496 | } |
@@ -723,7 +723,7 @@ discard block |
||
| 723 | 723 | 'next' => __( 'Next page', 'formidable' ), |
| 724 | 724 | ); |
| 725 | 725 | |
| 726 | - return $labels[ $link ]; |
|
| 726 | + return $labels[$link]; |
|
| 727 | 727 | } |
| 728 | 728 | |
| 729 | 729 | private function current_url() { |
@@ -828,7 +828,7 @@ discard block |
||
| 828 | 828 | |
| 829 | 829 | // If the primary column doesn't exist fall back to the |
| 830 | 830 | // first non-checkbox column. |
| 831 | - if ( ! isset( $columns[ $default ] ) ) { |
|
| 831 | + if ( ! isset( $columns[$default] ) ) { |
|
| 832 | 832 | $default = self::get_default_primary_column_name(); |
| 833 | 833 | } |
| 834 | 834 | |
@@ -842,7 +842,7 @@ discard block |
||
| 842 | 842 | */ |
| 843 | 843 | $column = apply_filters( 'list_table_primary_column', $default, $this->screen->id ); |
| 844 | 844 | |
| 845 | - if ( empty( $column ) || ! isset( $columns[ $column ] ) ) { |
|
| 845 | + if ( empty( $column ) || ! isset( $columns[$column] ) ) { |
|
| 846 | 846 | $column = $default; |
| 847 | 847 | } |
| 848 | 848 | |
@@ -863,7 +863,7 @@ discard block |
||
| 863 | 863 | // In 4.3, we added a fourth argument for primary column. |
| 864 | 864 | $column_headers = array( array(), array(), array(), $this->get_primary_column_name() ); |
| 865 | 865 | foreach ( $this->_column_headers as $key => $value ) { |
| 866 | - $column_headers[ $key ] = $value; |
|
| 866 | + $column_headers[$key] = $value; |
|
| 867 | 867 | } |
| 868 | 868 | |
| 869 | 869 | return $column_headers; |
@@ -896,7 +896,7 @@ discard block |
||
| 896 | 896 | $data[1] = false; |
| 897 | 897 | } |
| 898 | 898 | |
| 899 | - $sortable[ $id ] = $data; |
|
| 899 | + $sortable[$id] = $data; |
|
| 900 | 900 | } |
| 901 | 901 | |
| 902 | 902 | $primary = $this->get_primary_column_name(); |
@@ -954,7 +954,7 @@ discard block |
||
| 954 | 954 | static $cb_counter = 1; |
| 955 | 955 | $columns['cb'] = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' . __( 'Select All', 'formidable' ) . '</label>'; |
| 956 | 956 | $columns['cb'] .= '<input id="cb-select-all-' . esc_attr( $cb_counter ) . '" type="checkbox" />'; |
| 957 | - ++$cb_counter; |
|
| 957 | + ++ $cb_counter; |
|
| 958 | 958 | } |
| 959 | 959 | |
| 960 | 960 | foreach ( $columns as $column_key => $column_display_name ) { |
@@ -976,8 +976,8 @@ discard block |
||
| 976 | 976 | $class[] = 'column-primary'; |
| 977 | 977 | } |
| 978 | 978 | |
| 979 | - if ( isset( $sortable[ $column_key ] ) ) { |
|
| 980 | - list( $orderby, $desc_first ) = $sortable[ $column_key ]; |
|
| 979 | + if ( isset( $sortable[$column_key] ) ) { |
|
| 980 | + list( $orderby, $desc_first ) = $sortable[$column_key]; |
|
| 981 | 981 | |
| 982 | 982 | if ( $current_orderby == $orderby ) { |
| 983 | 983 | // The sorted column. The `aria-sort` attribute must be set only on the sorted column. |
@@ -1094,7 +1094,7 @@ discard block |
||
| 1094 | 1094 | * @return bool Returns true if the setting is not set or if it is not false; otherwise, returns false. |
| 1095 | 1095 | */ |
| 1096 | 1096 | protected function should_display( $args, $settings ) { |
| 1097 | - return ! isset( $args[ $settings ] ) || false !== $args[ $settings ]; |
|
| 1097 | + return ! isset( $args[$settings] ) || false !== $args[$settings]; |
|
| 1098 | 1098 | } |
| 1099 | 1099 | |
| 1100 | 1100 | /** |