Make sure that helper functions are all static. Add new

File_Structure_Test to make sure we don't regress.

According to the PHP docs, the "public" keyword is implied on static
functions, so remove it.  Also, require private static functions to
start with an _.

http://php.net/manual/en/language.oop5.visibility.php
This commit is contained in:
Bharat Mediratta
2009-01-14 04:12:02 +00:00
parent 02af2d8b76
commit f3ba69c1d6
59 changed files with 280 additions and 257 deletions

View File

@@ -18,11 +18,11 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class comment_dashboard_Core {
public static function get_list() {
static function get_list() {
return array("recent_comments" => t("Recent Comments"));
}
public static function get_block($block_id) {
static function get_block($block_id) {
$block = new Block();
switch ($block_id) {
case "recent_comments":