Skip to content

Commit 73a9c62

Browse files
committed
fix CS & stan
Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
1 parent 8931345 commit 73a9c62

2 files changed

Lines changed: 31 additions & 31 deletions

File tree

lib/PhpStatistics.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ protected function getAPCuStatus(): array {
9898
];
9999
}
100100

101-
/**
102-
* Get all loaded php extensions
103-
*
104-
* @return array|null of strings with the names of the loaded extensions
105-
*/
101+
/**
102+
* Get all loaded php extensions
103+
*
104+
* @return array|null of strings with the names of the loaded extensions
105+
*/
106106
protected function getLoadedPhpExtensions(): ?array {
107-
if (!function_exists('get_loaded_extensions')) {
108-
return null;
109-
}
107+
if (!function_exists('get_loaded_extensions')) {
108+
return null;
109+
}
110110
$extensions = get_loaded_extensions();
111-
sort($extensions);
111+
sort($extensions);
112112

113-
return $extensions;
113+
return $extensions;
114114
}
115115
}

templates/settings-admin.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,15 @@ function FormatMegabytes(int $byte): string {
365365
</tr>
366366
<tr>
367367
<td><?php p($l->t('Memory limit:')); ?></td>
368-
<td class="info"><?php p($_['php']['memory_limit']/1024/1024); ?> <?php p($l->t('MB')); ?></td>
368+
<td class="info"><?php p($_['php']['memory_limit'] / 1024 / 1024); ?> <?php p($l->t('MB')); ?></td>
369369
</tr>
370370
<tr>
371371
<td><?php p($l->t('Max execution time:')); ?></td>
372372
<td class="info"><?php p($_['php']['max_execution_time']); ?> <?php p($l->t('seconds')); ?></td>
373373
</tr>
374374
<tr>
375375
<td><?php p($l->t('Upload max size:')); ?></td>
376-
<td class="info"><?php p($_['php']['upload_max_filesize']/1024/1024); ?> <?php p($l->t('MB')); ?></td>
376+
<td class="info"><?php p($_['php']['upload_max_filesize'] / 1024 / 1024); ?> <?php p($l->t('MB')); ?></td>
377377
</tr>
378378
<tr>
379379
<td><?php p($l->t('OPcache Revalidate Frequency:')); ?></td>
@@ -382,18 +382,18 @@ function FormatMegabytes(int $byte): string {
382382
<tr>
383383
<td><?php p($l->t('Extensions:')); ?></td>
384384
<td class="info"><div class="server-info__tag-wrapper"><?php
385-
if($_['php']['extensions'] !== null):
386-
foreach($_['php']['extensions'] as $extension):?>
385+
if ($_['php']['extensions'] !== null):
386+
foreach ($_['php']['extensions'] as $extension):?>
387387
<span class="server-info__php-extension-tag"><?= $extension ?></span>
388388
<?php
389-
endforeach;
390-
else:
391-
$l->t('Unable to list extensions');
392-
endif;
393-
?>
389+
endforeach;
390+
else:
391+
$l->t('Unable to list extensions');
392+
endif;
393+
?>
394394
</div></td>
395395
</tr>
396-
<?php if($phpinfo): ?>
396+
<?php if ($phpinfo): ?>
397397
<tr>
398398
<td><?php p($l->t('PHP Info:')); ?></td>
399399
<td>
@@ -419,43 +419,43 @@ function FormatMegabytes(int $byte): string {
419419
</tr>
420420
<tr>
421421
<td><?php p($l->t('Start time:')); ?></td>
422-
<td class="info"><?php p($_['fpm']["start-time"]); ?></td>
422+
<td class="info"><?php p($_['fpm']['start-time']); ?></td>
423423
</tr>
424424
<tr>
425425
<td><?php p($l->t('Accepted connections:')); ?></td>
426-
<td class="info"><?php p($_['fpm']["accepted-conn"]); ?></td>
426+
<td class="info"><?php p($_['fpm']['accepted-conn']); ?></td>
427427
</tr>
428428
<tr>
429429
<td><?php p($l->t('Total processes:')); ?></td>
430-
<td class="info"><?php p($_['fpm']["total-processes"]); ?></td>
430+
<td class="info"><?php p($_['fpm']['total-processes']); ?></td>
431431
</tr>
432432
<tr>
433433
<td><?php p($l->t('Active processes:')); ?></td>
434-
<td class="info"><?php p($_['fpm']["active-processes"]); ?></td>
434+
<td class="info"><?php p($_['fpm']['active-processes']); ?></td>
435435
</tr>
436436
<tr>
437437
<td><?php p($l->t('Idle processes:')); ?></td>
438-
<td class="info"><?php p($_['fpm']["idle-processes"]); ?></td>
438+
<td class="info"><?php p($_['fpm']['idle-processes']); ?></td>
439439
</tr>
440440
<tr>
441441
<td><?php p($l->t('Listen queue:')); ?></td>
442-
<td class="info"><?php p($_['fpm']["listen-queue"]); ?></td>
442+
<td class="info"><?php p($_['fpm']['listen-queue']); ?></td>
443443
</tr>
444444
<tr>
445445
<td><?php p($l->t('Slow requests:')); ?></td>
446-
<td class="info"><?php p($_['fpm']["slow-requests"]); ?></td>
446+
<td class="info"><?php p($_['fpm']['slow-requests']); ?></td>
447447
</tr>
448448
<tr>
449449
<td><?php p($l->t('Max listen queue:')); ?></td>
450-
<td class="info"><?php p($_['fpm']["max-listen-queue"]); ?></td>
450+
<td class="info"><?php p($_['fpm']['max-listen-queue']); ?></td>
451451
</tr>
452452
<tr>
453453
<td><?php p($l->t('Max active processes:')); ?></td>
454-
<td class="info"><?php p($_['fpm']["max-active-processes"]); ?></td>
454+
<td class="info"><?php p($_['fpm']['max-active-processes']); ?></td>
455455
</tr>
456456
<tr>
457457
<td><?php p($l->t('Max children reached:')); ?></td>
458-
<td class="info"><?php p($_['fpm']["max-children-reached"]); ?></td>
458+
<td class="info"><?php p($_['fpm']['max-children-reached']); ?></td>
459459
</tr>
460460
</tbody>
461461
</table>
@@ -482,7 +482,7 @@ function FormatMegabytes(int $byte): string {
482482
</tr>
483483
<tr>
484484
<td><?php p($l->t('Size:')); ?></td>
485-
<td class="info"><?php p($_['database']['size']/1024/1024); ?> <?php p($l->t('MB')); ?></td>
485+
<td class="info"><?php p($_['database']['size'] / 1024 / 1024); ?> <?php p($l->t('MB')); ?></td>
486486
</tr>
487487
</tbody>
488488
</table>

0 commit comments

Comments
 (0)