From 1f9024763d9224c4cd9a181bac27e6b9f12ad672 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 18 Sep 2024 14:14:53 -0400 Subject: refactor --- src/web/_controller/bucket.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/web/_controller/bucket.php') diff --git a/src/web/_controller/bucket.php b/src/web/_controller/bucket.php index ed15ef8..a7d1023 100644 --- a/src/web/_controller/bucket.php +++ b/src/web/_controller/bucket.php @@ -3,12 +3,13 @@ class Bucket_controller extends Controller { private $bucket_model; - function __construct($load) { - parent::__construct($load); - $this->bucket_model = $this->load->model('bucket'); + function __construct() + { + $this->bucket_model = $this->load_model('bucket'); } - public function index(): void { + public function index(): void + { parent::index(); $data = $this->bucket_model->get_data(); if ($data === NULL) { -- cgit v1.2.3-freya