Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -37,8 +37,7 @@ class Invoice_List_Table extends Parent_Payment_List_Table {
);
return $columns;
} // end get_columns;
}
/**
* Clears the bulk actions.
@ -51,8 +50,5 @@ class Invoice_List_Table extends Parent_Payment_List_Table {
public function bulk_actions($which = '') {
return array();
} // end bulk_actions;
} // end class Invoice_List_Table;
}
}

View File

@ -35,8 +35,7 @@ class Product_List_Table extends Parent_Product_List_Table {
);
$this->current_mode = 'grid';
} // end __construct;
}
/**
* Returns the list of columns for this particular List Table.
@ -47,8 +46,7 @@ class Product_List_Table extends Parent_Product_List_Table {
public function get_columns() {
return array();
} // end get_columns;
}
/**
* Resets the filters.
@ -61,8 +59,7 @@ class Product_List_Table extends Parent_Product_List_Table {
'filters' => array(),
'date_filters' => array(),
);
} // end get_filters;
}
/**
* Resets bulk actions.
@ -75,8 +72,7 @@ class Product_List_Table extends Parent_Product_List_Table {
public function bulk_actions($which = '') {
return array();
} // end bulk_actions;
}
/**
* Renders the customer card for grid mode.
@ -88,11 +84,12 @@ class Product_List_Table extends Parent_Product_List_Table {
*/
public function single_row_grid($item) {
wu_get_template('base/products/grid-item', array(
'item' => $item,
'list_table' => $this,
));
} // end single_row_grid;
} // end class Product_List_Table;
wu_get_template(
'base/products/grid-item',
array(
'item' => $item,
'list_table' => $this,
)
);
}
}

View File

@ -35,8 +35,7 @@ class Site_List_Table extends Parent_Site_List_Table {
);
$this->current_mode = 'grid';
} // end __construct;
}
/**
* Returns the list of columns for this particular List Table.
@ -47,8 +46,7 @@ class Site_List_Table extends Parent_Site_List_Table {
public function get_columns() {
return array();
} // end get_columns;
}
/**
* Clears filters.
@ -61,8 +59,7 @@ class Site_List_Table extends Parent_Site_List_Table {
'filters' => array(),
'date_filters' => array(),
);
} // end get_filters;
}
/**
* Clears views.
@ -80,8 +77,7 @@ class Site_List_Table extends Parent_Site_List_Table {
'count' => 0,
),
);
} // end get_views;
}
/**
* Get the extra fields based on the request.
@ -93,13 +89,11 @@ class Site_List_Table extends Parent_Site_List_Table {
$customer = wu_get_current_customer();
if (!$customer) {
if ( ! $customer) {
return array(
'blog_id__in' => array('null_id'), // pass absurd value to make sure the query returns nothing.
);
} // end if;
}
$fields = parent::get_extra_fields();
@ -113,7 +107,5 @@ class Site_List_Table extends Parent_Site_List_Table {
);
return $fields;
} // end get_extra_fields;
} // end class Site_List_Table;
}
}