diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-07-20 12:29:11 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-07-20 12:29:11 -0600 |
commit | 3c5828b1a787bffa6e886a4952741e4bcaeb43b9 (patch) | |
tree | 5e40fd78ad3c5301c62207ecfa4bd109a582db69 /includes/model/Post.php | |
parent | f5e972c030675f46cda543e13da1b787457e070b (diff) |
A bit of code cleanup
Diffstat (limited to 'includes/model/Post.php')
-rwxr-xr-x | includes/model/Post.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/model/Post.php b/includes/model/Post.php index 1b64490..46a0af0 100755 --- a/includes/model/Post.php +++ b/includes/model/Post.php @@ -78,8 +78,8 @@ class Post $this->has_value = true;
}
- public function has_value()
- {
+ public function has_value(): bool
+ {
return $this->has_value;
}
@@ -175,8 +175,7 @@ class Post $posts = array();
foreach ($result as $row) {
- $post = new Post();
- $post->get_from_database($row['post_id']);
+ $post = new Post($row['post_id']);
array_push($posts, $post);
}
|