PluginProbe
Polylang / 2.8
Polylang v2.8
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | settings/table-settings.php +12 -16 3.02.8 View file →
@@ -37,14 +37,13 @@
37 37 return array( 'wp-list-table', 'widefat', 'plugins', 'pll-settings' ); // get the style of the plugins list table + one specific class
38 38 }
39 39
40 40 /**
41 - * Displays a single row.
41 + * Displays a single row
42 42 *
43 43 * @since 1.8
44 44 *
45 - * @param PLL_Settings_Module $item Settings module item.
46 - * @return void
45 + * @param object $item PLL_Settings_Module object
47 46 */
48 47 public function single_row( $item ) {
49 48 // Classes to reuse css from the plugins list table
50 49 $classes = $item->is_active() ? 'active' : 'inactive';
@@ -88,14 +87,13 @@
88 87 }
89 88 }
90 89
91 90 /**
92 - * Generates the columns for a single row of the table.
91 + * Generates the columns for a single row of the table
93 92 *
94 93 * @since 1.8
95 94 *
96 - * @param PLL_Settings_Module $item Settings module item.
97 - * @return void
95 + * @param object $item The current item
98 96 */
99 97 protected function single_row_columns( $item ) {
100 98 $column_info = $this->get_column_info();
101 99 $columns = $column_info[0];
@@ -119,15 +117,15 @@
119 117 }
120 118 }
121 119
122 120 /**
123 - * Displays the item information in a column (default case).
121 + * Displays the item information in a column ( default case )
124 122 *
125 123 * @since 1.8
126 124 *
127 - * @param PLL_Settings_Module $item Settings module item.
128 - * @param string $column_name Column name.
129 - * @return string The column name.
125 + * @param object $item
126 + * @param string $column_name
127 + * @return string
130 128 */
131 129 protected function column_default( $item, $column_name ) {
132 130 if ( 'plugin-title' == $column_name ) {
133 131 return sprintf( '<strong>%s</strong>', esc_html( $item->title ) ) . $this->row_actions( $item->get_action_links(), true /*always visible*/ );
@@ -135,13 +133,13 @@
135 133 return $item->$column_name;
136 134 }
137 135
138 136 /**
139 - * Gets the list of columns.
137 + * Gets the list of columns
140 138 *
141 139 * @since 1.8
142 140 *
143 - * @return string[] The list of column titles.
141 + * @return array the list of column titles
144 142 */
145 143 public function get_columns() {
146 144 return array(
147 145 'cb' => '', // For the 4px border inherited from plugins when the module is activated
@@ -165,10 +163,9 @@
165 163 * Prepares the list of items for displaying
166 164 *
167 165 * @since 1.8
168 166 *
169 - * @param PLL_Settings_Module[] $items Array of settings module items.
170 - * @return void
167 + * @param array $items
171 168 */
172 169 public function prepare_items( $items = array() ) {
173 170 $this->_column_headers = array( $this->get_columns(), array(), $this->get_sortable_columns(), $this->get_primary_column_name() );
174 171
@@ -187,8 +184,7 @@
187 184 *
188 185 * @since 2.1
189 186 *
190 187 * @param string $which 'top' or 'bottom'
191 - * @return void
192 188 */
193 - protected function display_tablenav( $which ) {} // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
189 + protected function display_tablenav( $which ) {}
194 190 }