From aa86fe83e8ee0651ce7dc49f8d7488f4bea330b5 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 5 Nov 2017 13:40:12 -0500 Subject: [PATCH] Apply fixes from StyleCI (#732) [ci skip] [skip ci] --- app/Http/Requests/Server/ScheduleCreationFormRequest.php | 2 +- app/Providers/MacroServiceProvider.php | 2 +- app/helpers.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Requests/Server/ScheduleCreationFormRequest.php b/app/Http/Requests/Server/ScheduleCreationFormRequest.php index b892605b7..2be18434f 100644 --- a/app/Http/Requests/Server/ScheduleCreationFormRequest.php +++ b/app/Http/Requests/Server/ScheduleCreationFormRequest.php @@ -69,7 +69,7 @@ class ScheduleCreationFormRequest extends ServerFormRequest { $restructured = []; 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]; } } diff --git a/app/Providers/MacroServiceProvider.php b/app/Providers/MacroServiceProvider.php index ab6ab8926..014e8f7af 100644 --- a/app/Providers/MacroServiceProvider.php +++ b/app/Providers/MacroServiceProvider.php @@ -31,7 +31,7 @@ class MacroServiceProvider extends ServiceProvider $i = 0; while (($size / 1024) > 0.9) { $size = $size / 1024; - ++$i; + $i++; } return round($size, ($i < 2) ? 0 : $precision) . ' ' . $units[$i]; diff --git a/app/helpers.php b/app/helpers.php index 0c9004695..bfb12cc7a 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -20,7 +20,7 @@ if (! function_exists('human_readable')) { $i = 0; while (($path / 1024) > 0.9) { $path = $path / 1024; - ++$i; + $i++; } return round($path, $precision) . ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'][$i];