From c1ba468807b5ceb9201c5b08888857e70055d928 Mon Sep 17 00:00:00 2001 From: Erik Thuning <boooink@gmail.com> Date: Tue, 19 Jul 2022 15:27:31 +0200 Subject: [PATCH] Whitespace cleanup --- include/User.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/User.php b/include/User.php index a34ca03..ba218b4 100644 --- a/include/User.php +++ b/include/User.php @@ -3,7 +3,7 @@ class User extends Entity { private $id = 0; private $name = ''; private $notes = ''; - + public static function create_user($name) { $ins_user = prepare('insert into `user`(`name`) values (?)'); bind($ins_user, 's', $name); @@ -34,7 +34,7 @@ class User extends Entity { $this->id = $id; $this->update_fields(); } - + private function update_fields() { $get = prepare('select * from `user` where `id`=?'); bind($get, 'i', $this->id); @@ -125,11 +125,11 @@ class User extends Entity { public function get_id() { return $this->id; } - + public function get_name() { return $this->name; } - + public function set_name($newname) { $update = prepare('update `user` set `name`=? where `id`=?'); bind($update, 'si', $newname, $this->id); @@ -141,7 +141,7 @@ class User extends Entity { public function get_notes() { return $this->notes; } - + public function set_notes($newnotes) { $update = prepare('update `user` set `notes`=? where `id`=?'); bind($update, 'si', $newnotes, $this->id); @@ -151,7 +151,7 @@ class User extends Entity { } public function get_loans($type = 'both') { - $statement = "select `id` from `event` + $statement = "select `id` from `event` left join `loan` on `event`.`id` = `loan`.`event` where `type`='loan' and `user`=?";