From 38c35f9bff694027b75cba33e7c5d19545db7e57 Mon Sep 17 00:00:00 2001 From: Greg Sarjeant Date: Wed, 6 Aug 2025 01:07:50 +0000 Subject: [PATCH] Convert snake_case class functions to camelCase. (#61) Convert moodView class functions to camelCase Closes https://gitea.subcultureofone.org/greg/tkr/issues/34 Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/61 Co-authored-by: Greg Sarjeant Co-committed-by: Greg Sarjeant --- src/Controller/MoodController/MoodController.php | 2 +- src/View/MoodView/MoodView.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Controller/MoodController/MoodController.php b/src/Controller/MoodController/MoodController.php index 90a6394..fc4eb1e 100644 --- a/src/Controller/MoodController/MoodController.php +++ b/src/Controller/MoodController/MoodController.php @@ -7,7 +7,7 @@ declare(strict_types=1); $view = new MoodView(); - $moodPicker = $view->render_mood_picker(self::getEmojisWithLabels(), $app['user']->mood); + $moodPicker = $view->renderMoodPicker(self::getEmojisWithLabels(), $app['user']->mood); $vars = [ 'config' => $app['config'], diff --git a/src/View/MoodView/MoodView.php b/src/View/MoodView/MoodView.php index 3e5b13f..68b6b93 100644 --- a/src/View/MoodView/MoodView.php +++ b/src/View/MoodView/MoodView.php @@ -2,7 +2,7 @@ declare(strict_types=1); class MoodView { - private function render_emoji_groups(array $emojiGroups, string $currentMood): string { + private function renderEmojiGroups(array $emojiGroups, string $currentMood): string { $selected_emoji = $currentMood; //user->mood; ob_start(); @@ -29,12 +29,12 @@ class MoodView { return ob_get_clean(); } - function render_mood_picker(array $emojiGroups, string $currentMood): string { + function renderMoodPicker(array $emojiGroups, string $currentMood): string { ob_start(); ?>
- render_emoji_groups($emojiGroups, $currentMood) ?> + renderEmojiGroups($emojiGroups, $currentMood) ?>