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