From 73592fcaef0de612ae6f9c4bea02c35315ced0bf Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Thu, 13 Jun 2019 00:42:33 +0200 Subject: [PATCH] Apply fixes from StyleCI (#2768) --- app/Helpers/DateHelper.php | 2 +- app/Http/Controllers/Auth/RegisterController.php | 1 - app/Http/Controllers/ChangelogController.php | 1 - app/Http/Controllers/ContactsController.php | 1 - app/Http/Controllers/DAV/Backend/CalDAV/CalDAVBirthdays.php | 1 - app/Http/Controllers/DAV/Backend/CalDAV/CalDAVTasks.php | 1 - app/Http/Controllers/DashboardController.php | 1 - database/seeds/CurrenciesTableSeeder.php | 1 - tests/Api/Account/ApiUserControllerTest.php | 1 - tests/Api/ApiJournalTest.php | 1 - tests/Api/ApiTagControllerTest.php | 1 - tests/Commands/ImportCSVTest.php | 1 - tests/Commands/ImportVCardsTest.php | 1 - tests/Unit/Jobs/Reminder/NotifyUserAboutReminderTest.php | 1 - tests/Unit/Jobs/ScheduleStayInTouchTest.php | 1 - tests/Unit/Models/ContactTest.php | 1 - tests/Unit/Services/Account/DestroyAllDocumentsTest.php | 1 - tests/Unit/Services/Account/Photo/UploadPhotoTest.php | 1 - 18 files changed, 1 insertion(+), 18 deletions(-) diff --git a/app/Helpers/DateHelper.php b/app/Helpers/DateHelper.php index 7e47a622368..cfdb4b04e5a 100644 --- a/app/Helpers/DateHelper.php +++ b/app/Helpers/DateHelper.php @@ -257,7 +257,7 @@ public static function getMonthAndYear(int $month) : string * @param string $interval * @return Carbon */ - public static function getNextTheoriticalBillingDate(String $interval) : Carbon + public static function getNextTheoriticalBillingDate(string $interval) : Carbon { if ($interval == 'monthly') { return now(static::getTimezone())->addMonth(); diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index d4d19b10318..110655feec8 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -9,7 +9,6 @@ use App\Jobs\SendNewUserAlert; use App\Models\Account\Account; use App\Http\Controllers\Controller; -use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; diff --git a/app/Http/Controllers/ChangelogController.php b/app/Http/Controllers/ChangelogController.php index 5dc24bfdf6a..809d22f517f 100644 --- a/app/Http/Controllers/ChangelogController.php +++ b/app/Http/Controllers/ChangelogController.php @@ -3,7 +3,6 @@ namespace App\Http\Controllers; use Illuminate\Http\Request; -use App\Models\User\Changelog; use App\Helpers\InstanceHelper; class ChangelogController extends Controller diff --git a/app/Http/Controllers/ContactsController.php b/app/Http/Controllers/ContactsController.php index f1ad3ebefac..35d1d6c4c3b 100644 --- a/app/Http/Controllers/ContactsController.php +++ b/app/Http/Controllers/ContactsController.php @@ -11,7 +11,6 @@ use App\Helpers\LocaleHelper; use App\Helpers\SearchHelper; use App\Helpers\GendersHelper; -use App\Models\Contact\Gender; use App\Models\Contact\Contact; use App\Services\VCard\ExportVCard; use Illuminate\Support\Facades\Log; diff --git a/app/Http/Controllers/DAV/Backend/CalDAV/CalDAVBirthdays.php b/app/Http/Controllers/DAV/Backend/CalDAV/CalDAVBirthdays.php index 48e7308ae92..11065be099d 100644 --- a/app/Http/Controllers/DAV/Backend/CalDAV/CalDAVBirthdays.php +++ b/app/Http/Controllers/DAV/Backend/CalDAV/CalDAVBirthdays.php @@ -2,7 +2,6 @@ namespace App\Http\Controllers\DAV\Backend\CalDAV; -use Sabre\DAV; use App\Models\Contact\Contact; use Illuminate\Support\Facades\Log; use App\Models\Instance\SpecialDate; diff --git a/app/Http/Controllers/DAV/Backend/CalDAV/CalDAVTasks.php b/app/Http/Controllers/DAV/Backend/CalDAV/CalDAVTasks.php index 19c9a700ec9..70860317141 100644 --- a/app/Http/Controllers/DAV/Backend/CalDAV/CalDAVTasks.php +++ b/app/Http/Controllers/DAV/Backend/CalDAV/CalDAVTasks.php @@ -2,7 +2,6 @@ namespace App\Http\Controllers\DAV\Backend\CalDAV; -use Sabre\DAV; use Illuminate\Support\Arr; use App\Models\Contact\Task; use App\Services\Task\DestroyTask; diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index 23a8853400f..8da993c644c 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -8,7 +8,6 @@ use Illuminate\Http\Request; use function Safe\json_encode; use App\Helpers\InstanceHelper; -use App\Models\Contact\Contact; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Auth; use App\Http\Resources\Debt\Debt as DebtResource; diff --git a/database/seeds/CurrenciesTableSeeder.php b/database/seeds/CurrenciesTableSeeder.php index d7461ab6580..f6ac2198f7b 100644 --- a/database/seeds/CurrenciesTableSeeder.php +++ b/database/seeds/CurrenciesTableSeeder.php @@ -1,6 +1,5 @@