| @@ -8,7 +8,7 @@ namespace HN\Models; |
| 8 | 8 | * @access public |
| 9 | 9 | * @param string $api_url The API endpoint to use for extraction |
| 10 | 10 | * @return mixed The API results formatted into an HTML section |
| 11 | | * @author Christian Cleberg <hello@cmc.pub> |
| 11 | * @author Christian Cleberg <hello@cleberg.net> |
| 12 | 12 | */ |
| 13 | 13 | function GetApiResults(string $api_url): mixed |
| 14 | 14 | { |
| @@ -23,7 +23,7 @@ function GetApiResults(string $api_url): mixed |
| 23 | 23 | * @param mixed $api_results The decoded API results |
| 24 | 24 | * @param string $inline_title The <h1> title to use in the HTML |
| 25 | 25 | * @return string $html_output The formatted HTML result of stories from the API or the error message |
| 26 | | * @author Christian Cleberg <hello@cmc.pub> |
| 26 | * @author Christian Cleberg <hello@cleberg.net> |
| 27 | 27 | */ |
| 28 | 28 | function ParseStories(mixed $api_results, string $inline_title): string |
| 29 | 29 | { |
| @@ -47,7 +47,7 @@ function ParseStories(mixed $api_results, string $inline_title): string |
| 47 | 47 | * @param mixed $api_results The decoded API results |
| 48 | 48 | * @param string $inline_title The <h1> title to use in the HTML |
| 49 | 49 | * @return string $html_output The formatted HTML result of stories from the API |
| 50 | | * @author Christian Cleberg <hello@cmc.pub> |
| 50 | * @author Christian Cleberg <hello@cleberg.net> |
| 51 | 51 | */ |
| 52 | 52 | function ParseUser(mixed $api_results, string $inline_title): string |
| 53 | 53 | { |
| @@ -94,7 +94,7 @@ function ParseUser(mixed $api_results, string $inline_title): string |
| 94 | 94 | * @param mixed $api_results The decoded API results |
| 95 | 95 | * @param string $inline_title The <h1> title to use in the HTML |
| 96 | 96 | * @return string $html_output The formatted HTML result of stories from the API or the error message |
| 97 | | * @author Christian Cleberg <hello@cmc.pub> |
| 97 | * @author Christian Cleberg <hello@cleberg.net> |
| 98 | 98 | */ |
| 99 | 99 | function ParseItem(mixed $api_results): string |
| 100 | 100 | { |
| @@ -132,7 +132,7 @@ function ParseItem(mixed $api_results): string |
| 132 | 132 | * @access public |
| 133 | 133 | * @param mixed $api_results The decoded API results |
| 134 | 134 | * @return string The formatted HTML result of stories from the API or the error message |
| 135 | | * @author Christian Cleberg <hello@cmc.pub> |
| 135 | * @author Christian Cleberg <hello@cleberg.net> |
| 136 | 136 | */ |
| 137 | 137 | function GetItem(mixed $api_results): string |
| 138 | 138 | { |
| @@ -154,7 +154,7 @@ function GetItem(mixed $api_results): string |
| 154 | 154 | * @access public |
| 155 | 155 | * @param mixed $api_results The decoded API results |
| 156 | 156 | * @return string The formatted HTML result of stories from the API or the error message |
| 157 | | * @author Christian Cleberg <hello@cmc.pub> |
| 157 | * @author Christian Cleberg <hello@cleberg.net> |
| 158 | 158 | */ |
| 159 | 159 | function ConstructStory(mixed $api_results): string |
| 160 | 160 | { |
| @@ -189,7 +189,7 @@ function ConstructStory(mixed $api_results): string |
| 189 | 189 | * @access public |
| 190 | 190 | * @param mixed $api_results The decoded API results |
| 191 | 191 | * @return string The formatted HTML result of stories from the API or the error message |
| 192 | | * @author Christian Cleberg <hello@cmc.pub> |
| 192 | * @author Christian Cleberg <hello@cleberg.net> |
| 193 | 193 | */ |
| 194 | 194 | function ConstructStoryDiscussion(mixed $api_results): string |
| 195 | 195 | { |
| @@ -241,7 +241,7 @@ function ConstructStoryDiscussion(mixed $api_results): string |
| 241 | 241 | * @access public |
| 242 | 242 | * @param mixed $api_results The decoded API results |
| 243 | 243 | * @return string The formatted HTML result of stories from the API or the error message |
| 244 | | * @author Christian Cleberg <hello@cmc.pub> |
| 244 | * @author Christian Cleberg <hello@cleberg.net> |
| 245 | 245 | */ |
| 246 | 246 | function ConstructComment(mixed $api_results): string |
| 247 | 247 | { |
| @@ -265,7 +265,7 @@ function ConstructComment(mixed $api_results): string |
| 265 | 265 | * @access public |
| 266 | 266 | * @param mixed $api_results The decoded API results |
| 267 | 267 | * @return string The formatted HTML result of stories from the API or the error message |
| 268 | | * @author Christian Cleberg <hello@cmc.pub> |
| 268 | * @author Christian Cleberg <hello@cleberg.net> |
| 269 | 269 | */ |
| 270 | 270 | function ConstructPoll(mixed $api_results): string |
| 271 | 271 | { |
| @@ -278,7 +278,7 @@ function ConstructPoll(mixed $api_results): string |
| 278 | 278 | * @access public |
| 279 | 279 | * @param mixed $api_results The decoded API results |
| 280 | 280 | * @return string The formatted HTML result of stories from the API or the error message |
| 281 | | * @author Christian Cleberg <hello@cmc.pub> |
| 281 | * @author Christian Cleberg <hello@cleberg.net> |
| 282 | 282 | */ |
| 283 | 283 | function ConstructPollOpt(mixed $api_results): string |
| 284 | 284 | { |