Skip to content

Commit 6c6d388

Browse files
author
Dominik Jansen
committed
style: apply code styling
1 parent e4e6b98 commit 6c6d388

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

demo/index.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)