Apply fixes from StyleCI (#732)

[ci skip] [skip ci]
This commit is contained in:
Dane Everitt 2017-11-05 13:40:12 -05:00 committed by GitHub
parent e945033c95
commit aa86fe83e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ class ScheduleCreationFormRequest extends ServerFormRequest
{ {
$restructured = []; $restructured = [];
foreach (array_get($this->all(), 'tasks', []) as $key => $values) { foreach (array_get($this->all(), 'tasks', []) as $key => $values) {
for ($i = 0; $i < count($values); ++$i) { for ($i = 0; $i < count($values); $i++) {
$restructured[$i][$key] = $values[$i]; $restructured[$i][$key] = $values[$i];
} }
} }

View file

@ -31,7 +31,7 @@ class MacroServiceProvider extends ServiceProvider
$i = 0; $i = 0;
while (($size / 1024) > 0.9) { while (($size / 1024) > 0.9) {
$size = $size / 1024; $size = $size / 1024;
++$i; $i++;
} }
return round($size, ($i < 2) ? 0 : $precision) . ' ' . $units[$i]; return round($size, ($i < 2) ? 0 : $precision) . ' ' . $units[$i];

View file

@ -20,7 +20,7 @@ if (! function_exists('human_readable')) {
$i = 0; $i = 0;
while (($path / 1024) > 0.9) { while (($path / 1024) > 0.9) {
$path = $path / 1024; $path = $path / 1024;
++$i; $i++;
} }
return round($path, $precision) . ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'][$i]; return round($path, $precision) . ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'][$i];