From 519c696009b266b0a691b767687aaef7e2be055c Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 16 Feb 2024 00:14:20 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/AbstractSeatPlugin.php | 2 +- src/Commands/Seat/Admin/Email.php | 2 +- src/Commands/Seat/Version.php | 2 +- src/Config/services.config.php | 2 +- src/Contracts/EsiClient.php | 2 +- src/Contracts/EsiResponse.php | 2 +- src/Contracts/EsiToken.php | 2 +- src/Exceptions/EveImageException.php | 2 +- src/Exceptions/FilterException.php | 2 +- src/Exceptions/SettingException.php | 2 +- src/Facades/DeferredMigration.php | 22 ++++++++++++++++- src/Helpers/AnalyticsContainer.php | 24 +++++++++---------- src/Helpers/helpers.php | 12 +++++----- src/Image/Eve.php | 6 ++--- src/Jobs/Analytics.php | 14 +++++------ src/Listeners/RunDeferredMigrations.php | 22 ++++++++++++++++- src/ReportParser/Elements/Element.php | 8 +++---- src/ReportParser/Elements/Group.php | 2 +- .../Exceptions/EmptyReportException.php | 2 +- .../InvalidReportElementException.php | 2 +- .../Exceptions/InvalidReportException.php | 2 +- .../InvalidReportGroupException.php | 2 +- .../MissingReportGroupException.php | 2 +- .../MissingReportHeaderException.php | 2 +- src/ReportParser/Parsers/MoonReport.php | 2 +- src/ReportParser/ReportParser.php | 2 +- src/Services/DeferredMigrationRegistry.php | 24 +++++++++++++++++-- src/ServicesServiceProvider.php | 3 +-- src/Settings/Profile.php | 8 +++---- src/Settings/Seat.php | 12 +++++----- src/Settings/Settings.php | 10 ++++---- .../EveOnline/EveOnlineExtendSocialite.php | 2 +- src/Traits/NotableTrait.php | 8 +++---- src/Traits/VersionsManagementTrait.php | 2 +- ...12_create_eve_notification_types_table.php | 2 +- ...1_28_053529_create_user_settings_table.php | 2 +- ...28_071315_create_global_settings_table.php | 2 +- ...15_12_01_201414_create_schedules_table.php | 2 +- .../2016_11_19_065120_create_notes_table.php | 2 +- ...5441_convert_value_from_string_to_text.php | 2 +- ...8_05_18_185619_move_settings_to_groups.php | 2 +- ..._181511_create_historical_prices_table.php | 2 +- ...064533_alter_historical_prices_columns.php | 2 +- ...4_27_231132_convert_sso_scopes_to_list.php | 8 +++---- ...20_05_10_101541_drop_historical_prices.php | 2 +- ..._120325_convert_chinese_language_value.php | 2 +- src/database/seeders/PluginDatabaseSeeder.php | 2 +- 47 files changed, 153 insertions(+), 94 deletions(-) diff --git a/src/AbstractSeatPlugin.php b/src/AbstractSeatPlugin.php index 09a2490e..a6c205c5 100644 --- a/src/AbstractSeatPlugin.php +++ b/src/AbstractSeatPlugin.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Commands/Seat/Admin/Email.php b/src/Commands/Seat/Admin/Email.php index bd032968..67dbb761 100644 --- a/src/Commands/Seat/Admin/Email.php +++ b/src/Commands/Seat/Admin/Email.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Commands/Seat/Version.php b/src/Commands/Seat/Version.php index 9b05c72b..996f5d57 100644 --- a/src/Commands/Seat/Version.php +++ b/src/Commands/Seat/Version.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Config/services.config.php b/src/Config/services.config.php index a4f02b1e..1a9082e7 100644 --- a/src/Config/services.config.php +++ b/src/Config/services.config.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Contracts/EsiClient.php b/src/Contracts/EsiClient.php index 9c3004b0..4b468430 100644 --- a/src/Contracts/EsiClient.php +++ b/src/Contracts/EsiClient.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Contracts/EsiResponse.php b/src/Contracts/EsiResponse.php index 617ed2bd..b91ee9e1 100644 --- a/src/Contracts/EsiResponse.php +++ b/src/Contracts/EsiResponse.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Contracts/EsiToken.php b/src/Contracts/EsiToken.php index 1a69e873..4b638c8c 100644 --- a/src/Contracts/EsiToken.php +++ b/src/Contracts/EsiToken.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Exceptions/EveImageException.php b/src/Exceptions/EveImageException.php index d8ab39d2..e9ce72c4 100644 --- a/src/Exceptions/EveImageException.php +++ b/src/Exceptions/EveImageException.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Exceptions/FilterException.php b/src/Exceptions/FilterException.php index d5ea2a5d..35506582 100644 --- a/src/Exceptions/FilterException.php +++ b/src/Exceptions/FilterException.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Exceptions/SettingException.php b/src/Exceptions/SettingException.php index 90427d20..247d0a1a 100644 --- a/src/Exceptions/SettingException.php +++ b/src/Exceptions/SettingException.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Facades/DeferredMigration.php b/src/Facades/DeferredMigration.php index a0177af2..b13fe06d 100644 --- a/src/Facades/DeferredMigration.php +++ b/src/Facades/DeferredMigration.php @@ -1,5 +1,25 @@ null, // Hit Type // Event Values - 'ec' => null, // Event Category - 'ea' => null, // Event Action - 'el' => null, // Event Label - 'ev' => null, // Event Value + 'ec' => null, // Event Category + 'ea' => null, // Event Action + 'el' => null, // Event Label + 'ev' => null, // Event Value // Exception Values - 'exd' => null, // Exception Description - 'exf' => null, // Is Fatal Exception? + 'exd' => null, // Exception Description + 'exf' => null, // Is Fatal Exception? ]; /** @@ -93,7 +93,7 @@ public function offsetUnset(mixed $offset): void } /** - * @param $key + * @param $key * @return mixed */ public function __get($key) @@ -103,8 +103,8 @@ public function __get($key) } /** - * @param $key - * @param $val + * @param $key + * @param $val */ public function __set($key, $val) { @@ -113,8 +113,8 @@ public function __set($key, $val) } /** - * @param $key - * @param $val + * @param $key + * @param $val * @return $this */ public function set($key, $val): self diff --git a/src/Helpers/helpers.php b/src/Helpers/helpers.php index 60d8a30f..f02955d8 100644 --- a/src/Helpers/helpers.php +++ b/src/Helpers/helpers.php @@ -182,11 +182,11 @@ function evemail_threads($message) // Message headers array. $headers = [ - 'subject' => null, - 'from' => null, - 'sent' => null, - 'to' => null, - 'message' => null, + 'subject' => null, + 'from' => null, + 'sent' => null, + 'to' => null, + 'message' => null, 'headers_ok' => false, ]; @@ -309,7 +309,7 @@ function number_roman($number) { $map = [ - 'M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400, 'C' => 100, 'XC' => 90, 'L' => 50, + 'M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400, 'C' => 100, 'XC' => 90, 'L' => 50, 'XL' => 40, 'X' => 10, 'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1, ]; diff --git a/src/Image/Eve.php b/src/Image/Eve.php index 04df18d4..c3453f85 100644 --- a/src/Image/Eve.php +++ b/src/Image/Eve.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -136,7 +136,7 @@ public function __construct(string $type, string $variation, ?int $id, int $size * Attempt to detect the image type based on the * range in which an integer falls. * - * @param $id + * @param $id * @return string */ public function detect_type($id) @@ -213,7 +213,7 @@ public function html() } /** - * @param $size + * @param $size * @return string */ public function url($size) diff --git a/src/Jobs/Analytics.php b/src/Jobs/Analytics.php index df3bdcfd..6ce5db55 100644 --- a/src/Jobs/Analytics.php +++ b/src/Jobs/Analytics.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -157,7 +157,7 @@ private function send($type, array $query) $client = new Client([ 'base_uri' => 'https://www.google-analytics.com/', - 'timeout' => 5.0, + 'timeout' => 5.0, ]); // Check if we are in debug mode @@ -172,17 +172,17 @@ private function send($type, array $query) // Required Fields // https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#required - 'v' => 1, // Protocol Version + 'v' => 1, // Protocol Version 'tid' => $this->tracking_id, // Google Tracking-ID 'cid' => $this->getClientID(), // Unique Client-ID - 't' => $type, // Event + 't' => $type, // Event // Optional Fields 'aip' => 1, // Anonymize the IP of the calling client - 'an' => 'SeAT', // App Name + 'an' => 'SeAT', // App Name // Versions of the currently installed packages. - 'av' => $versions->implode(', '), + 'av' => $versions->implode(', '), // User Agent is comprised of OS Name(s), Release(r) // and Machine Type(m). Examples: @@ -191,7 +191,7 @@ private function send($type, array $query) // // See: // http://php.net/manual/en/function.php-uname.php - 'ua' => 'SeAT/' . php_uname('s') . + 'ua' => 'SeAT/' . php_uname('s') . '/' . php_uname('r') . '/' . php_uname('m'), diff --git a/src/Listeners/RunDeferredMigrations.php b/src/Listeners/RunDeferredMigrations.php index 53c2c958..a4b2467f 100644 --- a/src/Listeners/RunDeferredMigrations.php +++ b/src/Listeners/RunDeferredMigrations.php @@ -1,5 +1,25 @@ runMigrations(); } -} \ No newline at end of file +} diff --git a/src/ReportParser/Elements/Element.php b/src/ReportParser/Elements/Element.php index 1cb209f3..e9c1b6bb 100644 --- a/src/ReportParser/Elements/Element.php +++ b/src/ReportParser/Elements/Element.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -47,7 +47,7 @@ public function __construct(array $fields) } /** - * @param $field + * @param $field */ public function add($field) { @@ -55,7 +55,7 @@ public function add($field) } /** - * @param $field + * @param $field */ public function remove($field) { @@ -81,7 +81,7 @@ public function isEmpty(): bool } /** - * @param $name + * @param $name * @return mixed * * @throws \ErrorException diff --git a/src/ReportParser/Elements/Group.php b/src/ReportParser/Elements/Group.php index dda728a1..253fc3e8 100644 --- a/src/ReportParser/Elements/Group.php +++ b/src/ReportParser/Elements/Group.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/ReportParser/Exceptions/EmptyReportException.php b/src/ReportParser/Exceptions/EmptyReportException.php index 100c803f..58ec39b8 100644 --- a/src/ReportParser/Exceptions/EmptyReportException.php +++ b/src/ReportParser/Exceptions/EmptyReportException.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/ReportParser/Exceptions/InvalidReportElementException.php b/src/ReportParser/Exceptions/InvalidReportElementException.php index 162e9686..93fae489 100644 --- a/src/ReportParser/Exceptions/InvalidReportElementException.php +++ b/src/ReportParser/Exceptions/InvalidReportElementException.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/ReportParser/Exceptions/InvalidReportException.php b/src/ReportParser/Exceptions/InvalidReportException.php index 730525b5..2fde5129 100644 --- a/src/ReportParser/Exceptions/InvalidReportException.php +++ b/src/ReportParser/Exceptions/InvalidReportException.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/ReportParser/Exceptions/InvalidReportGroupException.php b/src/ReportParser/Exceptions/InvalidReportGroupException.php index cd5f5407..6af50f9f 100644 --- a/src/ReportParser/Exceptions/InvalidReportGroupException.php +++ b/src/ReportParser/Exceptions/InvalidReportGroupException.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/ReportParser/Exceptions/MissingReportGroupException.php b/src/ReportParser/Exceptions/MissingReportGroupException.php index 147681c2..89cbd8c5 100644 --- a/src/ReportParser/Exceptions/MissingReportGroupException.php +++ b/src/ReportParser/Exceptions/MissingReportGroupException.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/ReportParser/Exceptions/MissingReportHeaderException.php b/src/ReportParser/Exceptions/MissingReportHeaderException.php index 5b2710f6..a7999e4e 100644 --- a/src/ReportParser/Exceptions/MissingReportHeaderException.php +++ b/src/ReportParser/Exceptions/MissingReportHeaderException.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/ReportParser/Parsers/MoonReport.php b/src/ReportParser/Parsers/MoonReport.php index 2f9826ce..f692e5de 100644 --- a/src/ReportParser/Parsers/MoonReport.php +++ b/src/ReportParser/Parsers/MoonReport.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/ReportParser/ReportParser.php b/src/ReportParser/ReportParser.php index 3fb61a96..017a097e 100644 --- a/src/ReportParser/ReportParser.php +++ b/src/ReportParser/ReportParser.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Services/DeferredMigrationRegistry.php b/src/Services/DeferredMigrationRegistry.php index d0ce0c71..981c54dc 100644 --- a/src/Services/DeferredMigrationRegistry.php +++ b/src/Services/DeferredMigrationRegistry.php @@ -1,5 +1,25 @@ info(sprintf("[Deferred Migrations] Running %d deferred migrations", count($this->deferred_migrations))); + logger()->info(sprintf('[Deferred Migrations] Running %d deferred migrations', count($this->deferred_migrations))); foreach ($this->deferred_migrations as $migration){ $migration(); } } -} \ No newline at end of file +} diff --git a/src/ServicesServiceProvider.php b/src/ServicesServiceProvider.php index 05fdd677..ed79a1b6 100644 --- a/src/ServicesServiceProvider.php +++ b/src/ServicesServiceProvider.php @@ -27,7 +27,6 @@ use Illuminate\Support\Facades\Event; use Seat\Services\Commands\Seat\Admin\Email; use Seat\Services\Commands\Seat\Version; -use Seat\Services\Contracts\DeferredMigration; use Seat\Services\Listeners\RunDeferredMigrations; use Seat\Services\Services\DeferredMigrationRegistry; use Seat\Services\Services\InjectedRelationRegistry; @@ -116,7 +115,7 @@ private function addCommands() private function add_event_listeners(): void { - Event::listen(MigrationsEnded::class,RunDeferredMigrations::class); + Event::listen(MigrationsEnded::class, RunDeferredMigrations::class); } /** diff --git a/src/Settings/Profile.php b/src/Settings/Profile.php index 5252b6a8..cf327298 100644 --- a/src/Settings/Profile.php +++ b/src/Settings/Profile.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,10 +38,10 @@ class Profile extends Settings */ public static $options = [ - 'sidebar' => ['sidebar-full', 'sidebar-collapse'], + 'sidebar' => ['sidebar-full', 'sidebar-collapse'], 'thousand_seperator' => [' ', ',', '.'], - 'decimal_seperator' => [',', '.'], - 'mail_threads' => ['yes', 'no'], + 'decimal_seperator' => [',', '.'], + 'mail_threads' => ['yes', 'no'], ]; /** diff --git a/src/Settings/Seat.php b/src/Settings/Seat.php index eb001377..182b874e 100644 --- a/src/Settings/Seat.php +++ b/src/Settings/Seat.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,12 +38,12 @@ class Seat extends Settings */ public static $options = [ - 'registration' => ['yes', 'no'], - 'force_min_mask' => ['yes', 'no'], - 'allow_sso' => ['yes', 'no'], - 'allow_tracking' => ['yes', 'no'], + 'registration' => ['yes', 'no'], + 'force_min_mask' => ['yes', 'no'], + 'allow_sso' => ['yes', 'no'], + 'allow_tracking' => ['yes', 'no'], 'require_activation' => ['yes', 'no'], - 'cleanup_data' => ['yes', 'no'], + 'cleanup_data' => ['yes', 'no'], ]; /** diff --git a/src/Settings/Settings.php b/src/Settings/Settings.php index cb60c3e5..e567811a 100644 --- a/src/Settings/Settings.php +++ b/src/Settings/Settings.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -117,8 +117,8 @@ public static function get($name, $for_id = null) /** * Determine the unique prefix for the key by name. * - * @param $name - * @param $for_id + * @param $name + * @param $for_id * @return string * * @throws \Seat\Services\Exceptions\SettingException @@ -146,7 +146,7 @@ public static function get_key_prefix($name, $for_id = null) * dont have an already logged in session, well then * we make the $for_id null. * - * @param $for_id + * @param $for_id * @return int|null */ public static function get_affected_id($for_id) @@ -193,7 +193,7 @@ public static function set($name, $value, $for_id = null) $db = new static::$model; $db->fill([ - 'name' => $name, + 'name' => $name, 'value' => $encoded_value, ]); diff --git a/src/Socialite/EveOnline/EveOnlineExtendSocialite.php b/src/Socialite/EveOnline/EveOnlineExtendSocialite.php index 1d1612fe..15cbeb73 100644 --- a/src/Socialite/EveOnline/EveOnlineExtendSocialite.php +++ b/src/Socialite/EveOnline/EveOnlineExtendSocialite.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Traits/NotableTrait.php b/src/Traits/NotableTrait.php index c690c689..68c549be 100644 --- a/src/Traits/NotableTrait.php +++ b/src/Traits/NotableTrait.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,9 +46,9 @@ public static function addNote( return Note::create([ 'object_type' => __CLASS__, - 'object_id' => $object_id, - 'title' => $title, - 'note' => $note, + 'object_id' => $object_id, + 'title' => $title, + 'note' => $note, ]); } diff --git a/src/Traits/VersionsManagementTrait.php b/src/Traits/VersionsManagementTrait.php index 1886c1f0..92abc522 100644 --- a/src/Traits/VersionsManagementTrait.php +++ b/src/Traits/VersionsManagementTrait.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2015_10_30_140512_create_eve_notification_types_table.php b/src/database/migrations/2015_10_30_140512_create_eve_notification_types_table.php index 471cf8f2..2e6a7930 100644 --- a/src/database/migrations/2015_10_30_140512_create_eve_notification_types_table.php +++ b/src/database/migrations/2015_10_30_140512_create_eve_notification_types_table.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2015_11_28_053529_create_user_settings_table.php b/src/database/migrations/2015_11_28_053529_create_user_settings_table.php index 3389e2c1..f81de939 100644 --- a/src/database/migrations/2015_11_28_053529_create_user_settings_table.php +++ b/src/database/migrations/2015_11_28_053529_create_user_settings_table.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2015_11_28_071315_create_global_settings_table.php b/src/database/migrations/2015_11_28_071315_create_global_settings_table.php index df0aa8d6..ca14823a 100644 --- a/src/database/migrations/2015_11_28_071315_create_global_settings_table.php +++ b/src/database/migrations/2015_11_28_071315_create_global_settings_table.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2015_12_01_201414_create_schedules_table.php b/src/database/migrations/2015_12_01_201414_create_schedules_table.php index ba0e46e7..65f2e034 100644 --- a/src/database/migrations/2015_12_01_201414_create_schedules_table.php +++ b/src/database/migrations/2015_12_01_201414_create_schedules_table.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2016_11_19_065120_create_notes_table.php b/src/database/migrations/2016_11_19_065120_create_notes_table.php index c8bd6059..fe40014c 100644 --- a/src/database/migrations/2016_11_19_065120_create_notes_table.php +++ b/src/database/migrations/2016_11_19_065120_create_notes_table.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2016_11_29_195441_convert_value_from_string_to_text.php b/src/database/migrations/2016_11_29_195441_convert_value_from_string_to_text.php index 4ead3602..fa8532d3 100644 --- a/src/database/migrations/2016_11_29_195441_convert_value_from_string_to_text.php +++ b/src/database/migrations/2016_11_29_195441_convert_value_from_string_to_text.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2018_05_18_185619_move_settings_to_groups.php b/src/database/migrations/2018_05_18_185619_move_settings_to_groups.php index 1144e672..a8fe69ba 100644 --- a/src/database/migrations/2018_05_18_185619_move_settings_to_groups.php +++ b/src/database/migrations/2018_05_18_185619_move_settings_to_groups.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2018_09_12_181511_create_historical_prices_table.php b/src/database/migrations/2018_09_12_181511_create_historical_prices_table.php index 4ef3415d..3d23d508 100644 --- a/src/database/migrations/2018_09_12_181511_create_historical_prices_table.php +++ b/src/database/migrations/2018_09_12_181511_create_historical_prices_table.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2018_10_05_064533_alter_historical_prices_columns.php b/src/database/migrations/2018_10_05_064533_alter_historical_prices_columns.php index 90e8bc41..7503c6ee 100644 --- a/src/database/migrations/2018_10_05_064533_alter_historical_prices_columns.php +++ b/src/database/migrations/2018_10_05_064533_alter_historical_prices_columns.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2020_04_27_231132_convert_sso_scopes_to_list.php b/src/database/migrations/2020_04_27_231132_convert_sso_scopes_to_list.php index c0cb8ecf..7745f41a 100644 --- a/src/database/migrations/2020_04_27_231132_convert_sso_scopes_to_list.php +++ b/src/database/migrations/2020_04_27_231132_convert_sso_scopes_to_list.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -42,9 +42,9 @@ public function up() $new_sso_scopes = [ [ - 'id' => 0, - 'name' => 'default', - 'scopes' => json_decode($sso_scopes->value), + 'id' => 0, + 'name' => 'default', + 'scopes' => json_decode($sso_scopes->value), 'default' => true, ], ]; diff --git a/src/database/migrations/2020_05_10_101541_drop_historical_prices.php b/src/database/migrations/2020_05_10_101541_drop_historical_prices.php index 73e5ba9d..aa9f13a1 100644 --- a/src/database/migrations/2020_05_10_101541_drop_historical_prices.php +++ b/src/database/migrations/2020_05_10_101541_drop_historical_prices.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/migrations/2021_01_02_120325_convert_chinese_language_value.php b/src/database/migrations/2021_01_02_120325_convert_chinese_language_value.php index 4a984191..051ae616 100644 --- a/src/database/migrations/2021_01_02_120325_convert_chinese_language_value.php +++ b/src/database/migrations/2021_01_02_120325_convert_chinese_language_value.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/database/seeders/PluginDatabaseSeeder.php b/src/database/seeders/PluginDatabaseSeeder.php index 0bcb5163..45d39e74 100644 --- a/src/database/seeders/PluginDatabaseSeeder.php +++ b/src/database/seeders/PluginDatabaseSeeder.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by