@@ -25,7 +25,8 @@ function getUrl(): ?string
2525 return $ url ;
2626}
2727
28- function getParam (string $ paramName ): ?string {
28+ function getParam (string $ paramName ): ?string
29+ {
2930 return $ _GET [$ paramName ] ?? null ;
3031}
3132
@@ -183,7 +184,7 @@ function printCode(?string $code, bool $asHtml = true): void
183184 </label>
184185 <label>
185186 <span>Facebook Token:</span>
186- <input type="text" name="facebook_token" placeholder="1234|5678" value="<?php echo getParam ('facebook_token ' ) ?> ">
187+ <input type="text" name="facebook_token" placeholder="1234|5678" value="<?php echo getParam ('facebook_token ' ); ?> ">
187188 </label>
188189 </fieldset>
189190
@@ -194,7 +195,7 @@ function printCode(?string $code, bool $asHtml = true): void
194195 </fieldset>
195196 </form>
196197
197- <?php if (getUrl ()): ?>
198+ <?php if (getUrl ()) : ?>
198199 <main>
199200 <h1>Result:</h1>
200201
@@ -224,7 +225,7 @@ function printCode(?string $code, bool $asHtml = true): void
224225 ?>
225226
226227 <table>
227- <?php foreach ($ detectors as $ name => $ fn ): ?>
228+ <?php foreach ($ detectors as $ name => $ fn ) : ?>
228229 <tr>
229230 <th><?php echo $ name ; ?> </th>
230231 <td><?php $ fn ($ info ->$ name ); ?> </td>
@@ -268,7 +269,7 @@ function printCode(?string $code, bool $asHtml = true): void
268269 </tr>
269270 </table>
270271
271- <?php if (method_exists ($ info , 'getApi ' )): ?>
272+ <?php if (method_exists ($ info , 'getApi ' )) : ?>
272273 <h2>API data</h2>
273274
274275 <table>
0 commit comments