@@ -25,7 +25,8 @@ function getUrl(): ?string
25
25
return $ url ;
26
26
}
27
27
28
- function getParam (string $ paramName ): ?string {
28
+ function getParam (string $ paramName ): ?string
29
+ {
29
30
return $ _GET [$ paramName ] ?? null ;
30
31
}
31
32
@@ -183,7 +184,7 @@ function printCode(?string $code, bool $asHtml = true): void
183
184
</label>
184
185
<label>
185
186
<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 ' ); ?> ">
187
188
</label>
188
189
</fieldset>
189
190
@@ -194,7 +195,7 @@ function printCode(?string $code, bool $asHtml = true): void
194
195
</fieldset>
195
196
</form>
196
197
197
- <?php if (getUrl ()): ?>
198
+ <?php if (getUrl ()) : ?>
198
199
<main>
199
200
<h1>Result:</h1>
200
201
@@ -224,7 +225,7 @@ function printCode(?string $code, bool $asHtml = true): void
224
225
?>
225
226
226
227
<table>
227
- <?php foreach ($ detectors as $ name => $ fn ): ?>
228
+ <?php foreach ($ detectors as $ name => $ fn ) : ?>
228
229
<tr>
229
230
<th><?php echo $ name ; ?> </th>
230
231
<td><?php $ fn ($ info ->$ name ); ?> </td>
@@ -268,7 +269,7 @@ function printCode(?string $code, bool $asHtml = true): void
268
269
</tr>
269
270
</table>
270
271
271
- <?php if (method_exists ($ info , 'getApi ' )): ?>
272
+ <?php if (method_exists ($ info , 'getApi ' )) : ?>
272
273
<h2>API data</h2>
273
274
274
275
<table>
0 commit comments