Skip to content

Commit 4898d4f

Browse files
committed
Merge branch 'develop' of https://github.com/Pterodactyl/Panel into develop
2 parents 22ba6cb + aa86fe8 commit 4898d4f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/Http/Requests/Server/ScheduleCreationFormRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function getTasks()
6969
{
7070
$restructured = [];
7171
foreach (array_get($this->all(), 'tasks', []) as $key => $values) {
72-
for ($i = 0; $i < count($values); ++$i) {
72+
for ($i = 0; $i < count($values); $i++) {
7373
$restructured[$i][$key] = $values[$i];
7474
}
7575
}

app/Providers/MacroServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function boot()
3131
$i = 0;
3232
while (($size / 1024) > 0.9) {
3333
$size = $size / 1024;
34-
++$i;
34+
$i++;
3535
}
3636

3737
return round($size, ($i < 2) ? 0 : $precision) . ' ' . $units[$i];

app/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function human_readable($path, $precision = 2)
2020
$i = 0;
2121
while (($path / 1024) > 0.9) {
2222
$path = $path / 1024;
23-
++$i;
23+
$i++;
2424
}
2525

2626
return round($path, $precision) . ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'][$i];

0 commit comments

Comments
 (0)