From cdce46b6df26d0fb0dd552395f6ff78facf807df Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Tue, 28 Jan 2025 17:33:54 -0600 Subject: [PATCH] chore: add script type rule to pint --- app/Actions/Fortify/CreateNewUser.php | 2 ++ app/Actions/Fortify/PasswordValidationRules.php | 2 ++ app/Actions/Fortify/ResetUserPassword.php | 2 ++ app/Actions/Fortify/UpdateUserPassword.php | 2 ++ .../Fortify/UpdateUserProfileInformation.php | 2 ++ app/Actions/Jetstream/DeleteUser.php | 2 ++ app/Console/Commands/CaptureDailyChange.php | 2 ++ app/Console/Commands/RefreshDividendData.php | 2 ++ app/Console/Commands/RefreshMarketData.php | 2 ++ app/Console/Commands/RefreshSplitData.php | 2 ++ app/Console/Commands/SyncDailyChange.php | 2 ++ app/Console/Commands/SyncHoldingData.php | 2 ++ app/Exports/BackupExport.php | 2 ++ app/Exports/Sheets/DailyChangesSheet.php | 2 ++ app/Exports/Sheets/PortfoliosSheet.php | 2 ++ app/Exports/Sheets/TransactionsSheet.php | 2 ++ app/Http/ApiControllers/Controller.php | 2 ++ app/Http/ApiControllers/HoldingController.php | 2 ++ .../ApiControllers/TransactionController.php | 2 ++ app/Http/ApiControllers/UserController.php | 2 ++ .../Controllers/ConnectedAccountController.php | 2 ++ app/Http/Controllers/Controller.php | 2 ++ app/Http/Controllers/DashboardController.php | 2 ++ app/Http/Controllers/HoldingController.php | 2 ++ .../Controllers/InvitedOnboardingController.php | 2 ++ app/Http/Controllers/PortfolioController.php | 2 ++ app/Http/Controllers/TransactionController.php | 2 ++ app/Http/Middleware/SetLocale.php | 2 ++ app/Http/Requests/FormRequest.php | 2 ++ app/Http/Requests/HoldingRequest.php | 2 ++ app/Http/Requests/PortfolioRequest.php | 2 ++ app/Http/Requests/TransactionRequest.php | 2 ++ app/Imports/BackupImport.php | 2 ++ app/Imports/Sheets/DailyChangesSheet.php | 2 ++ app/Imports/Sheets/PortfoliosSheet.php | 2 ++ app/Imports/Sheets/TransactionsSheet.php | 2 ++ app/Imports/ValidatesPortfolioAccess.php | 2 ++ .../MarketData/AlphaVantageMarketData.php | 2 ++ app/Interfaces/MarketData/FakeMarketData.php | 2 ++ app/Interfaces/MarketData/FallbackInterface.php | 2 ++ app/Interfaces/MarketData/FinnhubMarketData.php | 2 ++ .../MarketData/MarketDataInterface.php | 2 ++ app/Interfaces/MarketData/Types/Dividend.php | 2 ++ .../MarketData/Types/MarketDataType.php | 2 ++ app/Interfaces/MarketData/Types/Ohlc.php | 2 ++ app/Interfaces/MarketData/Types/Quote.php | 2 ++ app/Interfaces/MarketData/Types/Split.php | 2 ++ app/Interfaces/MarketData/YahooMarketData.php | 2 ++ app/Jobs/BackupImportJob.php | 2 ++ app/Models/AiChat.php | 2 ++ app/Models/BackupImport.php | 2 ++ app/Models/ConnectedAccount.php | 2 ++ app/Models/DailyChange.php | 2 ++ app/Models/Dividend.php | 2 ++ app/Models/Holding.php | 2 ++ app/Models/MarketData.php | 2 ++ app/Models/Portfolio.php | 2 ++ app/Models/Split.php | 2 ++ app/Models/Transaction.php | 2 ++ app/Models/User.php | 2 ++ app/Notifications/ImportFailedNotification.php | 2 ++ .../ImportSucceededNotification.php | 2 ++ .../InvitedOnboardingNotification.php | 2 ++ .../VerifyConnectedAccountNotification.php | 2 ++ app/Policies/PortfolioPolicy.php | 2 ++ app/Providers/AppServiceProvider.php | 2 ++ app/Providers/FortifyServiceProvider.php | 2 ++ app/Providers/JetstreamServiceProvider.php | 2 ++ app/Providers/VoltServiceProvider.php | 2 ++ app/Rules/QuantityValidationRule.php | 2 ++ app/Rules/SymbolValidationRule.php | 2 ++ app/Support/Helpers.php | 2 ++ app/Support/Spotlight.php | 2 ++ app/Traits/HasCompositePrimaryKey.php | 2 ++ app/Traits/HasConnectedAccounts.php | 2 ++ app/Traits/WithTrimStrings.php | 2 ++ app/View/Components/AppLayout.php | 2 ++ app/View/Components/GuestLayout.php | 2 ++ app/View/Components/MainLayout.php | 2 ++ bootstrap/app.php | 2 ++ bootstrap/providers.php | 2 ++ config/alphavantage.php | 2 ++ config/app.php | 2 ++ config/auth.php | 2 ++ config/cache.php | 2 ++ config/database.php | 2 ++ config/excel.php | 2 ++ config/filesystems.php | 2 ++ config/finnhub.php | 2 ++ config/fortify.php | 2 ++ config/investbrain.php | 2 ++ config/jetstream.php | 2 ++ config/livewire.php | 2 ++ config/logging.php | 2 ++ config/mail.php | 2 ++ config/mary.php | 2 ++ config/openai.php | 2 ++ config/queue.php | 2 ++ config/sanctum.php | 2 ++ config/services.php | 2 ++ config/session.php | 2 ++ database/factories/PortfolioFactory.php | 2 ++ database/factories/TransactionFactory.php | 2 ++ database/factories/UserFactory.php | 2 ++ .../0001_01_01_000000_create_users_table.php | 2 ++ ...001_01_01_000002_create_failed_jobs_table.php | 2 ++ ...2021_01_30_102537_create_portfolios_table.php | 2 ++ ...01_30_112537_create_portfolio_users_table.php | 2 ++ ...021_02_25_041221_create_market_data_table.php | 2 ++ ...21_02_25_041227_create_daily_change_table.php | 2 ++ .../2021_02_25_041236_create_dividends_table.php | 2 ++ .../2021_02_25_041246_create_splits_table.php | 2 ++ ...21_02_25_041257_create_transactions_table.php | 2 ++ .../2021_09_06_014744_create_holdings_table.php | 2 ++ ...529_add_two_factor_columns_to_users_table.php | 2 ++ ...12537_create_personal_access_tokens_table.php | 2 ++ ...024_10_18_000001_add_reinvestment_columns.php | 2 ++ ...19_155635_create_connected_accounts_table.php | 2 ++ ...024_10_23_000001_create_import_jobs_table.php | 2 ++ .../2024_10_30_000001_create_ai_chats_table.php | 2 ++ .../2024_11_05_000001_add_user_admin_column.php | 2 ++ database/seeders/DatabaseSeeder.php | 2 ++ database/seeders/MarketDataSeeder.php | 2 ++ pint.json | 6 ++++++ public/index.php | 2 ++ routes/api.php | 2 ++ routes/console.php | 2 ++ routes/web.php | 16 +++++++++------- tests/Api/HoldingsTest.php | 2 ++ tests/Api/PortfoliosTest.php | 2 ++ tests/Api/TransactionsTest.php | 2 ++ tests/ApiTokenPermissionsTest.php | 2 ++ tests/AuthenticationTest.php | 2 ++ tests/BrowserSessionsTest.php | 2 ++ tests/CaptureDailyChangeTest.php | 2 ++ tests/ConnectedAccountTest.php | 2 ++ tests/DashboardTest.php | 2 ++ tests/DeleteAccountTest.php | 2 ++ tests/DividendsTest.php | 2 ++ tests/EmailVerificationTest.php | 2 ++ tests/FallbackInterfaceTest.php | 2 ++ tests/ImportExportTest.php | 2 ++ tests/PasswordConfirmationTest.php | 2 ++ tests/PasswordResetTest.php | 2 ++ tests/PortfolioPolicyTest.php | 2 ++ tests/PortfoliosTest.php | 2 ++ tests/ProfileInformationTest.php | 2 ++ tests/RegistrationTest.php | 2 ++ tests/SplitsTest.php | 2 ++ tests/SyncDailyChangeTest.php | 2 ++ tests/TestCase.php | 2 ++ tests/TransactionsTest.php | 2 ++ tests/TwoFactorAuthenticationSettingsTest.php | 2 ++ tests/UpdatePasswordTest.php | 2 ++ 154 files changed, 319 insertions(+), 7 deletions(-) create mode 100644 pint.json diff --git a/app/Actions/Fortify/CreateNewUser.php b/app/Actions/Fortify/CreateNewUser.php index 90e961e..99f39d5 100644 --- a/app/Actions/Fortify/CreateNewUser.php +++ b/app/Actions/Fortify/CreateNewUser.php @@ -1,5 +1,7 @@ env('ALPHAVANTAGE_API_KEY'), ]; diff --git a/config/app.php b/config/app.php index 02c21f0..b213b42 100644 --- a/config/app.php +++ b/config/app.php @@ -1,5 +1,7 @@ env('FINNHUB_API_KEY'), ]; diff --git a/config/fortify.php b/config/fortify.php index a324748..0576d84 100644 --- a/config/fortify.php +++ b/config/fortify.php @@ -1,5 +1,7 @@ env('MARKET_DATA_REFRESH', 30), // minutes diff --git a/config/jetstream.php b/config/jetstream.php index b1f2c73..ed11e49 100644 --- a/config/jetstream.php +++ b/config/jetstream.php @@ -1,5 +1,7 @@ group(fun Route::get('/dashboard', [DashboardController::class, 'show'])->name('dashboard'); Route::view('/import-export', 'import-export') ->name('import-export') - ->when(!config('investbrain.self_hosted'), function($route) { + ->when(! config('investbrain.self_hosted'), function ($route) { return $route->middleware('verified'); }); @@ -44,7 +46,7 @@ Route::get('invite/{portfolio}/{user}', InvitedOnboardingController::class)->nam // Overwrites Jetstream routes Route::get('/user/api-tokens', [ApiTokenController::class, 'index']) ->name('api-tokens.index') - ->when(!config('investbrain.self_hosted'), function($route) { + ->when(! config('investbrain.self_hosted'), function ($route) { return $route->middleware('verified'); }); Route::get('/terms', [TermsOfServiceController::class, 'show'])->name('terms.show'); diff --git a/tests/Api/HoldingsTest.php b/tests/Api/HoldingsTest.php index 1cdd137..d0a98df 100644 --- a/tests/Api/HoldingsTest.php +++ b/tests/Api/HoldingsTest.php @@ -1,5 +1,7 @@