From 8f77a497b53bcb158cee72d248a66f7f75d44c68 Mon Sep 17 00:00:00 2001 From: Peter Papp Date: Sun, 18 Jul 2021 17:21:37 +0200 Subject: [PATCH] namespaces refactoring --- .php-cs-fixer.cache | 2 +- .php-cs-fixer.dist.php | 3 +- .phpstorm.meta.php | 88 ++-- routes/admin.php | 14 +- routes/api.php | 18 +- routes/file.php | 4 +- routes/maintenance.php | 2 +- routes/setup.php | 2 +- routes/share.php | 8 +- routes/user.php | 8 +- routes/web.php | 10 +- .../Console/Commands/SetupDevEnvironment.php | 6 +- .../Console/Commands/SetupProdEnvironment.php | 2 +- src/App/Console/Kernel.php | 2 +- src/App/Http/Kernel.php | 14 +- src/App/Providers/AuthServiceProvider.php | 2 - src/App/Providers/FortifyServiceProvider.php | 6 +- src/App/Users/Actions/CreateNewUserAction.php | 8 +- .../Users/Actions/PasswordValidationRules.php | 2 +- src/App/Users/Actions/ResetUserPassword.php | 2 +- src/App/Users/Actions/UpdateUserPassword.php | 2 +- .../Actions/UpdateUserProfileInformation.php | 2 +- .../Users/Controllers/AccountController.php | 25 +- src/App/Users/Controllers/AuthController.php | 4 +- .../Controllers/ConfirmPasswordController.php | 2 +- .../Controllers/ForgotPasswordController.php | 2 +- src/App/Users/Controllers/LoginController.php | 2 +- .../Controllers/ResetPasswordController.php | 2 +- .../Controllers/VerificationController.php | 2 +- src/App/Users/Models/User.php | 8 +- src/App/Users/Models/UserSettings.php | 2 +- src/App/Users/Notifications/ResetPassword.php | 2 +- .../Users/Requests/CheckAccountRequest.php | 2 +- .../Requests/UpdateUserPasswordRequest.php | 2 +- .../Requests/UserCreateAccessTokenRequest.php | 2 +- src/App/Users/Resources/UserResource.php | 2 +- .../Users/Resources/UserStorageResource.php | 4 +- src/App/Users/Resources/UserSubscription.php | 2 +- src/App/Users/Resources/UsersCollection.php | 2 +- .../Admin/Controllers/DashboardController.php | 13 +- .../Admin/Controllers/InvoiceController.php | 16 +- .../Admin/Controllers/UserController.php | 34 +- .../Admin/Requests/ChangeRoleRequest.php | 2 +- .../Requests/ChangeStorageCapacityRequest.php | 2 +- .../Admin/Requests/CreateUserByAdmin.php | 2 +- .../Admin/Requests/DeleteUserRequest.php | 2 +- .../Resources/InvoiceAdminCollection.php | 2 +- .../Admin/Resources/InvoiceAdminResource.php | 4 +- src/Domain/Admin/Rules/DisabledMimetypes.php | 2 +- .../Browsing/Controllers/BrowseController.php | 6 +- .../Controllers/FileAccessController.php | 16 +- src/Domain/Files/Models/File.php | 2 +- src/Domain/Files/Requests/UploadRequest.php | 4 +- src/Domain/Files/Resources/FileResource.php | 2 +- .../Controllers/FavouriteController.php | 12 +- src/Domain/Folders/Models/Folder.php | 2 +- .../Folders/Requests/CreateFolderRequest.php | 2 +- .../Controllers/AppFunctionsController.php | 29 +- .../Homepage/Mail/SendContactMessage.php | 2 +- .../Requests/SendContactMessageRequest.php | 2 +- .../Items/Controllers/EditItemsController.php | 34 +- .../Items/Requests/DeleteItemRequest.php | 2 +- src/Domain/Items/Requests/MoveItemRequest.php | 2 +- .../Items/Requests/RenameItemRequest.php | 2 +- src/Domain/Items/Requests/SearchRequest.php | 2 +- .../Controllers/LanguageController.php | 16 +- src/Domain/Languages/Models/Language.php | 4 +- .../Languages/Models/LanguageTranslation.php | 2 +- .../Requests/CreateLanguageRequest.php | 2 +- .../Requests/UpdateLanguageRequest.php | 2 +- .../Requests/UpdateStringRequest.php | 2 +- .../Resources/LanguageCollection.php | 2 +- .../Languages/Resources/LanguageResource.php | 2 +- .../Languages/Services/LanguageService.php | 2 +- .../Controllers/MaintenanceController.php | 6 +- .../Pages/Controllers/PagesController.php | 18 +- src/Domain/Pages/Models/Page.php | 2 +- src/Domain/Pages/Resources/PageCollection.php | 2 +- src/Domain/Pages/Resources/PageResource.php | 2 +- .../Plans/Controllers/PlansController.php | 28 +- .../Controllers/SettingController.php | 14 +- src/Domain/Settings/Models/Traffic.php | 2 +- .../Controllers/SetupWizardController.php | 31 +- .../Requests/StoreAppSetupRequest.php | 2 +- .../StoreDatabaseCredentialsRequest.php | 2 +- .../Requests/StoreEnvironmentSetupRequest.php | 2 +- .../Requests/StoreStripeBillingRequest.php | 2 +- .../StoreStripeCredentialsRequest.php | 2 +- .../Requests/StoreStripePlansRequest.php | 2 +- .../Controllers/BrowseShareController.php | 22 +- .../FileSharedAccessController.php | 14 +- .../ManipulateShareItemsController.php | 33 +- .../Sharing/Controllers/ShareController.php | 12 +- src/Domain/Sharing/Models/Share.php | 2 +- .../Notifications/SharedSendViaEmail.php | 2 +- .../Requests/AuthenticateShareRequest.php | 2 +- .../Sharing/Requests/CreateShareRequest.php | 2 +- .../Sharing/Requests/UpdateShareRequest.php | 2 +- .../Sharing/Resources/ShareResource.php | 2 +- .../Controllers/PaymentMethodsController.php | 26 +- .../Controllers/StripeWebhookController.php | 8 +- .../Controllers/SubscriptionController.php | 23 +- .../Notifications/ConfirmPayment.php | 2 +- .../RegisterNewPaymentMethodRequest.php | 2 +- .../Requests/StoreUpgradeAccountRequest.php | 2 +- .../Resources/InvoiceCollection.php | 2 +- .../Resources/InvoiceResource.php | 2 +- .../Resources/PaymentCardCollection.php | 2 +- .../Resources/PaymentCardResource.php | 2 +- .../Resources/PaymentDefaultCardResource.php | 2 +- .../Resources/PlanCollection.php | 2 +- .../Subscriptions/Resources/PlanResource.php | 2 +- .../Resources/PricingCollection.php | 2 +- .../Resources/PricingResource.php | 2 +- .../Subscriptions/Services/StripeService.php | 2 +- .../Trash/Controllers/TrashController.php | 12 +- src/Domain/Zipping/Zip.php | 9 +- src/Support/Demo/Actions/DemoService.php | 8 +- src/Support/Middleware/Authenticate.php | 2 +- .../Middleware/CheckForMaintenanceMode.php | 2 +- src/Support/Middleware/EncryptCookies.php | 2 +- .../PreventRequestsDuringMaintenance.php | 2 +- .../Middleware/RedirectIfAuthenticated.php | 2 +- src/Support/Middleware/TrimStrings.php | 2 +- src/Support/Middleware/TrustProxies.php | 2 +- src/Support/Middleware/VerifyCsrfToken.php | 2 +- .../Scheduler/Actions/SchedulerService.php | 2 +- src/Support/Services/FileManagerService.php | 18 +- src/Support/Services/HelperService.php | 6 +- src/Support/helpers.php | 6 +- tests/App/Users/PersonalAccessTokenTest.php | 7 +- tests/App/Users/SignFlowTest.php | 18 +- tests/App/Users/UserAccountTest.php | 21 +- tests/CreatesApplication.php | 1 - tests/Domain/Admin/AdminTest.php | 139 +++---- tests/Domain/Browsing/BrowseTest.php | 389 +++++++++--------- tests/Domain/Files/ContentAccessTest.php | 23 +- tests/Domain/Files/FileTest.php | 105 +++-- tests/Domain/Folders/FolderTest.php | 160 ++++--- tests/Domain/Homepage/HomepageTest.php | 12 +- tests/Domain/Invoices/UserInvoicesTest.php | 11 +- .../Languages/AdminLanguageTranslatorTest.php | 39 +- .../Languages/TranslationsAccessTest.php | 19 +- tests/Domain/Maintenance/AppUpgradeTest.php | 18 +- tests/Domain/Pages/PagesTest.php | 7 +- tests/Domain/Plans/AdminPlansTest.php | 55 ++- tests/Domain/Plans/PlansTest.php | 15 +- tests/Domain/Plans/SetupWizardPlansTest.php | 13 +- tests/Domain/Settings/SettingsTest.php | 55 ++- tests/Domain/SetupWizard/SetupServiceTest.php | 9 +- tests/Domain/SetupWizard/SetupWizardTest.php | 11 +- tests/Domain/Sharing/UserShareTest.php | 83 ++-- .../Sharing/VisitorAccessToItemsTest.php | 40 +- tests/Domain/Sharing/VisitorBrowseTest.php | 170 ++++---- .../Sharing/VisitorManipulatingTest.php | 69 ++-- .../Subscriptions/AdminSubscriptionTest.php | 51 ++- .../Domain/Subscriptions/SubscriptionTest.php | 74 ++-- tests/Domain/Trash/TrashTest.php | 48 ++- tests/Domain/Zipping/SharedZippingTest.php | 58 +-- tests/Domain/Zipping/UserZippingTest.php | 28 +- tests/Support/Scheduler/SchedulerTest.php | 27 +- tests/TestCase.php | 7 +- 162 files changed, 1242 insertions(+), 1418 deletions(-) diff --git a/.php-cs-fixer.cache b/.php-cs-fixer.cache index 19179e05..01c5d1f4 100644 --- a/.php-cs-fixer.cache +++ b/.php-cs-fixer.cache @@ -1 +1 @@ -{"php":"8.0.6","version":"3.0.0:v3.0.0#c15377bdfa8d1ecf186f1deadec39c89984e1167","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"length"},"blank_line_before_statement":{"statements":["break","case","continue","declare","default","do","exit","for","foreach","goto","if","include","include_once","require","require_once","return","switch","throw","try","while","yield","yield_from"]},"no_extra_blank_lines":{"tokens":["break","case","continue","curly_brace_block","default","extra","parenthesis_brace_block","return","square_brace_block","switch","throw","use","use_trait"]},"cast_spaces":{"space":"single"},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"single_space_after_construct":true,"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":{"elements":["arrays"]},"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":{"operators":{"=>":"align"}},"method_chaining_indentation":true,"array_indentation":true,"single_quote":true,"no_singleline_whitespace_before_semicolons":true,"no_empty_statement":true,"standardize_increment":true,"object_operator_without_whitespace":true,"ternary_operator_spaces":true,"no_leading_namespace_whitespace":true,"no_blank_lines_before_namespace":true,"fully_qualified_strict_types":true,"single_line_throw":true,"function_typehint_space":true,"simplified_if_return":true,"no_useless_else":true,"no_unneeded_curly_braces":true,"no_empty_comment":true,"no_blank_lines_after_class_opening":true,"whitespace_after_comma_in_array":true,"trim_array_spaces":true,"no_whitespace_before_comma_in_array":true,"lowercase_static_reference":true},"hashes":{"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1459\/src\/App\/Providers\/BroadcastServiceProvider.php":3541093703,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1596\/src\/App\/Providers\/BroadcastServiceProvider.php":3541093703,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder237\/src\/App\/Providers\/BroadcastServiceProvider.php":3541093703,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2415\/src\/App\/BaseApplication.php":4281481777,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder28\/src\/Domain\/Admin\/Rules\/DisabledMimetypes.php":3208905600,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1783\/src\/Domain\/Admin\/Rules\/DisabledMimetypes.php":3208905600,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder836\/src\/App\/Users\/Notifications\/ResetPassword.php":217123398,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3298\/src\/Domain\/Sharing\/Notifications\/SharedSendViaEmail.php":113607832,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder602\/src\/Domain\/Files\/Models\/File.php":12791111,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1908\/src\/Domain\/Sharing\/Notifications\/SharedSendViaEmail.php":113607832,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder768\/src\/App\/Providers\/FortifyServiceProvider.php":1782055566,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2286\/src\/App\/Providers\/AppServiceProvider.php":386165394,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2205\/src\/Domain\/Folders\/Models\/Folder.php":774866902,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1392\/app\/Models\/Invoice.php":3427012087,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1359\/src\/Domain\/Folders\/Models\/Folder.php":774866902,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder792\/src\/Domain\/Languages\/Models\/LanguageTranslation.php":1555765712,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2416\/src\/Domain\/Pages\/Models\/Page.php":907354308,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder511\/src\/Domain\/Pages\/Models\/Page.php":907354308,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1832\/src\/Domain\/Pages\/Models\/Page.php":907354308,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2120\/src\/Domain\/Settings\/Models\/Setting.php":3917536845,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder544\/src\/Domain\/Settings\/Models\/Setting.php":3917536845,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1624\/src\/Domain\/Settings\/Models\/Setting.php":3917536845,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder745\/src\/Domain\/Settings\/Models\/Traffic.php":2512673789,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3185\/app\/Models\/Share.php":131227417,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2832\/src\/Domain\/Sharing\/Models\/Share.php":131227417,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3398\/src\/App\/Users\/Models\/User.php":4048224691,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3432\/src\/App\/Users\/Models\/UserSettings.php":3400206961,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2538\/src\/App\/Users\/Models\/UserSettings.php":3400206961,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2579\/src\/Domain\/Zipping\/Zip.php":2771946819,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1149\/src\/Domain\/Zipping\/Zip.php":2771946819,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3159\/app\/Services\/LanguageService.php":1337481237,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder65\/src\/Domain\/Languages\/Services\/LanguageService.php":1337481237,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3779\/src\/Domain\/Languages\/Models\/Language.php":1756684391,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder666\/app\/Services\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder638\/app\/Http\/Resources\/FileResource.php":2504031769,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2092\/src\/Domain\/Files\/Resources\/FileResource.php":2504031769,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3268\/app\/Http\/Resources\/InvoiceAdminCollection.php":274747241,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder708\/app\/Http\/Resources\/InvoiceAdminResource.php":4202873718,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder677\/src\/App\/Users\/Resources\/UserResource.php":1698497840,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3041\/src\/App\/Users\/Resources\/UserStorageResource.php":2500526056,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2409\/src\/Domain\/Sharing\/Resources\/ShareResource.php":4289675308,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3160\/app\/Http\/Resources\/PricingResource.php":1267485808,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3327\/src\/Domain\/Subscriptions\/Resources\/PricingResource.php":1267485808,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1327\/app\/Http\/Resources\/PaymentCardCollection.php":35382430,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3969\/src\/Domain\/Subscriptions\/Resources\/PaymentDefaultCardResource.php":1228639420,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2768\/src\/Domain\/Subscriptions\/Resources\/PaymentDefaultCardResource.php":1228639420,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2912\/src\/Domain\/Subscriptions\/Resources\/PaymentCardResource.php":4249352961,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4111\/src\/Domain\/Pages\/Resources\/PageResource.php":3319655507,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder262\/src\/Domain\/Languages\/Resources\/LanguageResource.php":3173560286,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1011\/src\/Domain\/Languages\/Resources\/LanguageCollection.php":3837282263,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder254\/app\/Http\/Resources\/InvoiceResource.php":188824434,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder865\/src\/Domain\/Subscriptions\/Resources\/InvoiceResource.php":188824434,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2695\/app\/Http\/Resources\/InvoiceAdminCollection.php":274747241,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2630\/app\/Http\/Resources\/InvoiceAdminResource.php":4202873718,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1909\/src\/Domain\/Admin\/Resources\/InvoiceAdminResource.php":4202873718,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1813\/src\/Domain\/Admin\/Resources\/InvoiceAdminResource.php":4202873718,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder664\/app\/Http\/Requests\/Subscription\/StoreUpgradeAccountRequest.php":2224778578,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3537\/src\/Domain\/Subscriptions\/Requests\/StoreUpgradeAccountRequest.php":2224778578,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4347\/src\/Domain\/Subscriptions\/Requests\/StoreUpgradeAccountRequest.php":2224778578,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder152\/src\/Domain\/Sharing\/Requests\/UpdateShareRequest.php":3029590464,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2927\/src\/Domain\/Sharing\/Requests\/UpdateShareRequest.php":3029590464,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3731\/src\/App\/Users\/Requests\/UserCreateAccessTokenRequest.php":4038761682,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4052\/src\/App\/Users\/Requests\/UserCreateAccessTokenRequest.php":4038761682,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4372\/src\/Domain\/SetupWizard\/Requests\/StoreStripePlansRequest.php":3654298680,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2627\/src\/Domain\/SetupWizard\/Requests\/StoreStripePlansRequest.php":3654298680,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder130\/app\/Http\/Requests\/Payments\/RegisterNewPaymentMethodRequest.php":3499435528,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1743\/src\/Domain\/Subscriptions\/Requests\/RegisterNewPaymentMethodRequest.php":3499435528,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4513\/src\/Domain\/SetupWizard\/Requests\/StoreStripeBillingRequest.php":2569186739,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2995\/src\/Domain\/Sharing\/Requests\/UpdateShareRequest.php":3029590464,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4048\/src\/Domain\/Languages\/Requests\/UpdateStringRequest.php":325219474,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3709\/src\/Domain\/Admin\/Requests\/DeleteUserRequest.php":2636618911,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1668\/app\/Http\/Requests\/Auth\/CheckAccountRequest.php":708120184,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1289\/src\/App\/Users\/Requests\/CheckAccountRequest.php":708120184,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder256\/src\/App\/Users\/Requests\/CheckAccountRequest.php":708120184,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2987\/src\/Domain\/Folders\/Requests\/CreateFolderRequest.php":3692937785,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3699\/src\/Domain\/Files\/Requests\/UploadRequest.php":3708306514,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder763\/src\/Domain\/Files\/Requests\/UploadRequest.php":3708306514,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder111\/src\/Domain\/Files\/Requests\/UploadRequest.php":3708306514,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2989\/src\/Domain\/Item\/Requests\/RenameItemRequest.php":3723095090,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2377\/src\/Domain\/Item\/Requests\/RenameItemRequest.php":3723095090,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder663\/app\/Http\/Requests\/FileBrowser\/SearchRequest.php":202095165,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder409\/src\/Domain\/Item\/Requests\/SearchRequest.php":202095165,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3816\/src\/Domain\/Items\/Requests\/SearchRequest.php":202095165,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3326\/src\/Domain\/Admin\/Requests\/ChangeStorageCapacityRequest.php":2787589842,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4381\/src\/Domain\/Homepage\/PublicPages\/SendContactMessageRequest.php":3774635559,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4186\/src\/Domain\/Homepage\/Requests\/SendContactMessageRequest.php":3774635559,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4316\/app\/Http\/Notifications\/ConfirmPayment.php":332683570,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2970\/src\/Domain\/Subscriptions\/Notifications\/ConfirmPayment.php":332683570,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder717\/app\/Http\/Mail\/SendContactMessage.php":594829001,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2574\/src\/Domain\/Homepage\/Mail\/SendContactMessage.php":594829001,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3564\/app\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2728\/src\/Support\/Middleware\/PreventRequestsDuringMaintenance.php":2280943271,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2396\/src\/Support\/Middleware\/CheckForMaintenanceMode.php":3053801562,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2914\/app\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4608\/app\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4436\/app\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder393\/src\/App\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4795\/src\/App\/Http\/Controllers\/Controller.php":2646027293,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder571\/app\/Http\/Controllers\/User\/AccountController.php":1508255389,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3498\/app\/Http\/Controllers\/User\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3418\/app\/Http\/Controllers\/User\/SubscriptionController.php":2751297300,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder280\/src\/App\/Users\/Controllers\/AccountController.php":1508255389,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2216\/src\/Domain\/Subscriptions\/Controllers\/SubscriptionController.php":2751297300,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1256\/app\/Http\/Controllers\/User\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1499\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5008\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3527\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3673\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5067\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2397\/app\/Http\/Controllers\/Subscription\/StripeWebhookController.php":2426977191,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2193\/src\/Domain\/Subscriptions\/Controllers\/StripeWebhookController.php":2426977191,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4687\/src\/Domain\/Subscriptions\/Controllers\/StripeWebhookController.php":2426977191,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1055\/src\/Domain\/Sharing\/Controllers\/BrowseShareController.php":3494780990,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder435\/src\/Domain\/Sharing\/Controllers\/ManipulateShareItemsController.php":4088697328,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder556\/src\/Domain\/Sharing\/Controllers\/ManipulateShareItemsController.php":4088697328,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5439\/src\/Domain\/Folders\/Controllers\/FavouriteController.php":2757720034,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2894\/app\/Http\/Controllers\/FileManager\/ShareController.php":3375932059,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4696\/src\/Domain\/Sharing\/Controllers\/ShareController.php":3375932059,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2478\/src\/Domain\/Trash\/Controllers\/TrashController.php":3425626945,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3376\/src\/Domain\/Browsing\/Controllers\/BrowseController.php":4160971047,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3347\/src\/Domain\/Browsing\/Controllers\/BrowseController.php":4160971047,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1728\/app\/Http\/Controllers\/FileManager\/EditItemsController.php":2785195430,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3666\/src\/Domain\/Items\/Controllers\/EditItemsController.php":2785195430,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5368\/app\/Http\/Controllers\/FileManager\/FileAccessController.php":755754173,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2401\/src\/Domain\/Files\/Controllers\/FileAccessController.php":755754173,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1630\/src\/Domain\/Files\/Controllers\/FileAccessController.php":755754173,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5164\/src\/App\/Users\/Controllers\/VerificationController.php":260994322,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5135\/src\/App\/Users\/Controllers\/VerificationController.php":260994322,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1259\/app\/Http\/Controllers\/App\/AppFunctionsController.php":2511361643,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2571\/app\/Http\/Controllers\/App\/AppFunctionsController.php":2511361643,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1851\/app\/Http\/Controllers\/App\/Maintenance.php":96974254,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder647\/app\/Http\/Controllers\/App\/Maintenance.php":96974254,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder180\/app\/Http\/Controllers\/App\/Maintenance.php":96974254,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4157\/src\/Domain\/Maintenance\/Controllers\/Maintenance.php":96974254,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder934\/src\/Domain\/Maintenance\/Controllers\/MaintenanceController.php":1184840583,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder26\/src\/Domain\/SetupWizard\/Controllers\/SetupWizardController.php":1744420998,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder761\/src\/Domain\/SetupWizard\/Controllers\/SetupWizardController.php":1744420998,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1265\/app\/Http\/Controllers\/Admin\/UserController.php":43409753,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1322\/src\/Domain\/Admin\/Controllers\/UserController.php":43409753,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3981\/src\/Domain\/Settings\/Controllers\/SettingController.php":3120704415,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3080\/app\/Http\/Controllers\/Admin\/PlanController.php":297053207,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1894\/app\/Http\/Controllers\/Admin\/PlanController.php":297053207,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5770\/src\/Domain\/Plans\/Controllers\/PlansController.php":1625101144,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1153\/src\/Domain\/Admin\/Controllers\/DashboardController.php":813458242,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5037\/src\/Domain\/Admin\/Controllers\/InvoiceController.php":2147703671,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder308\/src\/Domain\/Languages\/Controllers\/LanguageController.php":1495279422,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4404\/src\/Domain\/Pages\/Controllers\/PagesController.php":3260477919,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3117\/src\/Domain\/Pages\/Controllers\/PagesController.php":3260477919,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder289\/app\/Actions\/Fortify\/CreateNewUserAction.php":3364212340,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder6058\/src\/App\/Users\/Actions\/UpdateUserProfileInformation.php":3856897817,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1124\/src\/App\/Users\/Actions\/UpdateUserProfileInformation.php":3856897817,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2893\/app\/Services\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4922\/app\/Services\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5210\/app\/Services\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1182\/src\/Support\/Demo\/Actions\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1817\/app\/Services\/HelperService.php":3229683643,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1678\/app\/Services\/SetupService.php":1722905884,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4808\/src\/Domain\/SetupWizard\/Services\/SetupService.php":1722905884,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1834\/app\/Services\/StripeService.php":3132959360,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4960\/src\/Domain\/Subscriptions\/Services\/StripeService.php":3132959360,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2934\/app\/Services\/SchedulerService.php":4193502914,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4022\/app\/Services\/SchedulerService.php":4193502914,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4389\/src\/Support\/Scheduler\/SchedulerService.php":4193502914,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1759\/src\/Support\/Scheduler\/Actions\/SchedulerService.php":4193502914,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder316\/app\/Services\/HelperService.php":3229683643,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2144\/app\/Services\/FileManagerService.php":1257054593,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder764\/app\/Services\/FileManagerService.php":1257054593,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3752\/src\/Support\/Services\/HelperService.php":3229683643}} \ No newline at end of file +{"php":"8.0.6","version":"3.0.0:v3.0.0#c15377bdfa8d1ecf186f1deadec39c89984e1167","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"length"},"blank_line_before_statement":{"statements":["break","case","continue","declare","default","do","exit","for","foreach","goto","if","include","include_once","require","require_once","return","switch","throw","try","while","yield","yield_from"]},"no_extra_blank_lines":{"tokens":["break","case","continue","curly_brace_block","default","extra","parenthesis_brace_block","return","square_brace_block","switch","throw","use","use_trait"]},"cast_spaces":{"space":"single"},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"single_space_after_construct":true,"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":{"elements":["arrays"]},"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":{"operators":{"=>":"align"}},"method_chaining_indentation":true,"array_indentation":true,"single_quote":true,"no_singleline_whitespace_before_semicolons":true,"no_empty_statement":true,"standardize_increment":true,"object_operator_without_whitespace":true,"ternary_operator_spaces":true,"no_leading_namespace_whitespace":true,"no_blank_lines_before_namespace":true,"fully_qualified_strict_types":true,"single_line_throw":true,"function_typehint_space":true,"simplified_if_return":true,"no_useless_else":true,"no_unneeded_curly_braces":true,"no_empty_comment":true,"no_blank_lines_after_class_opening":true,"whitespace_after_comma_in_array":true,"trim_array_spaces":true,"no_whitespace_before_comma_in_array":true,"lowercase_static_reference":true},"hashes":{"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1459\/src\/App\/Providers\/BroadcastServiceProvider.php":3541093703,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1596\/src\/App\/Providers\/BroadcastServiceProvider.php":3541093703,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder237\/src\/App\/Providers\/BroadcastServiceProvider.php":3541093703,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2415\/src\/App\/BaseApplication.php":4281481777,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder28\/src\/Domain\/Admin\/Rules\/DisabledMimetypes.php":3208905600,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1783\/src\/Domain\/Admin\/Rules\/DisabledMimetypes.php":3208905600,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder836\/src\/App\/Users\/Notifications\/ResetPassword.php":217123398,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3298\/src\/Domain\/Sharing\/Notifications\/SharedSendViaEmail.php":113607832,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder602\/src\/Domain\/Files\/Models\/File.php":12791111,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1908\/src\/Domain\/Sharing\/Notifications\/SharedSendViaEmail.php":113607832,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder768\/src\/App\/Providers\/FortifyServiceProvider.php":1782055566,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2286\/src\/App\/Providers\/AppServiceProvider.php":386165394,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2205\/src\/Domain\/Folders\/Models\/Folder.php":774866902,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1392\/app\/Models\/Invoice.php":3427012087,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1359\/src\/Domain\/Folders\/Models\/Folder.php":774866902,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder792\/src\/Domain\/Languages\/Models\/LanguageTranslation.php":1555765712,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2416\/src\/Domain\/Pages\/Models\/Page.php":907354308,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder511\/src\/Domain\/Pages\/Models\/Page.php":907354308,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1832\/src\/Domain\/Pages\/Models\/Page.php":907354308,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2120\/src\/Domain\/Settings\/Models\/Setting.php":3917536845,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder544\/src\/Domain\/Settings\/Models\/Setting.php":3917536845,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1624\/src\/Domain\/Settings\/Models\/Setting.php":3917536845,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder745\/src\/Domain\/Settings\/Models\/Traffic.php":2512673789,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3185\/app\/Models\/Share.php":131227417,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2832\/src\/Domain\/Sharing\/Models\/Share.php":131227417,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3398\/src\/App\/Users\/Models\/User.php":4048224691,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3432\/src\/App\/Users\/Models\/UserSettings.php":3400206961,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2538\/src\/App\/Users\/Models\/UserSettings.php":3400206961,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2579\/src\/Domain\/Zipping\/Zip.php":2771946819,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1149\/src\/Domain\/Zipping\/Zip.php":2771946819,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3159\/app\/Services\/LanguageService.php":1337481237,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder65\/src\/Domain\/Languages\/Services\/LanguageService.php":1337481237,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3779\/src\/Domain\/Languages\/Models\/Language.php":1756684391,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder666\/app\/Services\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder638\/app\/Http\/Resources\/FileResource.php":2504031769,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2092\/src\/Domain\/Files\/Resources\/FileResource.php":2504031769,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3268\/app\/Http\/Resources\/InvoiceAdminCollection.php":274747241,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder708\/app\/Http\/Resources\/InvoiceAdminResource.php":4202873718,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder677\/src\/App\/Users\/Resources\/UserResource.php":1698497840,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3041\/src\/App\/Users\/Resources\/UserStorageResource.php":2500526056,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2409\/src\/Domain\/Sharing\/Resources\/ShareResource.php":4289675308,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3160\/app\/Http\/Resources\/PricingResource.php":1267485808,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3327\/src\/Domain\/Subscriptions\/Resources\/PricingResource.php":1267485808,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1327\/app\/Http\/Resources\/PaymentCardCollection.php":35382430,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3969\/src\/Domain\/Subscriptions\/Resources\/PaymentDefaultCardResource.php":1228639420,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2768\/src\/Domain\/Subscriptions\/Resources\/PaymentDefaultCardResource.php":1228639420,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2912\/src\/Domain\/Subscriptions\/Resources\/PaymentCardResource.php":4249352961,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4111\/src\/Domain\/Pages\/Resources\/PageResource.php":3319655507,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder262\/src\/Domain\/Languages\/Resources\/LanguageResource.php":3173560286,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1011\/src\/Domain\/Languages\/Resources\/LanguageCollection.php":3837282263,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder254\/app\/Http\/Resources\/InvoiceResource.php":188824434,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder865\/src\/Domain\/Subscriptions\/Resources\/InvoiceResource.php":188824434,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2695\/app\/Http\/Resources\/InvoiceAdminCollection.php":274747241,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2630\/app\/Http\/Resources\/InvoiceAdminResource.php":4202873718,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1909\/src\/Domain\/Admin\/Resources\/InvoiceAdminResource.php":4202873718,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1813\/src\/Domain\/Admin\/Resources\/InvoiceAdminResource.php":4202873718,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder664\/app\/Http\/Requests\/Subscription\/StoreUpgradeAccountRequest.php":2224778578,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3537\/src\/Domain\/Subscriptions\/Requests\/StoreUpgradeAccountRequest.php":2224778578,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4347\/src\/Domain\/Subscriptions\/Requests\/StoreUpgradeAccountRequest.php":2224778578,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder152\/src\/Domain\/Sharing\/Requests\/UpdateShareRequest.php":3029590464,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2927\/src\/Domain\/Sharing\/Requests\/UpdateShareRequest.php":3029590464,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3731\/src\/App\/Users\/Requests\/UserCreateAccessTokenRequest.php":4038761682,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4052\/src\/App\/Users\/Requests\/UserCreateAccessTokenRequest.php":4038761682,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4372\/src\/Domain\/SetupWizard\/Requests\/StoreStripePlansRequest.php":3654298680,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2627\/src\/Domain\/SetupWizard\/Requests\/StoreStripePlansRequest.php":3654298680,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder130\/app\/Http\/Requests\/Payments\/RegisterNewPaymentMethodRequest.php":3499435528,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1743\/src\/Domain\/Subscriptions\/Requests\/RegisterNewPaymentMethodRequest.php":3499435528,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4513\/src\/Domain\/SetupWizard\/Requests\/StoreStripeBillingRequest.php":2569186739,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2995\/src\/Domain\/Sharing\/Requests\/UpdateShareRequest.php":3029590464,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4048\/src\/Domain\/Languages\/Requests\/UpdateStringRequest.php":325219474,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3709\/src\/Domain\/Admin\/Requests\/DeleteUserRequest.php":2636618911,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1668\/app\/Http\/Requests\/Auth\/CheckAccountRequest.php":708120184,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1289\/src\/App\/Users\/Requests\/CheckAccountRequest.php":708120184,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder256\/src\/App\/Users\/Requests\/CheckAccountRequest.php":708120184,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2987\/src\/Domain\/Folders\/Requests\/CreateFolderRequest.php":3692937785,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3699\/src\/Domain\/Files\/Requests\/UploadRequest.php":3708306514,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder763\/src\/Domain\/Files\/Requests\/UploadRequest.php":3708306514,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder111\/src\/Domain\/Files\/Requests\/UploadRequest.php":3708306514,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2989\/src\/Domain\/Item\/Requests\/RenameItemRequest.php":3723095090,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2377\/src\/Domain\/Item\/Requests\/RenameItemRequest.php":3723095090,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder663\/app\/Http\/Requests\/FileBrowser\/SearchRequest.php":202095165,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder409\/src\/Domain\/Item\/Requests\/SearchRequest.php":202095165,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3816\/src\/Domain\/Items\/Requests\/SearchRequest.php":202095165,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3326\/src\/Domain\/Admin\/Requests\/ChangeStorageCapacityRequest.php":2787589842,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4381\/src\/Domain\/Homepage\/PublicPages\/SendContactMessageRequest.php":3774635559,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4186\/src\/Domain\/Homepage\/Requests\/SendContactMessageRequest.php":3774635559,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4316\/app\/Http\/Notifications\/ConfirmPayment.php":332683570,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2970\/src\/Domain\/Subscriptions\/Notifications\/ConfirmPayment.php":332683570,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder717\/app\/Http\/Mail\/SendContactMessage.php":594829001,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2574\/src\/Domain\/Homepage\/Mail\/SendContactMessage.php":594829001,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3564\/app\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2728\/src\/Support\/Middleware\/PreventRequestsDuringMaintenance.php":2280943271,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2396\/src\/Support\/Middleware\/CheckForMaintenanceMode.php":3053801562,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2914\/app\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4608\/app\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4436\/app\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder393\/src\/App\/Http\/Kernel.php":960929552,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4795\/src\/App\/Http\/Controllers\/Controller.php":2646027293,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder571\/app\/Http\/Controllers\/User\/AccountController.php":1508255389,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3498\/app\/Http\/Controllers\/User\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3418\/app\/Http\/Controllers\/User\/SubscriptionController.php":2751297300,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder280\/src\/App\/Users\/Controllers\/AccountController.php":1508255389,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2216\/src\/Domain\/Subscriptions\/Controllers\/SubscriptionController.php":2751297300,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1256\/app\/Http\/Controllers\/User\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1499\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5008\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3527\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3673\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5067\/src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":2668275135,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2397\/app\/Http\/Controllers\/Subscription\/StripeWebhookController.php":2426977191,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2193\/src\/Domain\/Subscriptions\/Controllers\/StripeWebhookController.php":2426977191,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4687\/src\/Domain\/Subscriptions\/Controllers\/StripeWebhookController.php":2426977191,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1055\/src\/Domain\/Sharing\/Controllers\/BrowseShareController.php":3494780990,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder435\/src\/Domain\/Sharing\/Controllers\/ManipulateShareItemsController.php":4088697328,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder556\/src\/Domain\/Sharing\/Controllers\/ManipulateShareItemsController.php":4088697328,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5439\/src\/Domain\/Folders\/Controllers\/FavouriteController.php":2757720034,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2894\/app\/Http\/Controllers\/FileManager\/ShareController.php":3375932059,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4696\/src\/Domain\/Sharing\/Controllers\/ShareController.php":3375932059,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2478\/src\/Domain\/Trash\/Controllers\/TrashController.php":3425626945,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3376\/src\/Domain\/Browsing\/Controllers\/BrowseController.php":4160971047,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3347\/src\/Domain\/Browsing\/Controllers\/BrowseController.php":4160971047,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1728\/app\/Http\/Controllers\/FileManager\/EditItemsController.php":2785195430,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3666\/src\/Domain\/Items\/Controllers\/EditItemsController.php":2785195430,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5368\/app\/Http\/Controllers\/FileManager\/FileAccessController.php":755754173,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2401\/src\/Domain\/Files\/Controllers\/FileAccessController.php":755754173,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1630\/src\/Domain\/Files\/Controllers\/FileAccessController.php":755754173,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5164\/src\/App\/Users\/Controllers\/VerificationController.php":260994322,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5135\/src\/App\/Users\/Controllers\/VerificationController.php":260994322,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1259\/app\/Http\/Controllers\/App\/AppFunctionsController.php":2511361643,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2571\/app\/Http\/Controllers\/App\/AppFunctionsController.php":2511361643,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1851\/app\/Http\/Controllers\/App\/Maintenance.php":96974254,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder647\/app\/Http\/Controllers\/App\/Maintenance.php":96974254,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder180\/app\/Http\/Controllers\/App\/Maintenance.php":96974254,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4157\/src\/Domain\/Maintenance\/Controllers\/Maintenance.php":96974254,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder934\/src\/Domain\/Maintenance\/Controllers\/MaintenanceController.php":1184840583,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder26\/src\/Domain\/SetupWizard\/Controllers\/SetupWizardController.php":1744420998,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder761\/src\/Domain\/SetupWizard\/Controllers\/SetupWizardController.php":1744420998,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1265\/app\/Http\/Controllers\/Admin\/UserController.php":43409753,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1322\/src\/Domain\/Admin\/Controllers\/UserController.php":43409753,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3981\/src\/Domain\/Settings\/Controllers\/SettingController.php":3120704415,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3080\/app\/Http\/Controllers\/Admin\/PlanController.php":297053207,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1894\/app\/Http\/Controllers\/Admin\/PlanController.php":297053207,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5770\/src\/Domain\/Plans\/Controllers\/PlansController.php":1625101144,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1153\/src\/Domain\/Admin\/Controllers\/DashboardController.php":813458242,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5037\/src\/Domain\/Admin\/Controllers\/InvoiceController.php":2147703671,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder308\/src\/Domain\/Languages\/Controllers\/LanguageController.php":1495279422,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4404\/src\/Domain\/Pages\/Controllers\/PagesController.php":3260477919,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3117\/src\/Domain\/Pages\/Controllers\/PagesController.php":3260477919,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder289\/app\/Actions\/Fortify\/CreateNewUserAction.php":3364212340,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder6058\/src\/App\/Users\/Actions\/UpdateUserProfileInformation.php":3856897817,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1124\/src\/App\/Users\/Actions\/UpdateUserProfileInformation.php":3856897817,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2893\/app\/Services\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4922\/app\/Services\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5210\/app\/Services\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1182\/src\/Support\/Demo\/Actions\/DemoService.php":3443050092,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1817\/app\/Services\/HelperService.php":3229683643,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1678\/app\/Services\/SetupService.php":1722905884,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4808\/src\/Domain\/SetupWizard\/Services\/SetupService.php":1722905884,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1834\/app\/Services\/StripeService.php":3132959360,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4960\/src\/Domain\/Subscriptions\/Services\/StripeService.php":3132959360,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2934\/app\/Services\/SchedulerService.php":4193502914,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4022\/app\/Services\/SchedulerService.php":4193502914,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder4389\/src\/Support\/Scheduler\/SchedulerService.php":4193502914,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1759\/src\/Support\/Scheduler\/Actions\/SchedulerService.php":4193502914,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder316\/app\/Services\/HelperService.php":3229683643,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder2144\/app\/Services\/FileManagerService.php":1257054593,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder764\/app\/Services\/FileManagerService.php":1257054593,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder3752\/src\/Support\/Services\/HelperService.php":3229683643,"src\/App\/BaseApplication.php":4281481777,"src\/App\/Providers\/AppServiceProvider.php":386165394,"src\/App\/Providers\/FortifyServiceProvider.php":1738891868,"src\/App\/Providers\/AuthServiceProvider.php":3232559631,"src\/App\/Providers\/RouteServiceProvider.php":1199007651,"src\/App\/Providers\/BroadcastServiceProvider.php":3541093703,"src\/App\/Providers\/EventServiceProvider.php":3395009334,"src\/App\/Exceptions\/Handler.php":1302274777,"src\/App\/Http\/Controllers\/Controller.php":2646027293,"src\/App\/Http\/Kernel.php":3820535029,"src\/App\/Users\/Resources\/UserResource.php":2488671338,"src\/App\/Users\/Resources\/UserStorageResource.php":2334762198,"src\/App\/Users\/Resources\/UserSubscription.php":2073937565,"src\/App\/Users\/Resources\/UsersCollection.php":1455484913,"src\/App\/Users\/Models\/User.php":1647541469,"src\/App\/Users\/Models\/UserSettings.php":3061261601,"src\/App\/Users\/Requests\/UserCreateAccessTokenRequest.php":384275951,"src\/App\/Users\/Requests\/UpdateUserPasswordRequest.php":1564046463,"src\/App\/Users\/Requests\/CheckAccountRequest.php":1379924218,"src\/App\/Users\/Actions\/UpdateUserProfileInformation.php":3421905791,"src\/App\/Users\/Actions\/PasswordValidationRules.php":2096821603,"src\/App\/Users\/Actions\/CreateNewUserAction.php":1073051597,"src\/App\/Users\/Actions\/UpdateUserPassword.php":790079175,"src\/App\/Users\/Actions\/ResetUserPassword.php":1305018343,"src\/App\/Users\/Controllers\/ForgotPasswordController.php":2293622684,"src\/App\/Users\/Controllers\/LoginController.php":524523779,"src\/App\/Users\/Controllers\/ConfirmPasswordController.php":4059171253,"src\/App\/Users\/Controllers\/AuthController.php":3512550849,"src\/App\/Users\/Controllers\/AccountController.php":237297111,"src\/App\/Users\/Controllers\/ResetPasswordController.php":2211404968,"src\/App\/Users\/Controllers\/VerificationController.php":4139166770,"src\/App\/Users\/Notifications\/ResetPassword.php":2360343798,"src\/App\/Console\/Commands\/SetupProdEnvironment.php":252221384,"src\/App\/Console\/Commands\/SetupDevEnvironment.php":870993682,"src\/App\/Console\/Kernel.php":1426551572,"src\/Support\/Demo\/Actions\/DemoService.php":2963306201,"src\/Support\/Middleware\/VerifyCsrfToken.php":3431871678,"src\/Support\/Middleware\/RedirectIfAuthenticated.php":4142931892,"src\/Support\/Middleware\/TrimStrings.php":1961049683,"src\/Support\/Middleware\/Authenticate.php":1562238595,"src\/Support\/Middleware\/TrustProxies.php":3211891715,"src\/Support\/Middleware\/CheckForMaintenanceMode.php":1277502117,"src\/Support\/Middleware\/PreventRequestsDuringMaintenance.php":1674382806,"src\/Support\/Middleware\/EncryptCookies.php":3456828796,"src\/Support\/Scheduler\/Actions\/SchedulerService.php":1324602638,"src\/Support\/helpers.php":1444212094,"src\/Support\/Services\/FileManagerService.php":2236926764,"src\/Support\/Services\/HelperService.php":1582911282,"src\/Domain\/Settings\/Models\/Traffic.php":2935283757,"src\/Domain\/Settings\/Models\/Setting.php":3372323301,"src\/Domain\/Settings\/Controllers\/SettingController.php":2412457808,"src\/Domain\/Sharing\/Resources\/ShareResource.php":428283428,"src\/Domain\/Sharing\/Models\/Share.php":4052457971,"src\/Domain\/Sharing\/Requests\/UpdateShareRequest.php":3570908547,"src\/Domain\/Sharing\/Requests\/CreateShareRequest.php":885822971,"src\/Domain\/Sharing\/Requests\/AuthenticateShareRequest.php":3888247093,"src\/Domain\/Sharing\/Controllers\/ManipulateShareItemsController.php":3759954812,"src\/Domain\/Sharing\/Controllers\/FileSharedAccessController.php":1081873988,"src\/Domain\/Sharing\/Controllers\/BrowseShareController.php":829553292,"src\/Domain\/Sharing\/Controllers\/ShareController.php":3139399907,"src\/Domain\/Sharing\/Notifications\/SharedSendViaEmail.php":3458225874,"src\/Domain\/Homepage\/Mail\/SendContactMessage.php":1546231458,"src\/Domain\/Homepage\/Requests\/SendContactMessageRequest.php":618962938,"src\/Domain\/Homepage\/Controllers\/AppFunctionsController.php":1736410769,"src\/Domain\/Plans\/Controllers\/PlansController.php":3423285506,"src\/Domain\/Browsing\/Controllers\/BrowseController.php":1785311223,"src\/Domain\/Admin\/Resources\/InvoiceAdminCollection.php":3218014726,"src\/Domain\/Admin\/Resources\/InvoiceAdminResource.php":882898944,"src\/Domain\/Admin\/Requests\/ChangeRoleRequest.php":895694346,"src\/Domain\/Admin\/Requests\/ChangeStorageCapacityRequest.php":2882784774,"src\/Domain\/Admin\/Requests\/DeleteUserRequest.php":3932690923,"src\/Domain\/Admin\/Requests\/CreateUserByAdmin.php":2022986184,"src\/Domain\/Admin\/Rules\/DisabledMimetypes.php":577028486,"src\/Domain\/Admin\/Controllers\/UserController.php":1503321843,"src\/Domain\/Admin\/Controllers\/InvoiceController.php":1868202914,"src\/Domain\/Trash\/Controllers\/TrashController.php":2176124381,"src\/Domain\/Zipping\/Zip.php":940977231,"src\/Domain\/Languages\/Resources\/LanguageCollection.php":3976513475,"src\/Domain\/Languages\/Resources\/LanguageResource.php":462926765,"src\/Domain\/Languages\/Models\/LanguageTranslation.php":2344150127,"src\/Domain\/Languages\/Models\/Language.php":103985752,"src\/Domain\/Languages\/Requests\/UpdateLanguageRequest.php":2739333202,"src\/Domain\/Languages\/Requests\/UpdateStringRequest.php":907312874,"src\/Domain\/Languages\/Requests\/CreateLanguageRequest.php":513579590,"src\/Domain\/Languages\/Controllers\/LanguageController.php":929698706,"src\/Domain\/Languages\/Services\/LanguageService.php":3521175101,"src\/Domain\/Subscriptions\/Resources\/PricingCollection.php":3213660059,"src\/Domain\/Subscriptions\/Resources\/PricingResource.php":1706422235,"src\/Domain\/Subscriptions\/Resources\/PaymentDefaultCardResource.php":2123602623,"src\/Domain\/Subscriptions\/Resources\/PlanCollection.php":464545872,"src\/Domain\/Subscriptions\/Resources\/InvoiceCollection.php":1377691940,"src\/Domain\/Subscriptions\/Resources\/InvoiceResource.php":1060361532,"src\/Domain\/Subscriptions\/Resources\/PaymentCardCollection.php":2284228510,"src\/Domain\/Subscriptions\/Resources\/PlanResource.php":3554806477,"src\/Domain\/Subscriptions\/Resources\/PaymentCardResource.php":4110238841,"src\/Domain\/Subscriptions\/Requests\/StoreUpgradeAccountRequest.php":194700795,"src\/Domain\/Subscriptions\/Requests\/RegisterNewPaymentMethodRequest.php":1261537307,"src\/Domain\/Subscriptions\/Controllers\/StripeWebhookController.php":31741014,"src\/Domain\/Subscriptions\/Controllers\/SubscriptionController.php":478130042,"src\/Domain\/Subscriptions\/Controllers\/PaymentMethodsController.php":267635695,"src\/Domain\/Subscriptions\/Notifications\/ConfirmPayment.php":2596409650,"src\/Domain\/Subscriptions\/Services\/StripeService.php":3012777480,"src\/Domain\/Files\/Resources\/FileResource.php":3568752709,"src\/Domain\/Files\/Models\/File.php":4226083385,"src\/Domain\/Files\/Requests\/UploadRequest.php":1138150559,"src\/Domain\/Files\/Controllers\/FileAccessController.php":3506607159,"src\/Domain\/Folders\/Models\/Folder.php":64806200,"src\/Domain\/Folders\/Requests\/CreateFolderRequest.php":3250214773,"src\/Domain\/Folders\/Controllers\/FavouriteController.php":3341693726,"src\/Domain\/Maintenance\/Controllers\/MaintenanceController.php":225980176,"src\/Domain\/Items\/Requests\/SearchRequest.php":3915754011,"src\/Domain\/Items\/Requests\/DeleteItemRequest.php":3562895210,"src\/Domain\/Items\/Requests\/RenameItemRequest.php":869834870,"src\/Domain\/Items\/Requests\/MoveItemRequest.php":3714785345,"src\/Domain\/Items\/Controllers\/EditItemsController.php":4278014213,"src\/Domain\/SetupWizard\/Requests\/StoreStripeCredentialsRequest.php":1613239783,"src\/Domain\/SetupWizard\/Requests\/StoreAppSetupRequest.php":2169040704,"src\/Domain\/SetupWizard\/Requests\/StoreStripeBillingRequest.php":3858494405,"src\/Domain\/SetupWizard\/Requests\/StoreEnvironmentSetupRequest.php":4231339557,"src\/Domain\/SetupWizard\/Requests\/StoreDatabaseCredentialsRequest.php":3153599268,"src\/Domain\/SetupWizard\/Requests\/StoreStripePlansRequest.php":338687488,"src\/Domain\/SetupWizard\/Controllers\/SetupWizardController.php":3408502389,"src\/Domain\/SetupWizard\/Services\/SetupService.php":2845786008,"src\/Domain\/Pages\/Resources\/PageCollection.php":1109398745,"src\/Domain\/Pages\/Resources\/PageResource.php":804960304,"src\/Domain\/Pages\/Models\/Page.php":1224398430,"src\/Domain\/Pages\/Controllers\/PagesController.php":340501741,"routes\/maintenance.php":3087313248,"routes\/file.php":1262711463,"routes\/user.php":1567367606,"routes\/channels.php":2877044881,"routes\/console.php":2045403946,"routes\/web.php":3252196036,"routes\/share.php":1840842763,"routes\/setup.php":2514268539,"routes\/api.php":3166853031,"routes\/admin.php":3156089419,"config\/hashing.php":2194319214,"config\/fortify.php":3059531343,"config\/auth.php":3878356619,"config\/app.php":3163075654,"config\/laravel-query-monitor.php":332751186,"config\/mail.php":1982918162,"config\/language-translations.php":573201866,"config\/services.php":903116839,"config\/database.php":1500812285,"config\/cache.php":3632019567,"config\/cashier.php":1620846026,"config\/session.php":2232050276,"config\/content.php":2506681111,"config\/backup.php":2804181921,"config\/queue.php":113961715,"config\/custom-language-translations.php":1251541856,"config\/vuefilemanager.php":1126120216,"config\/broadcasting.php":639178001,"config\/view.php":3441258419,"config\/scout.php":2655201160,"config\/cors.php":814133164,"config\/logging.php":1549177037,"config\/filesystems.php":22502131,"tests\/App\/Users\/PersonalAccessTokenTest.php":2580195900,"tests\/App\/Users\/SignFlowTest.php":2721796140,"tests\/App\/Users\/UserAccountTest.php":1036760663,"tests\/Support\/Scheduler\/SchedulerTest.php":991457427,"tests\/CreatesApplication.php":1091900543,"tests\/Domain\/Settings\/SettingsTest.php":2576231074,"tests\/Domain\/Sharing\/VisitorAccessToItemsTest.php":931282871,"tests\/Domain\/Sharing\/UserShareTest.php":4050270227,"tests\/Domain\/Sharing\/VisitorManipulatingTest.php":967459739,"tests\/Domain\/Sharing\/VisitorBrowseTest.php":4145526217,"tests\/Domain\/Homepage\/HomepageTest.php":1419222974,"tests\/Domain\/Invoices\/UserInvoicesTest.php":4010938134,"tests\/Domain\/Plans\/SetupWizardPlansTest.php":2059187886,"tests\/Domain\/Plans\/AdminPlansTest.php":2671993254,"tests\/Domain\/Plans\/PlansTest.php":4200842015,"tests\/Domain\/Browsing\/BrowseTest.php":2630907971,"tests\/Domain\/Admin\/AdminTest.php":564762831,"tests\/Domain\/Trash\/TrashTest.php":2208313413,"tests\/Domain\/Zipping\/UserZippingTest.php":195109009,"tests\/Domain\/Zipping\/SharedZippingTest.php":4292066892,"tests\/Domain\/Languages\/AdminLanguageTranslatorTest.php":4253827612,"tests\/Domain\/Languages\/TranslationsAccessTest.php":3295813159,"tests\/Domain\/Subscriptions\/AdminSubscriptionTest.php":901918215,"tests\/Domain\/Subscriptions\/SubscriptionTest.php":7931437,"tests\/Domain\/Files\/FileTest.php":1762446157,"tests\/Domain\/Files\/ContentAccessTest.php":3442084447,"tests\/Domain\/Folders\/FolderTest.php":516812024,"tests\/Domain\/Maintenance\/AppUpgradeTest.php":122429083,"tests\/Domain\/SetupWizard\/SetupWizardTest.php":3555487823,"tests\/Domain\/SetupWizard\/SetupServiceTest.php":2458665487,"tests\/Domain\/Pages\/PagesTest.php":171488347,"tests\/TestCase.php":4221283659,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder16106\/src\/Domain\/Homepage\/Controllers\/AppFunctionsController.php":1736410769,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder18727\/src\/Domain\/Homepage\/Controllers\/AppFunctionsController.php":2627263763,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder13244\/src\/Domain\/Homepage\/Controllers\/AppFunctionsController.php":1360531837,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder5545\/src\/Domain\/Homepage\/Controllers\/AppFunctionsController.php":4118575838,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder9498\/src\/Domain\/Homepage\/Controllers\/AppFunctionsController.php":2648289902,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder18396\/src\/Domain\/Homepage\/Controllers\/AppFunctionsController.php":3592677373,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder1080\/src\/Domain\/Homepage\/Controllers\/AppFunctionsController.php":424788211,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder16974\/src\/Domain\/Homepage\/Controllers\/AppFunctionsController.php":2197334812,"\/private\/var\/folders\/vp\/zs98n_0x39z7xqv0kntn4f2h0000gn\/T\/PHP CS Fixertemp_folder6663\/src\/Support\/Services\/FileManagerService.php":2236926764}} \ No newline at end of file diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index cbdff0d4..db233580 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -2,9 +2,10 @@ $finder = PhpCsFixer\Finder::create() ->in([ - __DIR__ . '/app', + __DIR__ . '/src', __DIR__ . '/routes', __DIR__ . '/config', + __DIR__ . '/tests', ]) ->name('*.php') ->notName('*.blade.php') diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php index 721e0dfd..0708f976 100644 --- a/.phpstorm.meta.php +++ b/.phpstorm.meta.php @@ -51,7 +51,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -59,11 +59,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -250,7 +250,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -258,11 +258,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -449,7 +449,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -457,11 +457,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -648,7 +648,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -656,11 +656,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -847,7 +847,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -855,11 +855,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -1046,7 +1046,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -1054,11 +1054,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -1245,7 +1245,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -1253,11 +1253,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -1444,7 +1444,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -1452,11 +1452,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -1643,7 +1643,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -1651,11 +1651,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -1842,7 +1842,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -1850,11 +1850,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, @@ -2041,7 +2041,7 @@ namespace PHPSTORM_META { 'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class, 'Illuminate\Testing\ParallelTesting' => \Illuminate\Testing\ParallelTesting::class, 'LaravelCrawlerDetect' => \Jaybizzle\CrawlerDetect\CrawlerDetect::class, - 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Actions\Fortify\CreateNewUserAction::class, + 'Laravel\Fortify\Contracts\CreatesNewUsers' => \App\Users\Actions\CreateNewUserAction::class, 'Laravel\Fortify\Contracts\FailedPasswordConfirmationResponse' => \Laravel\Fortify\Http\Responses\FailedPasswordConfirmationResponse::class, 'Laravel\Fortify\Contracts\FailedTwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\FailedTwoFactorLoginResponse::class, 'Laravel\Fortify\Contracts\LockoutResponse' => \Laravel\Fortify\Http\Responses\LockoutResponse::class, @@ -2049,11 +2049,11 @@ namespace PHPSTORM_META { 'Laravel\Fortify\Contracts\LogoutResponse' => \Laravel\Fortify\Http\Responses\LogoutResponse::class, 'Laravel\Fortify\Contracts\PasswordConfirmedResponse' => \Laravel\Fortify\Http\Responses\PasswordConfirmedResponse::class, 'Laravel\Fortify\Contracts\RegisterResponse' => \Laravel\Fortify\Http\Responses\RegisterResponse::class, - 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Actions\Fortify\ResetUserPassword::class, + 'Laravel\Fortify\Contracts\ResetsUserPasswords' => \App\Users\Actions\ResetUserPassword::class, 'Laravel\Fortify\Contracts\TwoFactorAuthenticationProvider' => \Laravel\Fortify\TwoFactorAuthenticationProvider::class, 'Laravel\Fortify\Contracts\TwoFactorLoginResponse' => \Laravel\Fortify\Http\Responses\TwoFactorLoginResponse::class, - 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Actions\Fortify\UpdateUserPassword::class, - 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Actions\Fortify\UpdateUserProfileInformation::class, + 'Laravel\Fortify\Contracts\UpdatesUserPasswords' => \App\Users\Actions\UpdateUserPassword::class, + 'Laravel\Fortify\Contracts\UpdatesUserProfileInformation' => \App\Users\Actions\UpdateUserProfileInformation::class, 'Laravel\Scout\EngineManager' => \Laravel\Scout\EngineManager::class, 'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class, 'Spatie\Backup\Helpers\ConsoleOutput' => \Spatie\Backup\Helpers\ConsoleOutput::class, diff --git a/routes/admin.php b/routes/admin.php index bad419ad..5aa4ee0e 100644 --- a/routes/admin.php +++ b/routes/admin.php @@ -1,12 +1,12 @@ 'dashboard'], function () { diff --git a/routes/api.php b/routes/api.php index dc39c250..5d3507fc 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1,14 +1,14 @@ name('avatar'); Route::get('/system/{image}', [FileAccessController::class, 'get_system_image']); diff --git a/routes/maintenance.php b/routes/maintenance.php index 2ab2bfba..4c6bdf86 100644 --- a/routes/maintenance.php +++ b/routes/maintenance.php @@ -1,6 +1,6 @@ ['auth:sanctum']], function () { Route::get('/down', [MaintenanceController::class, 'down']); diff --git a/routes/setup.php b/routes/setup.php index 53f0f2f4..9886a978 100644 --- a/routes/setup.php +++ b/routes/setup.php @@ -1,6 +1,6 @@ 'editor'], function () { diff --git a/routes/user.php b/routes/user.php index c975a259..7bb17149 100644 --- a/routes/user.php +++ b/routes/user.php @@ -1,9 +1,9 @@ [ - \App\Http\Middleware\EncryptCookies::class, + \Support\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, // \Illuminate\Session\Middleware\AuthenticateSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, - \App\Http\Middleware\VerifyCsrfToken::class, + \Support\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, ], @@ -55,11 +55,11 @@ class Kernel extends HttpKernel * @var array */ protected $routeMiddleware = [ - 'auth' => \App\Http\Middleware\Authenticate::class, + 'auth' => \Support\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 'can' => \Illuminate\Auth\Middleware\Authorize::class, - 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'guest' => \Support\Middleware\RedirectIfAuthenticated::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, diff --git a/src/App/Providers/AuthServiceProvider.php b/src/App/Providers/AuthServiceProvider.php index 3d9bf799..f6006443 100644 --- a/src/App/Providers/AuthServiceProvider.php +++ b/src/App/Providers/AuthServiceProvider.php @@ -4,8 +4,6 @@ namespace App\Providers; use Illuminate\Support\Facades\Gate; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; -//use Laravel\Passport\Passport; - class AuthServiceProvider extends ServiceProvider { /** diff --git a/src/App/Providers/FortifyServiceProvider.php b/src/App/Providers/FortifyServiceProvider.php index 8f06a54e..0eef5c6c 100644 --- a/src/App/Providers/FortifyServiceProvider.php +++ b/src/App/Providers/FortifyServiceProvider.php @@ -4,11 +4,11 @@ namespace App\Providers; use Illuminate\Http\Request; use Laravel\Fortify\Fortify; use Illuminate\Support\ServiceProvider; +use App\Users\Actions\ResetUserPassword; use Illuminate\Cache\RateLimiting\Limit; -use App\Actions\Fortify\ResetUserPassword; -use App\Actions\Fortify\UpdateUserPassword; +use App\Users\Actions\UpdateUserPassword; use Illuminate\Support\Facades\RateLimiter; -use App\Actions\Fortify\UpdateUserProfileInformation; +use App\Users\Actions\UpdateUserProfileInformation; class FortifyServiceProvider extends ServiceProvider { diff --git a/src/App/Users/Actions/CreateNewUserAction.php b/src/App/Users/Actions/CreateNewUserAction.php index 0113260c..8672f4ac 100644 --- a/src/App/Users/Actions/CreateNewUserAction.php +++ b/src/App/Users/Actions/CreateNewUserAction.php @@ -1,14 +1,14 @@ demo = resolve(DemoService::class); + public function __construct( + public DemoService $demo, + ) { } /** diff --git a/src/App/Users/Controllers/AuthController.php b/src/App/Users/Controllers/AuthController.php index 9e3dfcd1..c0a3e3d5 100644 --- a/src/App/Users/Controllers/AuthController.php +++ b/src/App/Users/Controllers/AuthController.php @@ -1,9 +1,9 @@ stripe = $stripe; - } + public function __construct( + private StripeService $stripe + ) {} /** * Get data for dashboard diff --git a/src/Domain/Admin/Controllers/InvoiceController.php b/src/Domain/Admin/Controllers/InvoiceController.php index e092fd18..ea5f12a9 100644 --- a/src/Domain/Admin/Controllers/InvoiceController.php +++ b/src/Domain/Admin/Controllers/InvoiceController.php @@ -1,19 +1,17 @@ stripe = $stripe; + public function __construct( + private StripeService $stripe + ) { } /** diff --git a/src/Domain/Admin/Controllers/UserController.php b/src/Domain/Admin/Controllers/UserController.php index 49f99ded..3fe22313 100644 --- a/src/Domain/Admin/Controllers/UserController.php +++ b/src/Domain/Admin/Controllers/UserController.php @@ -1,33 +1,31 @@ stripe = $stripe; + public function __construct( + private StripeService $stripe + ) { } /** diff --git a/src/Domain/Admin/Requests/ChangeRoleRequest.php b/src/Domain/Admin/Requests/ChangeRoleRequest.php index b7d42299..c4f4dae3 100644 --- a/src/Domain/Admin/Requests/ChangeRoleRequest.php +++ b/src/Domain/Admin/Requests/ChangeRoleRequest.php @@ -1,5 +1,5 @@ helper = resolve(HelperService::class); + public function __construct( + public HelperService $helper, + ) { } /** diff --git a/src/Domain/Files/Models/File.php b/src/Domain/Files/Models/File.php index 5a3505c4..2ad55be6 100644 --- a/src/Domain/Files/Models/File.php +++ b/src/Domain/Files/Models/File.php @@ -1,5 +1,5 @@ demo = resolve(DemoService::class); + public function __construct( + public DemoService $demo, + ) { } /** diff --git a/src/Domain/Folders/Models/Folder.php b/src/Domain/Folders/Models/Folder.php index 3ecce0fa..e3f474c1 100644 --- a/src/Domain/Folders/Models/Folder.php +++ b/src/Domain/Folders/Models/Folder.php @@ -1,5 +1,5 @@ stripe = $stripe; + public function __construct( + private StripeService $stripe + ) { } /** diff --git a/src/Domain/Homepage/Mail/SendContactMessage.php b/src/Domain/Homepage/Mail/SendContactMessage.php index b6c2b2df..75ec8397 100644 --- a/src/Domain/Homepage/Mail/SendContactMessage.php +++ b/src/Domain/Homepage/Mail/SendContactMessage.php @@ -1,5 +1,5 @@ filemanager = resolve(FileManagerService::class); - $this->helper = resolve(HelperService::class); - $this->demo = resolve(DemoService::class); + public function __construct( + private FileManagerService $filemanager, + private HelperService $helper, + private DemoService $demo, + ) { } /** diff --git a/src/Domain/Items/Requests/DeleteItemRequest.php b/src/Domain/Items/Requests/DeleteItemRequest.php index 183de865..1f21ae0c 100644 --- a/src/Domain/Items/Requests/DeleteItemRequest.php +++ b/src/Domain/Items/Requests/DeleteItemRequest.php @@ -1,5 +1,5 @@ demo = resolve(DemoService::class); + public function __construct( + private DemoService $demo, + ) { } /** diff --git a/src/Domain/Pages/Models/Page.php b/src/Domain/Pages/Models/Page.php index c00125c7..cde87684 100644 --- a/src/Domain/Pages/Models/Page.php +++ b/src/Domain/Pages/Models/Page.php @@ -1,5 +1,5 @@ stripe = resolve(StripeService::class); - $this->demo = resolve(DemoService::class); + public function __construct( + private StripeService $stripe, + private DemoService $demo, + ) { } /** diff --git a/src/Domain/Settings/Controllers/SettingController.php b/src/Domain/Settings/Controllers/SettingController.php index c3943821..3bda773d 100644 --- a/src/Domain/Settings/Controllers/SettingController.php +++ b/src/Domain/Settings/Controllers/SettingController.php @@ -1,22 +1,20 @@ demo = resolve(DemoService::class); + public function __construct( + private DemoService $demo + ) { } /** diff --git a/src/Domain/Settings/Models/Traffic.php b/src/Domain/Settings/Models/Traffic.php index 2c363a76..8cd072bf 100644 --- a/src/Domain/Settings/Models/Traffic.php +++ b/src/Domain/Settings/Models/Traffic.php @@ -1,5 +1,5 @@ stripe = resolve(StripeService::class); - $this->setup = resolve(SetupService::class); - + public function __construct( + public StripeService $stripe, + public SetupService $setup, + ) { $this->check_setup_status(); } diff --git a/src/Domain/SetupWizard/Requests/StoreAppSetupRequest.php b/src/Domain/SetupWizard/Requests/StoreAppSetupRequest.php index 1d402a85..8344f296 100644 --- a/src/Domain/SetupWizard/Requests/StoreAppSetupRequest.php +++ b/src/Domain/SetupWizard/Requests/StoreAppSetupRequest.php @@ -1,5 +1,5 @@ helper = resolve(HelperService::class); + public function __construct( + private HelperService $helper, + ) { } /** diff --git a/src/Domain/Sharing/Controllers/FileSharedAccessController.php b/src/Domain/Sharing/Controllers/FileSharedAccessController.php index e6e93e09..2245bbe7 100644 --- a/src/Domain/Sharing/Controllers/FileSharedAccessController.php +++ b/src/Domain/Sharing/Controllers/FileSharedAccessController.php @@ -1,20 +1,18 @@ helper = resolve(HelperService::class); + public function __construct( + private HelperService $helper, + ) { } /** diff --git a/src/Domain/Sharing/Controllers/ManipulateShareItemsController.php b/src/Domain/Sharing/Controllers/ManipulateShareItemsController.php index 3c53b329..bb1a9955 100644 --- a/src/Domain/Sharing/Controllers/ManipulateShareItemsController.php +++ b/src/Domain/Sharing/Controllers/ManipulateShareItemsController.php @@ -1,32 +1,29 @@ filemanager = resolve(FileManagerService::class); - $this->helper = resolve(HelperService::class); - $this->demo = resolve(DemoService::class); + public function __construct( + private FileManagerService $filemanager, + private HelperService $helper, + private DemoService $demo, + ) { } /** diff --git a/src/Domain/Sharing/Controllers/ShareController.php b/src/Domain/Sharing/Controllers/ShareController.php index c6d5608a..61d2cf24 100644 --- a/src/Domain/Sharing/Controllers/ShareController.php +++ b/src/Domain/Sharing/Controllers/ShareController.php @@ -1,18 +1,18 @@ stripe = $stripe; - $this->demo = resolve(DemoService::class); + public function __construct( + private StripeService $stripe, + private DemoService $demo, + ) { } /** diff --git a/src/Domain/Subscriptions/Controllers/StripeWebhookController.php b/src/Domain/Subscriptions/Controllers/StripeWebhookController.php index e4ce4368..89558232 100644 --- a/src/Domain/Subscriptions/Controllers/StripeWebhookController.php +++ b/src/Domain/Subscriptions/Controllers/StripeWebhookController.php @@ -1,5 +1,5 @@ stripe = resolve(StripeService::class); + public function __construct( + public StripeService $stripe + ) { } /** diff --git a/src/Domain/Subscriptions/Controllers/SubscriptionController.php b/src/Domain/Subscriptions/Controllers/SubscriptionController.php index 639a2945..0604d0d1 100644 --- a/src/Domain/Subscriptions/Controllers/SubscriptionController.php +++ b/src/Domain/Subscriptions/Controllers/SubscriptionController.php @@ -1,28 +1,25 @@ stripe = resolve(StripeService::class); - $this->demo = DemoService::class; + public function __construct( + private StripeService $stripe, + private DemoService $demo, + ) { } /** diff --git a/src/Domain/Subscriptions/Notifications/ConfirmPayment.php b/src/Domain/Subscriptions/Notifications/ConfirmPayment.php index c29987ff..e8c2a167 100644 --- a/src/Domain/Subscriptions/Notifications/ConfirmPayment.php +++ b/src/Domain/Subscriptions/Notifications/ConfirmPayment.php @@ -1,5 +1,5 @@ demo = resolve(DemoService::class); + public function __construct( + public DemoService $demo, + ) { } /** diff --git a/src/Domain/Zipping/Zip.php b/src/Domain/Zipping/Zip.php index f1ba79b4..c2d83d76 100644 --- a/src/Domain/Zipping/Zip.php +++ b/src/Domain/Zipping/Zip.php @@ -1,8 +1,10 @@ hasOne(User::class, 'id', 'user_id'); } - /** - * Model events - */ protected static function boot() { parent::boot(); diff --git a/src/Support/Demo/Actions/DemoService.php b/src/Support/Demo/Actions/DemoService.php index 4ebe9ba6..03347996 100644 --- a/src/Support/Demo/Actions/DemoService.php +++ b/src/Support/Demo/Actions/DemoService.php @@ -1,12 +1,12 @@ helper = resolve(HelperService::class); + public function __construct( + private HelperService $helper, + ) { } /** diff --git a/src/Support/Services/HelperService.php b/src/Support/Services/HelperService.php index 81ceedf6..6c96bbf5 100644 --- a/src/Support/Services/HelperService.php +++ b/src/Support/Services/HelperService.php @@ -1,12 +1,12 @@ 'user_verification', 'value' => 1, - ] + ], ])->each(function ($setting) { Setting::create([ 'name' => $setting['name'], @@ -47,7 +45,7 @@ class SignFlowTest extends TestCase ])->assertStatus(201); $this->assertDatabaseHas('users', [ - 'email' => 'john@doe.com', + 'email' => 'john@doe.com', 'email_verified_at' => null, ]); diff --git a/tests/App/Users/UserAccountTest.php b/tests/App/Users/UserAccountTest.php index 3a471b1c..cd6dc5d4 100644 --- a/tests/App/Users/UserAccountTest.php +++ b/tests/App/Users/UserAccountTest.php @@ -5,10 +5,9 @@ use Storage; use Notification; use Tests\TestCase; use Domain\Settings\Models\User; -use Laravel\Sanctum\Sanctum; -use Domain\SetupWizard\Services\SetupService; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\URL; +use Domain\SetupWizard\Services\SetupService; use Illuminate\Auth\Notifications\VerifyEmail; class UserAccountTest extends TestCase @@ -51,10 +50,10 @@ class UserAccountTest extends TestCase $this ->actingAs($user) ->postJson('/api/user/password', [ - 'current_password' => 'secret', - 'password' => 'VerySecretPassword', - 'password_confirmation' => 'VerySecretPassword', - ])->assertStatus(204); + 'current_password' => 'secret', + 'password' => 'VerySecretPassword', + 'password_confirmation' => 'VerySecretPassword', + ])->assertStatus(204); // TODO: login s novym heslom } @@ -70,9 +69,9 @@ class UserAccountTest extends TestCase $this ->actingAs($user) ->patchJson('/api/user/relationships/settings', [ - 'name' => 'address', - 'value' => 'Jantar', - ])->assertStatus(204); + 'name' => 'address', + 'value' => 'Jantar', + ])->assertStatus(204); $this->assertDatabaseHas('user_settings', [ 'address' => 'Jantar', @@ -93,8 +92,8 @@ class UserAccountTest extends TestCase $this ->actingAs($user) ->patchJson('/api/user/relationships/settings', [ - 'avatar' => $avatar, - ])->assertStatus(204); + 'avatar' => $avatar, + ])->assertStatus(204); Storage::disk('local') ->assertExists($user->settings->getRawOriginal('avatar')); diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php index 547152f6..2d5b4f17 100644 --- a/tests/CreatesApplication.php +++ b/tests/CreatesApplication.php @@ -1,5 +1,4 @@ 'license', - 'value' => 'Regular' + 'value' => 'Regular', ]); DB::table('subscriptions') @@ -55,11 +54,11 @@ class AdminTest extends TestCase ->getJson('/api/admin/dashboard') ->assertStatus(200) ->assertExactJson([ - "license" => 'Regular', - "app_version" => config('vuefilemanager.version'), - "total_users" => 1, - "total_used_space" => '2.00MB', - "total_premium_users" => 1, + 'license' => 'Regular', + 'app_version' => config('vuefilemanager.version'), + 'total_users' => 1, + 'total_used_space' => '2.00MB', + 'total_premium_users' => 1, ]); } @@ -174,37 +173,37 @@ class AdminTest extends TestCase ->getJson("/api/admin/users/$user->id/storage") ->assertStatus(200) ->assertExactJson([ - "data" => [ - "id" => $user->id, - "type" => "storage", - "attributes" => [ - "used" => "5.00MB", - "capacity" => "5GB", - "percentage" => 0.1, + 'data' => [ + 'id' => $user->id, + 'type' => 'storage', + 'attributes' => [ + 'used' => '5.00MB', + 'capacity' => '5GB', + 'percentage' => 0.1, ], - "meta" => [ - "images" => [ - "used" => '1.00MB', - "percentage" => 0.02, + 'meta' => [ + 'images' => [ + 'used' => '1.00MB', + 'percentage' => 0.02, ], - "audios" => [ - "used" => '1.00MB', - "percentage" => 0.02, + 'audios' => [ + 'used' => '1.00MB', + 'percentage' => 0.02, ], - "videos" => [ - "used" => '1.00MB', - "percentage" => 0.02, + 'videos' => [ + 'used' => '1.00MB', + 'percentage' => 0.02, ], - "documents" => [ - "used" => '1.00MB', - "percentage" => 0.02, + 'documents' => [ + 'used' => '1.00MB', + 'percentage' => 0.02, ], - "others" => [ - "used" => '1.00MB', - "percentage" => 0.02, - ] - ] - ] + 'others' => [ + 'used' => '1.00MB', + 'percentage' => 0.02, + ], + ], + ], ]); } @@ -241,10 +240,10 @@ class AdminTest extends TestCase $this ->actingAs($admin) ->patchJson("/api/admin/users/$user->id/capacity", [ - 'attributes' => [ - 'storage_capacity' => 10 - ] - ])->assertStatus(200); + 'attributes' => [ + 'storage_capacity' => 10, + ], + ])->assertStatus(200); $this->assertDatabaseHas('user_settings', [ 'user_id' => $user->id, @@ -266,10 +265,10 @@ class AdminTest extends TestCase $this ->actingAs($admin) ->patchJson("/api/admin/users/$user->id/role", [ - 'attributes' => [ - 'role' => 'admin' - ] - ])->assertStatus(200); + 'attributes' => [ + 'role' => 'admin', + ], + ])->assertStatus(200); $this->assertTrue(User::find($user->id)->role === 'admin'); } @@ -287,25 +286,25 @@ class AdminTest extends TestCase $this ->actingAs($admin) - ->postJson("/api/admin/users/create", [ - 'name' => 'John Doe', - 'role' => 'user', - 'email' => 'john@doe.com', - 'password' => 'VerySecretPassword', - 'storage_capacity' => 15, - 'password_confirmation' => 'VerySecretPassword', - 'avatar' => $avatar, - ])->assertStatus(201); + ->postJson('/api/admin/users/create', [ + 'name' => 'John Doe', + 'role' => 'user', + 'email' => 'john@doe.com', + 'password' => 'VerySecretPassword', + 'storage_capacity' => 15, + 'password_confirmation' => 'VerySecretPassword', + 'avatar' => $avatar, + ])->assertStatus(201); $this->assertDatabaseHas('users', [ - 'email' => 'john@doe.com' + 'email' => 'john@doe.com', ]); $this->assertNotNull(User::whereEmail('john@doe.com') ->get('email_verified_at')); $this->assertDatabaseHas('user_settings', [ - 'name' => 'John Doe' + 'name' => 'John Doe', ]); Storage::disk('local') @@ -348,7 +347,6 @@ class AdminTest extends TestCase // Upload files collect([0, 1]) ->each(function ($index) { - $file = UploadedFile::fake() ->create("fake-file-$index.pdf", 1200, 'application/pdf'); @@ -382,7 +380,7 @@ class AdminTest extends TestCase // Delete user $this->deleteJson("/api/admin/users/$user->id/delete", [ - 'name' => $user->settings->name + 'name' => $user->settings->name, ]) ->assertStatus(204); @@ -412,7 +410,6 @@ class AdminTest extends TestCase $file_ids ->each(function ($id, $index) use ($user) { - Storage::disk('local') ->assertMissing( "files/$user->id/fake-file-$index.pdf" @@ -445,7 +442,7 @@ class AdminTest extends TestCase $this->getJson('/api/admin/pages') ->assertStatus(200) ->assertJsonFragment([ - 'slug' => $slug + 'slug' => $slug, ]); }); } @@ -465,7 +462,7 @@ class AdminTest extends TestCase ->getJson('/api/admin/pages/terms-of-service') ->assertStatus(200) ->assertJsonFragment([ - 'slug' => 'terms-of-service' + 'slug' => 'terms-of-service', ]); } @@ -482,12 +479,12 @@ class AdminTest extends TestCase $this ->actingAs($admin) ->patchJson('/api/admin/pages/terms-of-service', [ - 'name' => 'title', - 'value' => 'New Title' - ])->assertStatus(204); + 'name' => 'title', + 'value' => 'New Title', + ])->assertStatus(204); $this->assertDatabaseHas('pages', [ - 'title' => 'New Title' + 'title' => 'New Title', ]); } } diff --git a/tests/Domain/Browsing/BrowseTest.php b/tests/Domain/Browsing/BrowseTest.php index dffcab48..ab97c40b 100644 --- a/tests/Domain/Browsing/BrowseTest.php +++ b/tests/Domain/Browsing/BrowseTest.php @@ -1,15 +1,14 @@ actingAs($user) - ->getJson("/api/browse/navigation") + ->getJson('/api/browse/navigation') ->assertStatus(200) ->assertExactJson([ [ - "name" => "Home", - "location" => "base", - "folders" => [ + 'name' => 'Home', + 'location' => 'base', + 'folders' => [ [ - "id" => $folder_level_1->id, - "parent_id" => null, - "name" => "level 1", - "items" => 2, - "trashed_items" => 2, - "type" => "folder", - "folders" => [ + 'id' => $folder_level_1->id, + 'parent_id' => null, + 'name' => 'level 1', + 'items' => 2, + 'trashed_items' => 2, + 'type' => 'folder', + 'folders' => [ [ - "id" => $folder_level_2->id, - "parent_id" => $folder_level_1->id, - "name" => "level 2", - "items" => 1, - "trashed_items" => 1, - "type" => "folder", - "folders" => [ + 'id' => $folder_level_2->id, + 'parent_id' => $folder_level_1->id, + 'name' => 'level 2', + 'items' => 1, + 'trashed_items' => 1, + 'type' => 'folder', + 'folders' => [ [ - "id" => $folder_level_3->id, - "user_id" => $user->id, - "parent_id" => $folder_level_2->id, - "name" => "level 3", - "color" => null, - "emoji" => null, - "author" => "user", - "deleted_at" => null, - "created_at" => $folder_level_3->created_at, - "updated_at" => $folder_level_3->updated_at->toJson(), - "items" => 0, - "trashed_items" => 0, - "type" => "folder", - "folders" => [], + 'id' => $folder_level_3->id, + 'user_id' => $user->id, + 'parent_id' => $folder_level_2->id, + 'name' => 'level 3', + 'color' => null, + 'emoji' => null, + 'author' => 'user', + 'deleted_at' => null, + 'created_at' => $folder_level_3->created_at, + 'updated_at' => $folder_level_3->updated_at->toJson(), + 'items' => 0, + 'trashed_items' => 0, + 'type' => 'folder', + 'folders' => [], ], ], ], [ - "id" => $folder_level_2_sibling->id, - "parent_id" => $folder_level_1->id, - "name" => "level 2 Sibling", - "items" => 0, - "trashed_items" => 0, - "type" => "folder", - "folders" => [] - ] - ] - ] - ] - ] + 'id' => $folder_level_2_sibling->id, + 'parent_id' => $folder_level_1->id, + 'name' => 'level 2 Sibling', + 'items' => 0, + 'trashed_items' => 0, + 'type' => 'folder', + 'folders' => [], + ], + ], + ], + ], + ], ]); } @@ -131,7 +130,7 @@ class BrowseTest extends TestCase ->create([ 'parent_id' => $root->id, 'name' => 'Documents', - "author" => "user", + 'author' => 'user', 'user_id' => $user->id, ]); @@ -140,9 +139,9 @@ class BrowseTest extends TestCase 'folder_id' => $root->id, 'name' => 'Document', 'basename' => 'document.pdf', - "mimetype" => "application/pdf", - "author" => "user", - "type" => "file", + 'mimetype' => 'application/pdf', + 'author' => 'user', + 'type' => 'file', 'user_id' => $user->id, ]); @@ -152,53 +151,53 @@ class BrowseTest extends TestCase ->assertStatus(200) ->assertExactJson([ [ - "id" => $folder->id, - "user_id" => $user->id, - "parent_id" => $root->id, - "name" => "Documents", - "color" => null, - "emoji" => null, - "author" => "user", - "deleted_at" => null, - "created_at" => $folder->created_at, - "updated_at" => $folder->updated_at->toJson(), - "items" => 0, - "trashed_items" => 0, - "type" => "folder", - "parent" => [ - "id" => $root->id, - "name" => "root", - "items" => 2, - "trashed_items" => 2, - "type" => "folder", + 'id' => $folder->id, + 'user_id' => $user->id, + 'parent_id' => $root->id, + 'name' => 'Documents', + 'color' => null, + 'emoji' => null, + 'author' => 'user', + 'deleted_at' => null, + 'created_at' => $folder->created_at, + 'updated_at' => $folder->updated_at->toJson(), + 'items' => 0, + 'trashed_items' => 0, + 'type' => 'folder', + 'parent' => [ + 'id' => $root->id, + 'name' => 'root', + 'items' => 2, + 'trashed_items' => 2, + 'type' => 'folder', ], - "shared" => null, + 'shared' => null, ], [ - "id" => $file->id, - "user_id" => $user->id, - "folder_id" => $root->id, - "thumbnail" => null, - "name" => "Document", - "basename" => "document.pdf", - "mimetype" => "application/pdf", - "filesize" => $file->filesize, - "type" => "file", - "metadata" => null, - "author" => "user", - "deleted_at" => null, - "created_at" => $file->created_at, - "updated_at" => $file->updated_at->toJson(), - "file_url" => "http://localhost/file/document.pdf", - "parent" => [ - "id" => $root->id, - "name" => "root", - "items" => 2, - "trashed_items" => 2, - "type" => "folder", + 'id' => $file->id, + 'user_id' => $user->id, + 'folder_id' => $root->id, + 'thumbnail' => null, + 'name' => 'Document', + 'basename' => 'document.pdf', + 'mimetype' => 'application/pdf', + 'filesize' => $file->filesize, + 'type' => 'file', + 'metadata' => null, + 'author' => 'user', + 'deleted_at' => null, + 'created_at' => $file->created_at, + 'updated_at' => $file->updated_at->toJson(), + 'file_url' => 'http://localhost/file/document.pdf', + 'parent' => [ + 'id' => $root->id, + 'name' => 'root', + 'items' => 2, + 'trashed_items' => 2, + 'type' => 'folder', ], - "shared" => null, - ] + 'shared' => null, + ], ]); } @@ -221,9 +220,9 @@ class BrowseTest extends TestCase 'folder_id' => $root->id, 'name' => 'Document 1', 'basename' => 'document-1.pdf', - "mimetype" => "application/pdf", - "author" => "user", - "type" => "file", + 'mimetype' => 'application/pdf', + 'author' => 'user', + 'type' => 'file', 'user_id' => $user->id, 'created_at' => now(), ]); @@ -235,64 +234,64 @@ class BrowseTest extends TestCase 'folder_id' => $root->id, 'name' => 'Document 2', 'basename' => 'document-2.pdf', - "mimetype" => "application/pdf", - "author" => "user", - "type" => "file", + 'mimetype' => 'application/pdf', + 'author' => 'user', + 'type' => 'file', 'user_id' => $user->id, 'created_at' => now(), ]); $this ->actingAs($user) - ->getJson("/api/browse/latest") + ->getJson('/api/browse/latest') ->assertStatus(200) ->assertExactJson([ [ - "id" => $file_2->id, - "user_id" => $user->id, - "folder_id" => $root->id, - "thumbnail" => null, - "name" => "Document 2", - "basename" => "document-2.pdf", - "mimetype" => "application/pdf", - "filesize" => $file_2->filesize, - "type" => "file", - "metadata" => null, - "author" => "user", - "deleted_at" => null, - "created_at" => $file_2->created_at, - "updated_at" => $file_2->updated_at->toJson(), - "file_url" => "http://localhost/file/document-2.pdf", - "parent" => [ - "id" => $root->id, - "name" => "root", - "items" => 2, - "trashed_items" => 2, - "type" => "folder", + 'id' => $file_2->id, + 'user_id' => $user->id, + 'folder_id' => $root->id, + 'thumbnail' => null, + 'name' => 'Document 2', + 'basename' => 'document-2.pdf', + 'mimetype' => 'application/pdf', + 'filesize' => $file_2->filesize, + 'type' => 'file', + 'metadata' => null, + 'author' => 'user', + 'deleted_at' => null, + 'created_at' => $file_2->created_at, + 'updated_at' => $file_2->updated_at->toJson(), + 'file_url' => 'http://localhost/file/document-2.pdf', + 'parent' => [ + 'id' => $root->id, + 'name' => 'root', + 'items' => 2, + 'trashed_items' => 2, + 'type' => 'folder', ], ], [ - "id" => $file_1->id, - "user_id" => $user->id, - "folder_id" => $root->id, - "thumbnail" => null, - "name" => "Document 1", - "basename" => "document-1.pdf", - "mimetype" => "application/pdf", - "filesize" => $file_1->filesize, - "type" => "file", - "metadata" => null, - "author" => "user", - "deleted_at" => null, - "created_at" => $file_1->created_at, - "updated_at" => $file_1->updated_at->toJson(), - "file_url" => "http://localhost/file/document-1.pdf", - "parent" => [ - "id" => $root->id, - "name" => "root", - "items" => 2, - "trashed_items" => 2, - "type" => "folder", + 'id' => $file_1->id, + 'user_id' => $user->id, + 'folder_id' => $root->id, + 'thumbnail' => null, + 'name' => 'Document 1', + 'basename' => 'document-1.pdf', + 'mimetype' => 'application/pdf', + 'filesize' => $file_1->filesize, + 'type' => 'file', + 'metadata' => null, + 'author' => 'user', + 'deleted_at' => null, + 'created_at' => $file_1->created_at, + 'updated_at' => $file_1->updated_at->toJson(), + 'file_url' => 'http://localhost/file/document-1.pdf', + 'parent' => [ + 'id' => $root->id, + 'name' => 'root', + 'items' => 2, + 'trashed_items' => 2, + 'type' => 'folder', ], ], ]); @@ -308,17 +307,17 @@ class BrowseTest extends TestCase $file = File::factory(File::class) ->create([ - "author" => "visitor", - "type" => "file", + 'author' => 'visitor', + 'type' => 'file', 'user_id' => $user->id, ]); $this ->actingAs($user) - ->getJson("/api/browse/participants") + ->getJson('/api/browse/participants') ->assertStatus(200) ->assertJsonFragment([ - 'id' => $file->id + 'id' => $file->id, ]); } @@ -335,7 +334,7 @@ class BrowseTest extends TestCase 'parent_id' => null, 'name' => 'root', 'user_id' => $user->id, - "author" => "user", + 'author' => 'user', 'deleted_at' => now(), ]); @@ -344,9 +343,9 @@ class BrowseTest extends TestCase 'folder_id' => null, 'name' => 'Document', 'basename' => 'document.pdf', - "mimetype" => "application/pdf", - "author" => "user", - "type" => "file", + 'mimetype' => 'application/pdf', + 'author' => 'user', + 'type' => 'file', 'user_id' => $user->id, 'deleted_at' => now(), ]); @@ -360,42 +359,42 @@ class BrowseTest extends TestCase $this ->actingAs($user) - ->getJson("/api/browse/trash") + ->getJson('/api/browse/trash') ->assertStatus(200) ->assertExactJson([ [ - "id" => $folder->id, - "user_id" => $user->id, - "parent_id" => null, - "name" => "root", - "color" => null, - "emoji" => null, - "author" => "user", - "deleted_at" => $folder->deleted_at, - "created_at" => $folder->created_at, - "updated_at" => $folder->updated_at->toJson(), - "items" => 0, - "trashed_items" => 1, - "type" => "folder", - "parent" => null, + 'id' => $folder->id, + 'user_id' => $user->id, + 'parent_id' => null, + 'name' => 'root', + 'color' => null, + 'emoji' => null, + 'author' => 'user', + 'deleted_at' => $folder->deleted_at, + 'created_at' => $folder->created_at, + 'updated_at' => $folder->updated_at->toJson(), + 'items' => 0, + 'trashed_items' => 1, + 'type' => 'folder', + 'parent' => null, ], [ - "id" => $file->id, - "user_id" => $user->id, - "folder_id" => null, - "thumbnail" => null, - "name" => "Document", - "basename" => "document.pdf", - "mimetype" => "application/pdf", - "filesize" => $file->filesize, - "type" => "file", - "metadata" => null, - "author" => "user", - "deleted_at" => $file->deleted_at, - "created_at" => $file->created_at, - "updated_at" => $file->updated_at->toJson(), - "file_url" => "http://localhost/file/document.pdf", - "parent" => null + 'id' => $file->id, + 'user_id' => $user->id, + 'folder_id' => null, + 'thumbnail' => null, + 'name' => 'Document', + 'basename' => 'document.pdf', + 'mimetype' => 'application/pdf', + 'filesize' => $file->filesize, + 'type' => 'file', + 'metadata' => null, + 'author' => 'user', + 'deleted_at' => $file->deleted_at, + 'created_at' => $file->created_at, + 'updated_at' => $file->updated_at->toJson(), + 'file_url' => 'http://localhost/file/document.pdf', + 'parent' => null, ], ]); } @@ -424,18 +423,18 @@ class BrowseTest extends TestCase ->each(function ($item) use ($user) { Share::factory(Share::class) ->create([ - "type" => $item->type === 'folder' ? 'folder' : 'file', - "item_id" => $item->id, + 'type' => $item->type === 'folder' ? 'folder' : 'file', + 'item_id' => $item->id, 'user_id' => $user->id, ]); }); collect([$folder, $file]) ->each(function ($item) use ($user) { - $this->getJson("/api/browse/share") + $this->getJson('/api/browse/share') ->assertStatus(200) ->assertJsonFragment([ - 'id' => $item->id + 'id' => $item->id, ]); }); } @@ -456,10 +455,10 @@ class BrowseTest extends TestCase $this ->actingAs($user) - ->getJson("/api/browse/search?query=doc") + ->getJson('/api/browse/search?query=doc') ->assertStatus(200) ->assertJsonFragment([ - 'id' => $file->id + 'id' => $file->id, ]); } @@ -479,10 +478,10 @@ class BrowseTest extends TestCase $this ->actingAs($user) - ->getJson("/api/browse/search?query=doc") + ->getJson('/api/browse/search?query=doc') ->assertStatus(200) ->assertJsonFragment([ - 'id' => $folder->id + 'id' => $folder->id, ]); } } diff --git a/tests/Domain/Files/ContentAccessTest.php b/tests/Domain/Files/ContentAccessTest.php index a45f9fa7..c0667807 100644 --- a/tests/Domain/Files/ContentAccessTest.php +++ b/tests/Domain/Files/ContentAccessTest.php @@ -1,17 +1,16 @@ get("file/fake-file.pdf") + $this->get('file/fake-file.pdf') ->assertRedirect(); } @@ -220,7 +219,7 @@ class ContentAccessTest extends TestCase */ public function guest_try_to_get_private_user_zip() { - $this->get("zip/EHWKcuvKzA4Gv29v-archive.zip") + $this->get('zip/EHWKcuvKzA4Gv29v-archive.zip') ->assertRedirect(); } @@ -229,7 +228,7 @@ class ContentAccessTest extends TestCase */ public function guest_try_to_get_private_user_image_thumbnail() { - $this->get("thumbnail/fake-thumbnail.jpg") + $this->get('thumbnail/fake-thumbnail.jpg') ->assertRedirect(); } diff --git a/tests/Domain/Files/FileTest.php b/tests/Domain/Files/FileTest.php index 20759c85..36c2b85a 100644 --- a/tests/Domain/Files/FileTest.php +++ b/tests/Domain/Files/FileTest.php @@ -1,16 +1,15 @@ create(); $this->assertDatabaseHas('files', [ - 'id' => $file->id + 'id' => $file->id, ]); } @@ -47,16 +46,16 @@ class FileTest extends TestCase $this ->actingAs($user) ->postJson('/api/upload', [ - 'filename' => $file->name, - 'file' => $file, - 'folder_id' => null, - 'is_last' => true, - ])->assertStatus(201); + 'filename' => $file->name, + 'file' => $file, + 'folder_id' => null, + 'is_last' => true, + ])->assertStatus(201); $disk = Storage::disk('local'); $disk->assertMissing( - "chunks/fake-image.jpg" + 'chunks/fake-image.jpg' ); $disk->assertExists( @@ -86,16 +85,16 @@ class FileTest extends TestCase $this ->actingAs($user) ->postJson('/api/upload', [ - 'filename' => $file->name, - 'file' => $file, - 'folder_id' => null, - 'is_last' => true, - ])->assertStatus(201); + 'filename' => $file->name, + 'file' => $file, + 'folder_id' => null, + 'is_last' => true, + ])->assertStatus(201); $disk = Storage::disk('local'); $disk->assertMissing( - "chunks/fake-file.pdf" + 'chunks/fake-file.pdf' ); $disk->assertExists( @@ -126,10 +125,10 @@ class FileTest extends TestCase $this ->actingAs($user) ->postJson('/api/upload', [ - 'file' => $file, - 'folder_id' => null, - 'is_last' => true, - ])->assertStatus(422); + 'file' => $file, + 'folder_id' => null, + 'is_last' => true, + ])->assertStatus(422); Storage::disk('local') ->assertMissing("files/$user->id/fake-file.pdf"); @@ -149,16 +148,16 @@ class FileTest extends TestCase $this ->actingAs($user) ->patchJson("/api/rename/{$file->id}", [ - 'name' => 'Renamed Item', - 'type' => 'file', - ]) + 'name' => 'Renamed Item', + 'type' => 'file', + ]) ->assertStatus(200) ->assertJsonFragment([ 'name' => 'Renamed Item', ]); $this->assertDatabaseHas('files', [ - 'name' => 'Renamed Item' + 'name' => 'Renamed Item', ]); } @@ -178,15 +177,15 @@ class FileTest extends TestCase $this ->actingAs($user) - ->postJson("/api/move", [ - 'to_id' => $folder->id, - 'items' => [ - [ - 'type' => 'file', - 'id' => $file->id, - ] - ], - ])->assertStatus(204); + ->postJson('/api/move', [ + 'to_id' => $folder->id, + 'items' => [ + [ + 'type' => 'file', + 'id' => $file->id, + ], + ], + ])->assertStatus(204); $this->assertDatabaseHas('files', [ 'id' => $file->id, @@ -208,20 +207,20 @@ class FileTest extends TestCase $this ->actingAs($user) - ->postJson("/api/remove", [ - 'items' => [ - [ - 'id' => $files[0]->id, - 'type' => 'file', - 'force_delete' => false, + ->postJson('/api/remove', [ + 'items' => [ + [ + 'id' => $files[0]->id, + 'type' => 'file', + 'force_delete' => false, + ], + [ + 'id' => $files[1]->id, + 'type' => 'file', + 'force_delete' => false, + ], ], - [ - 'id' => $files[1]->id, - 'type' => 'file', - 'force_delete' => false, - ], - ], - ])->assertStatus(204); + ])->assertStatus(204); $files ->each(function ($file) { @@ -243,7 +242,6 @@ class FileTest extends TestCase collect([0, 1]) ->each(function ($index) { - $file = UploadedFile::fake() ->create("fake-file-$index.pdf", 1200, 'application/pdf'); @@ -257,7 +255,7 @@ class FileTest extends TestCase $file_ids = File::all()->pluck('id'); - $this->postJson("/api/remove", [ + $this->postJson('/api/remove', [ 'items' => [ [ 'id' => $file_ids->first(), @@ -274,7 +272,6 @@ class FileTest extends TestCase $file_ids ->each(function ($id, $index) use ($user) { - $this->assertDatabaseMissing('files', [ 'id' => $id, ]); diff --git a/tests/Domain/Folders/FolderTest.php b/tests/Domain/Folders/FolderTest.php index 91b693b4..af85ef80 100644 --- a/tests/Domain/Folders/FolderTest.php +++ b/tests/Domain/Folders/FolderTest.php @@ -1,16 +1,14 @@ create(); $this->assertDatabaseHas('folders', [ - 'id' => $folder->id + 'id' => $folder->id, ]); } @@ -46,16 +44,16 @@ class FolderTest extends TestCase $this ->actingAs($user) ->postJson('/api/create-folder', [ - 'name' => 'New Folder', - 'parent_id' => null, - ]) + 'name' => 'New Folder', + 'parent_id' => null, + ]) ->assertStatus(201) ->assertJsonFragment([ 'name' => 'New Folder', ]); $this->assertDatabaseHas('folders', [ - 'name' => 'New Folder' + 'name' => 'New Folder', ]); } @@ -73,16 +71,16 @@ class FolderTest extends TestCase $this ->actingAs($user) ->patchJson("/api/rename/{$folder->id}", [ - 'name' => 'Renamed Folder', - 'type' => 'folder', - ]) + 'name' => 'Renamed Folder', + 'type' => 'folder', + ]) ->assertStatus(200) ->assertJsonFragment([ 'name' => 'Renamed Folder', ]); $this->assertDatabaseHas('folders', [ - 'name' => 'Renamed Folder' + 'name' => 'Renamed Folder', ]); } @@ -106,19 +104,19 @@ class FolderTest extends TestCase $this ->actingAs($user) ->patchJson("/api/rename/{$folder->id}", [ - 'name' => 'Renamed Folder', - 'type' => 'folder', - 'emoji' => $emoji_fragment - ]) + 'name' => 'Renamed Folder', + 'type' => 'folder', + 'emoji' => $emoji_fragment, + ]) ->assertStatus(200) ->assertJsonFragment([ 'name' => 'Renamed Folder', - 'emoji' => $emoji_fragment + 'emoji' => $emoji_fragment, ]); $this->assertDatabaseHas('folders', [ 'color' => null, - 'emoji' => json_encode($emoji_fragment) + 'emoji' => json_encode($emoji_fragment), ]); } @@ -136,10 +134,10 @@ class FolderTest extends TestCase $this ->actingAs($user) ->patchJson("/api/rename/{$folder->id}", [ - 'name' => 'Folder Name', - 'type' => 'folder', - 'color' => '#AD6FFE' - ]) + 'name' => 'Folder Name', + 'type' => 'folder', + 'color' => '#AD6FFE', + ]) ->assertStatus(200) ->assertJsonFragment([ 'name' => 'Folder Name', @@ -166,11 +164,11 @@ class FolderTest extends TestCase $this ->actingAs($user) - ->postJson("/api/folders/favourites", [ - 'folders' => [ - $folder->id - ], - ])->assertStatus(204); + ->postJson('/api/folders/favourites', [ + 'folders' => [ + $folder->id, + ], + ])->assertStatus(204); $this->assertDatabaseHas('favourite_folder', [ 'user_id' => $user->id, @@ -220,18 +218,19 @@ class FolderTest extends TestCase $this ->actingAs($user) - ->postJson("/api/move", [ - 'to_id' => $root->id, - 'items' => [ - [ - 'type' => 'folder', - 'id' => $children->id, - ] - ], - ])->assertStatus(204); + ->postJson('/api/move', [ + 'to_id' => $root->id, + 'items' => [ + [ + 'type' => 'folder', + 'id' => $children->id, + ], + ], + ])->assertStatus(204); $this->assertEquals( - $root->id, Folder::find($children->id)->parent_id + $root->id, + Folder::find($children->id)->parent_id ); } @@ -254,24 +253,23 @@ class FolderTest extends TestCase $this ->actingAs($user) - ->postJson("/api/remove", [ - 'items' => [ - [ - 'id' => $folder_1->id, - 'type' => 'folder', - 'force_delete' => false, + ->postJson('/api/remove', [ + 'items' => [ + [ + 'id' => $folder_1->id, + 'type' => 'folder', + 'force_delete' => false, + ], + [ + 'id' => $folder_2->id, + 'type' => 'folder', + 'force_delete' => false, + ], ], - [ - 'id' => $folder_2->id, - 'type' => 'folder', - 'force_delete' => false, - ], - ], - ])->assertStatus(204); + ])->assertStatus(204); collect([$folder_1, $folder_2]) ->each(function ($folder) { - $this->assertSoftDeleted('folders', [ 'id' => $folder->id, ]); @@ -298,20 +296,20 @@ class FolderTest extends TestCase $this ->actingAs($user) - ->postJson("/api/remove", [ - 'items' => [ - [ - 'id' => $folder_1->id, - 'type' => 'folder', - 'force_delete' => true, + ->postJson('/api/remove', [ + 'items' => [ + [ + 'id' => $folder_1->id, + 'type' => 'folder', + 'force_delete' => true, + ], + [ + 'id' => $folder_2->id, + 'type' => 'folder', + 'force_delete' => true, + ], ], - [ - 'id' => $folder_2->id, - 'type' => 'folder', - 'force_delete' => true, - ], - ], - ])->assertStatus(204); + ])->assertStatus(204); $this->assertDatabaseMissing('folders', [ 'id' => $folder_1->id, @@ -332,7 +330,7 @@ class FolderTest extends TestCase $folder_root = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); $folder_children = Folder::factory(Folder::class) @@ -355,15 +353,15 @@ class FolderTest extends TestCase $this ->actingAs($user) - ->postJson("/api/remove", [ - 'items' => [ - [ - 'id' => $folder_root->id, - 'type' => 'folder', - 'force_delete' => false, + ->postJson('/api/remove', [ + 'items' => [ + [ + 'id' => $folder_root->id, + 'type' => 'folder', + 'force_delete' => false, + ], ], - ], - ])->assertStatus(204); + ])->assertStatus(204); collect([$file_1, $file_2]) ->each(function ($file) { @@ -392,7 +390,7 @@ class FolderTest extends TestCase $folder_root = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); $folder_children = Folder::factory(Folder::class) @@ -403,7 +401,6 @@ class FolderTest extends TestCase collect([$folder_root, $folder_children]) ->each(function ($folder, $index) { - $file = UploadedFile::fake() ->create("fake-file-$index.pdf", 1200, 'application/pdf'); @@ -419,7 +416,7 @@ class FolderTest extends TestCase collect([0, 1]) ->each(function ($index) use ($folder_root) { - $this->postJson("/api/remove", [ + $this->postJson('/api/remove', [ 'items' => [ [ 'id' => $folder_root->id, @@ -432,7 +429,6 @@ class FolderTest extends TestCase $uploaded_files ->each(function ($file, $index) use ($user) { - $this->assertDatabaseMissing('files', [ 'id' => $file->id, ]); diff --git a/tests/Domain/Homepage/HomepageTest.php b/tests/Domain/Homepage/HomepageTest.php index 5c484a1c..2fc87d08 100644 --- a/tests/Domain/Homepage/HomepageTest.php +++ b/tests/Domain/Homepage/HomepageTest.php @@ -1,17 +1,15 @@ getJson('/api/user/invoices') ->assertStatus(200) ->assertJsonFragment([ - 'customer' => $this->user['stripe_id'] + 'customer' => $this->user['stripe_id'], ]); } -} \ No newline at end of file +} diff --git a/tests/Domain/Languages/AdminLanguageTranslatorTest.php b/tests/Domain/Languages/AdminLanguageTranslatorTest.php index 1eeb0cec..45290d5f 100644 --- a/tests/Domain/Languages/AdminLanguageTranslatorTest.php +++ b/tests/Domain/Languages/AdminLanguageTranslatorTest.php @@ -1,17 +1,12 @@ actingAs($admin) ->postJson('/api/admin/languages', [ - 'name' => 'Slovenčina', - 'locale' => 'sk', - ]) + 'name' => 'Slovenčina', + 'locale' => 'sk', + ]) ->assertStatus(201) ->assertJsonFragment([ 'name' => 'Slovenčina', @@ -64,9 +59,9 @@ class AdminLanguageTranslatorTest $this ->actingAs($admin) ->patchJson("/api/admin/languages/$language->id", [ - 'name' => 'name', - 'value' => 'Slovenčina', - ]) + 'name' => 'name', + 'value' => 'Slovenčina', + ]) ->assertStatus(201) ->assertJsonFragment([ 'name' => 'Slovenčina', @@ -85,7 +80,7 @@ class AdminLanguageTranslatorTest { $language = Language::create([ 'name' => 'Slovenčina', - 'locale' => 'sk' + 'locale' => 'sk', ]); $admin = User::factory(User::class) @@ -141,8 +136,8 @@ class AdminLanguageTranslatorTest ->getJson('/api/admin/languages') ->assertStatus(200) ->assertJsonFragment([ - "locale" => "en", - "actions.close" => "Close", + 'locale' => 'en', + 'actions.close' => 'Close', ]); } @@ -161,9 +156,9 @@ class AdminLanguageTranslatorTest $this ->actingAs($admin) ->patchJson("/api/admin/languages/$language->id/strings", [ - 'name' => 'actions.close', - 'value' => 'Close It, now!', - ]); + 'name' => 'actions.close', + 'value' => 'Close It, now!', + ]); $this->assertDatabaseHas('language_translations', [ 'key' => 'actions.close', @@ -189,8 +184,8 @@ class AdminLanguageTranslatorTest ->getJson("/api/admin/languages/$language->id") ->assertStatus(200) ->assertJsonFragment([ - "actions.close" => "Close", - "locale" => "en", + 'actions.close' => 'Close', + 'locale' => 'en', ]); } -} \ No newline at end of file +} diff --git a/tests/Domain/Languages/TranslationsAccessTest.php b/tests/Domain/Languages/TranslationsAccessTest.php index fe469c5b..acd5c8a6 100644 --- a/tests/Domain/Languages/TranslationsAccessTest.php +++ b/tests/Domain/Languages/TranslationsAccessTest.php @@ -1,13 +1,9 @@ setup->seed_default_language(); - $this->getJson("/translations/en") + $this->getJson('/translations/en') ->assertStatus(200) ->assertJsonFragment([ - "actions.close" => "Close", + 'actions.close' => 'Close', ]); } @@ -57,9 +53,9 @@ class TranslationsAccessTest extends TestCase Language::first() ->languageTranslations() ->forceCreate([ - "key" => "test", - "value" => "Hi, my name is :name :surname", - "lang" => "en", + 'key' => 'test', + 'value' => 'Hi, my name is :name :surname', + 'lang' => 'en', ]); $this->assertEquals( @@ -78,7 +74,6 @@ class TranslationsAccessTest extends TestCase ); } - /** * @test */ diff --git a/tests/Domain/Maintenance/AppUpgradeTest.php b/tests/Domain/Maintenance/AppUpgradeTest.php index e056fec7..daaa006d 100644 --- a/tests/Domain/Maintenance/AppUpgradeTest.php +++ b/tests/Domain/Maintenance/AppUpgradeTest.php @@ -1,12 +1,10 @@ 'license', 'value' => 'Extended', - ] + ], ]); collect(['en', 'sk']) ->map(function ($locale) { - DB::table('languages') ->insert([ 'id' => Str::uuid(), 'name' => 'English', - 'locale' => $locale + 'locale' => $locale, ]); DB::table('language_translations') @@ -45,12 +42,12 @@ class AppUpgradeTest extends TestCase [ 'key' => 'activation.stripe.button', 'value' => 'Set up your Stripe account', - 'lang' => $locale + 'lang' => $locale, ], [ 'key' => 'activation.stripe.description', 'value' => 'This is original test description', - 'lang' => $locale - ] + 'lang' => $locale, + ], ]); }); @@ -61,7 +58,6 @@ class AppUpgradeTest extends TestCase collect(['en', 'sk']) ->map(function ($locale) { - $this->assertDatabaseHas('language_translations', [ 'key' => 'activation.stripe.title', 'value' => 'Your Stripe account is not set', diff --git a/tests/Domain/Pages/PagesTest.php b/tests/Domain/Pages/PagesTest.php index 770e2a3a..eefcf2ff 100644 --- a/tests/Domain/Pages/PagesTest.php +++ b/tests/Domain/Pages/PagesTest.php @@ -1,11 +1,8 @@ 'Terms of Service', ]); } -} \ No newline at end of file +} diff --git a/tests/Domain/Plans/AdminPlansTest.php b/tests/Domain/Plans/AdminPlansTest.php index 38ffb314..8923b384 100644 --- a/tests/Domain/Plans/AdminPlansTest.php +++ b/tests/Domain/Plans/AdminPlansTest.php @@ -1,13 +1,10 @@ actingAs($admin) ->postJson('/api/admin/plans', [ - 'type' => 'plan', - 'attributes' => [ - 'name' => $plan_name, - 'price' => (string)rand(1, 99), - 'description' => 'Some random description', - 'capacity' => rand(1, 999), - ], - ]) + 'type' => 'plan', + 'attributes' => [ + 'name' => $plan_name, + 'price' => (string) rand(1, 99), + 'description' => 'Some random description', + 'capacity' => rand(1, 999), + ], + ]) ->assertStatus(201) ->assertJsonFragment([ - 'name' => $plan_name + 'name' => $plan_name, ]); } @@ -68,19 +65,19 @@ class AdminPlansTest extends TestCase 'type' => 'plan', 'attributes' => [ 'name' => $plan_name, - 'price' => (string)rand(1, 99), + 'price' => (string) rand(1, 99), 'description' => 'Some random description', 'capacity' => rand(1, 999), ], ]) ->assertStatus(201) ->assertJsonFragment([ - 'name' => $plan_name + 'name' => $plan_name, ]); - $this->patchJson("/api/admin/plans/" . strtolower($plan_name), [ + $this->patchJson('/api/admin/plans/' . strtolower($plan_name), [ 'name' => 'description', - 'value' => 'updated description' + 'value' => 'updated description', ])->assertStatus(201); } @@ -95,12 +92,12 @@ class AdminPlansTest extends TestCase $this ->actingAs($user) ->postJson('/api/user/subscription/upgrade', [ - 'billing' => $this->billing, - 'plan' => $this->plan, - 'payment' => [ - 'type' => 'stripe', - ], - ])->assertStatus(204); + 'billing' => $this->billing, + 'plan' => $this->plan, + 'payment' => [ + 'type' => 'stripe', + ], + ])->assertStatus(204); $admin = User::factory(User::class) ->create(['role' => 'admin']); @@ -110,7 +107,7 @@ class AdminPlansTest extends TestCase ->getJson('/api/admin/plans/' . $this->plan['data']['id'] . '/subscribers') ->assertStatus(200) ->assertJsonFragment([ - 'id' => $user->id + 'id' => $user->id, ]); } @@ -124,7 +121,7 @@ class AdminPlansTest extends TestCase $this ->actingAs($admin) - ->getJson("/api/admin/invoices") + ->getJson('/api/admin/invoices') ->assertStatus(200); } @@ -141,7 +138,7 @@ class AdminPlansTest extends TestCase ->getJson('/api/user/invoices') ->assertStatus(200) ->assertJsonFragment([ - 'customer' => $this->user['stripe_id'] + 'customer' => $this->user['stripe_id'], ]); $admin = User::factory(User::class) @@ -172,7 +169,7 @@ class AdminPlansTest extends TestCase ->getJson("/api/admin/users/$user->id/invoices") ->assertStatus(200) ->assertJsonFragment([ - 'customer' => $this->user['stripe_id'] + 'customer' => $this->user['stripe_id'], ]); } @@ -189,4 +186,4 @@ class AdminPlansTest extends TestCase ->getJson('/api/admin/plans') ->assertStatus(200); } -} \ No newline at end of file +} diff --git a/tests/Domain/Plans/PlansTest.php b/tests/Domain/Plans/PlansTest.php index f695111f..e008e65b 100644 --- a/tests/Domain/Plans/PlansTest.php +++ b/tests/Domain/Plans/PlansTest.php @@ -1,13 +1,10 @@ 'plan', 'attributes' => [ 'name' => $plan_name, - 'price' => (string)rand(1, 99), + 'price' => (string) rand(1, 99), 'description' => 'Some random description', 'capacity' => rand(1, 999), ], ]) ->assertStatus(201) ->assertJsonFragment([ - 'name' => $plan_name + 'name' => $plan_name, ]); - $this->deleteJson("/api/admin/plans/" . strtolower($plan_name)) + $this->deleteJson('/api/admin/plans/' . strtolower($plan_name)) ->assertStatus(204); } -} \ No newline at end of file +} diff --git a/tests/Domain/Plans/SetupWizardPlansTest.php b/tests/Domain/Plans/SetupWizardPlansTest.php index 44db8d3c..6f6ca427 100644 --- a/tests/Domain/Plans/SetupWizardPlansTest.php +++ b/tests/Domain/Plans/SetupWizardPlansTest.php @@ -1,11 +1,8 @@ 'plan', 'attributes' => [ 'name' => 'test-plan-' . Str::random(), - 'price' => (string)rand(1, 99), + 'price' => (string) rand(1, 99), 'description' => 'Some random description', 'capacity' => rand(1, 999), ], @@ -29,12 +26,12 @@ class SetupWizardPlansTest extends TestCase 'type' => 'plan', 'attributes' => [ 'name' => 'test-plan-' . Str::random(), - 'price' => (string)rand(1, 99), + 'price' => (string) rand(1, 99), 'description' => 'Some random description', 'capacity' => rand(1, 999), ], ], - ] + ], ])->assertStatus(204); } -} \ No newline at end of file +} diff --git a/tests/Domain/Settings/SettingsTest.php b/tests/Domain/Settings/SettingsTest.php index dbd625fa..3d404b2a 100644 --- a/tests/Domain/Settings/SettingsTest.php +++ b/tests/Domain/Settings/SettingsTest.php @@ -1,14 +1,11 @@ getJson('/api/content?column=get_started_title|pricing_description') ->assertStatus(200) ->assertExactJson([ - "get_started_title" => "Hello World!", - "pricing_description" => "Give me a money!", + 'get_started_title' => 'Hello World!', + 'pricing_description' => 'Give me a money!', ]); } @@ -82,12 +79,12 @@ class SettingsTest extends TestCase $this ->actingAs($admin) ->patchJson('/api/admin/settings', [ - 'name' => 'header_title', - 'value' => 'New Header Title' - ])->assertStatus(204); + 'name' => 'header_title', + 'value' => 'New Header Title', + ])->assertStatus(204); $this->assertDatabaseHas('settings', [ - 'value' => 'New Header Title' + 'value' => 'New Header Title', ]); } @@ -112,12 +109,12 @@ class SettingsTest extends TestCase $this ->actingAs($admin) ->patchJson('/api/admin/settings', [ - 'name' => 'app_logo', - 'app_logo' => $logo - ])->assertStatus(204); + 'name' => 'app_logo', + 'app_logo' => $logo, + ])->assertStatus(204); $this->assertDatabaseMissing('settings', [ - 'app_logo' => null + 'app_logo' => null, ]); Storage::assertExists( @@ -150,11 +147,11 @@ class SettingsTest extends TestCase $this ->actingAs($admin) ->postJson('/api/admin/settings/stripe', [ - 'currency' => 'EUR', - 'key' => '123456789', - 'secret' => '123456789', - 'webhookSecret' => '123456789', - ])->assertStatus(204); + 'currency' => 'EUR', + 'key' => '123456789', + 'secret' => '123456789', + 'webhookSecret' => '123456789', + ])->assertStatus(204); $this->assertDatabaseHas('settings', [ 'name' => 'stripe_currency', @@ -183,12 +180,12 @@ class SettingsTest extends TestCase $this ->actingAs($admin) ->postJson('/api/admin/settings/email', [ - 'driver' => 'smtp', - 'host' => 'smtp.email.com', - 'port' => 25, - 'username' => 'john@doe.com', - 'password' => 'secret', - 'encryption' => 'tls', - ])->assertStatus(204); + 'driver' => 'smtp', + 'host' => 'smtp.email.com', + 'port' => 25, + 'username' => 'john@doe.com', + 'password' => 'secret', + 'encryption' => 'tls', + ])->assertStatus(204); } -} \ No newline at end of file +} diff --git a/tests/Domain/SetupWizard/SetupServiceTest.php b/tests/Domain/SetupWizard/SetupServiceTest.php index 5facdbe4..1f4e4b0a 100644 --- a/tests/Domain/SetupWizard/SetupServiceTest.php +++ b/tests/Domain/SetupWizard/SetupServiceTest.php @@ -1,12 +1,11 @@ 'English', - 'locale' => 'en' + 'locale' => 'en', ]); $this->assertDatabaseHas('languages', [ diff --git a/tests/Domain/SetupWizard/SetupWizardTest.php b/tests/Domain/SetupWizard/SetupWizardTest.php index b9f3b330..c262d07c 100644 --- a/tests/Domain/SetupWizard/SetupWizardTest.php +++ b/tests/Domain/SetupWizard/SetupWizardTest.php @@ -1,13 +1,12 @@ postJson('/api/setup/purchase-code', [ - 'purchaseCode' => '8624194e-3156-4cd0-944e-3440fcecdacb' + 'purchaseCode' => '8624194e-3156-4cd0-944e-3440fcecdacb', ])->assertStatus(204); } @@ -43,7 +42,7 @@ class SetupWizardTest extends TestCase ]); $this->postJson('/api/setup/purchase-code', [ - 'purchaseCode' => '8624194e-3156-4cd0-944e-3440fcecdacb' + 'purchaseCode' => '8624194e-3156-4cd0-944e-3440fcecdacb', ])->assertStatus(400); } @@ -128,7 +127,6 @@ class SetupWizardTest extends TestCase */ public function it_store_stripe_plans() { - } /** @@ -196,7 +194,6 @@ class SetupWizardTest extends TestCase collect(['app_logo', 'app_logo_horizontal', 'app_favicon']) ->each(function ($file) { - $path = get_setting($file); $this->assertNotNull($path); diff --git a/tests/Domain/Sharing/UserShareTest.php b/tests/Domain/Sharing/UserShareTest.php index ca9fe528..f639fef5 100644 --- a/tests/Domain/Sharing/UserShareTest.php +++ b/tests/Domain/Sharing/UserShareTest.php @@ -1,14 +1,13 @@ actingAs($user) ->postJson("/api/share/$file->id", [ - 'isPassword' => false, - 'permission' => 'editor', - 'type' => 'file', - ])->assertStatus(201)->assertJsonFragment([ - 'item_id' => $file->id, - 'type' => 'file', - ]); + 'isPassword' => false, + 'permission' => 'editor', + 'type' => 'file', + ])->assertStatus(201)->assertJsonFragment([ + 'item_id' => $file->id, + 'type' => 'file', + ]); $this->assertDatabaseHas('shares', [ 'user_id' => $user->id, @@ -58,13 +57,13 @@ class UserShareTest extends TestCase $this ->actingAs($user) ->postJson("/api/share/$folder->id", [ - 'isPassword' => false, - 'permission' => 'editor', - 'type' => 'folder', - ])->assertStatus(201)->assertJsonFragment([ - 'item_id' => $folder->id, - 'type' => 'folder', - ]); + 'isPassword' => false, + 'permission' => 'editor', + 'type' => 'folder', + ])->assertStatus(201)->assertJsonFragment([ + 'item_id' => $folder->id, + 'type' => 'folder', + ]); $this->assertDatabaseHas('shares', [ 'user_id' => $user->id, @@ -90,11 +89,11 @@ class UserShareTest extends TestCase $this ->actingAs($user) ->postJson("/api/share/$folder->id", [ - 'isPassword' => true, - 'password' => 'secret', - 'permission' => 'editor', - 'type' => 'folder', - ]) + 'isPassword' => true, + 'password' => 'secret', + 'permission' => 'editor', + 'type' => 'folder', + ]) ->assertStatus(201) ->assertJsonFragment([ 'item_id' => $folder->id, @@ -128,11 +127,11 @@ class UserShareTest extends TestCase $this ->actingAs($user) ->postJson("/api/share/$folder->id", [ - 'isPassword' => false, - 'permission' => 'editor', - 'type' => 'folder', - 'expiration' => 12, - ]) + 'isPassword' => false, + 'permission' => 'editor', + 'type' => 'folder', + 'expiration' => 12, + ]) ->assertStatus(201) ->assertJsonFragment([ 'item_id' => $folder->id, @@ -154,14 +153,14 @@ class UserShareTest extends TestCase $this ->actingAs($user) ->postJson("/api/share/$folder->id", [ - 'isPassword' => false, - 'permission' => 'editor', - 'type' => 'folder', - 'emails' => [ - 'john@doe.com', - 'jane@doe.com', - ], - ])->assertStatus(201); + 'isPassword' => false, + 'permission' => 'editor', + 'type' => 'folder', + 'emails' => [ + 'john@doe.com', + 'jane@doe.com', + ], + ])->assertStatus(201); Notification::assertTimesSent(2, SharedSendViaEmail::class); } @@ -216,14 +215,14 @@ class UserShareTest extends TestCase 'type' => 'folder', ])->assertStatus(201); - $this->deleteJson("/api/share/revoke", [ + $this->deleteJson('/api/share/revoke', [ 'tokens' => [ - $folder->shared->token + $folder->shared->token, ], ])->assertStatus(204); $this->assertDatabaseMissing('shares', [ - 'item_id' => $folder->id + 'item_id' => $folder->id, ]); } } diff --git a/tests/Domain/Sharing/VisitorAccessToItemsTest.php b/tests/Domain/Sharing/VisitorAccessToItemsTest.php index 552fd023..559760a3 100644 --- a/tests/Domain/Sharing/VisitorAccessToItemsTest.php +++ b/tests/Domain/Sharing/VisitorAccessToItemsTest.php @@ -1,16 +1,15 @@ each(function ($is_protected) { - $user = User::factory(User::class) ->create(); @@ -55,7 +53,6 @@ class VisitorAccessToItemsTest extends TestCase ]); if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -66,8 +63,7 @@ class VisitorAccessToItemsTest extends TestCase ->assertStatus(200); } - if (!$is_protected) { - + if (! $is_protected) { // Get shared file $this->get("/file/$document->name/$share->token") ->assertStatus(200); @@ -102,7 +98,6 @@ class VisitorAccessToItemsTest extends TestCase { collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); @@ -130,12 +125,11 @@ class VisitorAccessToItemsTest extends TestCase ]); if ($is_protected) { - $cookie = [ 'share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, - ]) + ]), ]; $this->withCookies($cookie) @@ -143,7 +137,7 @@ class VisitorAccessToItemsTest extends TestCase ->assertStatus(200); } - if (!$is_protected) { + if (! $is_protected) { $this->get("/share/$share->token") ->assertStatus(200); } @@ -157,7 +151,6 @@ class VisitorAccessToItemsTest extends TestCase { collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); @@ -183,12 +176,11 @@ class VisitorAccessToItemsTest extends TestCase // Get thumbnail file if ($is_protected) { - $cookie = [ 'share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, - ]) + ]), ]; $this->withCookies($cookie) @@ -196,7 +188,7 @@ class VisitorAccessToItemsTest extends TestCase ->assertStatus(200); } - if (!$is_protected) { + if (! $is_protected) { $this->get("/thumbnail/$thumbnail->name/$share->token") ->assertStatus(200); } @@ -215,7 +207,6 @@ class VisitorAccessToItemsTest extends TestCase { collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); @@ -235,15 +226,14 @@ class VisitorAccessToItemsTest extends TestCase $file = UploadedFile::fake() ->create($zip->basename, 1000, 'application/zip'); - Storage::putFileAs("zip", $file, $file->name); + Storage::putFileAs('zip', $file, $file->name); if ($is_protected) { - $cookie = [ 'share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, - ]) + ]), ]; $this->withCookies($cookie) @@ -251,7 +241,7 @@ class VisitorAccessToItemsTest extends TestCase ->assertStatus(200); } - if (!$is_protected) { + if (! $is_protected) { $this->get("/zip/$zip->id/$share->token") ->assertStatus(200); } diff --git a/tests/Domain/Sharing/VisitorBrowseTest.php b/tests/Domain/Sharing/VisitorBrowseTest.php index ac720059..4811fe9d 100644 --- a/tests/Domain/Sharing/VisitorBrowseTest.php +++ b/tests/Domain/Sharing/VisitorBrowseTest.php @@ -1,13 +1,12 @@ $share->created_at->toJson(), 'updated_at' => $share->updated_at->toJson(), ], - ] + ], ]); } @@ -69,7 +68,7 @@ class VisitorBrowseTest extends TestCase */ public function it_try_to_get_deleted_share_record() { - $this->get("/api/browse/share/19ZMPNiass4ZqWwQ") + $this->get('/api/browse/share/19ZMPNiass4ZqWwQ') ->assertNotFound(); } @@ -100,7 +99,7 @@ class VisitorBrowseTest extends TestCase ]); $this->postJson("/api/browse/authenticate/$share->token", [ - 'password' => 'secret' + 'password' => 'secret', ]) ->assertStatus(200) ->assertCookie('share_session', json_encode([ @@ -127,7 +126,7 @@ class VisitorBrowseTest extends TestCase ]); $this->postJson("/api/browse/authenticate/$share->token", [ - 'password' => 'bad-password' + 'password' => 'bad-password', ]) ->assertStatus(401) ->assertCookieMissing('share_session'); @@ -141,7 +140,6 @@ class VisitorBrowseTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); @@ -164,7 +162,7 @@ class VisitorBrowseTest extends TestCase ->create([ 'parent_id' => $root->id, 'name' => 'Documents', - "author" => "user", + 'author' => 'user', 'user_id' => $user->id, ]); @@ -173,50 +171,49 @@ class VisitorBrowseTest extends TestCase 'folder_id' => $root->id, 'name' => 'Document', 'basename' => 'document.pdf', - "mimetype" => "application/pdf", - "author" => "user", - "type" => "file", + 'mimetype' => 'application/pdf', + 'author' => 'user', + 'type' => 'file', 'user_id' => $user->id, ]); $json = [ [ - "id" => $folder->id, - "user_id" => $user->id, - "parent_id" => $root->id, - "name" => "Documents", - "color" => null, - "emoji" => null, - "author" => "user", - "deleted_at" => null, - "created_at" => $folder->created_at, - "updated_at" => $folder->updated_at->toJson(), - "items" => 0, - "trashed_items" => 0, - "type" => "folder", + 'id' => $folder->id, + 'user_id' => $user->id, + 'parent_id' => $root->id, + 'name' => 'Documents', + 'color' => null, + 'emoji' => null, + 'author' => 'user', + 'deleted_at' => null, + 'created_at' => $folder->created_at, + 'updated_at' => $folder->updated_at->toJson(), + 'items' => 0, + 'trashed_items' => 0, + 'type' => 'folder', ], [ - "id" => $file->id, - "user_id" => $user->id, - "folder_id" => $root->id, - "thumbnail" => null, - "name" => "Document", - "basename" => "document.pdf", - "mimetype" => "application/pdf", - "filesize" => $file->filesize, - "type" => "file", - "metadata" => null, - "author" => "user", - "deleted_at" => null, - "created_at" => $file->created_at, - "updated_at" => $file->updated_at->toJson(), - "file_url" => "http://localhost/file/document.pdf/$share->token", - ] + 'id' => $file->id, + 'user_id' => $user->id, + 'folder_id' => $root->id, + 'thumbnail' => null, + 'name' => 'Document', + 'basename' => 'document.pdf', + 'mimetype' => 'application/pdf', + 'filesize' => $file->filesize, + 'type' => 'file', + 'metadata' => null, + 'author' => 'user', + 'deleted_at' => null, + 'created_at' => $file->created_at, + 'updated_at' => $file->updated_at->toJson(), + 'file_url' => "http://localhost/file/document.pdf/$share->token", + ], ]; // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -230,7 +227,7 @@ class VisitorBrowseTest extends TestCase } // Check public shared item - if (!$is_protected) { + if (! $is_protected) { $this->getJson("/api/browse/folders/$root->id/$share->token") ->assertStatus(200) ->assertExactJson($json); @@ -246,7 +243,6 @@ class VisitorBrowseTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); @@ -294,44 +290,43 @@ class VisitorBrowseTest extends TestCase $tree = [ [ 'id' => $share->item_id, - "name" => "Home", - "location" => "public", - "folders" => [ + 'name' => 'Home', + 'location' => 'public', + 'folders' => [ [ - "id" => $folder_level_2->id, - "parent_id" => $folder_level_1->id, - "name" => "level 2", - "items" => 1, - "trashed_items" => 1, - "type" => "folder", - "folders" => [ + 'id' => $folder_level_2->id, + 'parent_id' => $folder_level_1->id, + 'name' => 'level 2', + 'items' => 1, + 'trashed_items' => 1, + 'type' => 'folder', + 'folders' => [ [ - "id" => $folder_level_3->id, - "parent_id" => $folder_level_2->id, - "name" => "level 3", - "items" => 0, - "trashed_items" => 0, - "type" => "folder", - "folders" => [], + 'id' => $folder_level_3->id, + 'parent_id' => $folder_level_2->id, + 'name' => 'level 3', + 'items' => 0, + 'trashed_items' => 0, + 'type' => 'folder', + 'folders' => [], ], ], ], [ - "id" => $folder_level_2_sibling->id, - "parent_id" => $folder_level_1->id, - "name" => "level 2 Sibling", - "items" => 0, - "trashed_items" => 0, - "type" => "folder", - "folders" => [] - ] - ] - ] + 'id' => $folder_level_2_sibling->id, + 'parent_id' => $folder_level_1->id, + 'name' => 'level 2 Sibling', + 'items' => 0, + 'trashed_items' => 0, + 'type' => 'folder', + 'folders' => [], + ], + ], + ], ]; // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -345,8 +340,7 @@ class VisitorBrowseTest extends TestCase } // Check public shared item - if (!$is_protected) { - + if (! $is_protected) { $this->getJson("/api/browse/navigation/$share->token") ->assertStatus(200) ->assertExactJson($tree); @@ -362,7 +356,6 @@ class VisitorBrowseTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $folder = Folder::factory(Folder::class) ->create(); @@ -385,7 +378,6 @@ class VisitorBrowseTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -395,17 +387,16 @@ class VisitorBrowseTest extends TestCase ->get("/api/browse/search/$share->token?query=doc") ->assertStatus(200) ->assertJsonFragment([ - 'id' => $file->id + 'id' => $file->id, ]); } // Check public shared item - if (!$is_protected) { - + if (! $is_protected) { $this->getJson("/api/browse/search/$share->token?query=doc") ->assertStatus(200) ->assertJsonFragment([ - 'id' => $file->id + 'id' => $file->id, ]); } }); @@ -419,7 +410,6 @@ class VisitorBrowseTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $folder = Folder::factory(Folder::class) ->create(); @@ -441,7 +431,6 @@ class VisitorBrowseTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -454,8 +443,7 @@ class VisitorBrowseTest extends TestCase } // Check public shared item - if (!$is_protected) { - + if (! $is_protected) { $this->getJson("/api/browse/search/$share->token?query=doc") ->assertStatus(200) ->assertJsonFragment([]); @@ -471,7 +459,6 @@ class VisitorBrowseTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $file = File::factory(File::class) ->create([ 'name' => 'Document', @@ -489,7 +476,6 @@ class VisitorBrowseTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -499,16 +485,16 @@ class VisitorBrowseTest extends TestCase ->get("/api/browse/file/$share->token") ->assertStatus(200) ->assertJsonFragment([ - 'name' => 'Document' + 'name' => 'Document', ]); } // Check public shared item - if (!$is_protected) { + if (! $is_protected) { $this->getJson("/api/browse/file/$share->token") ->assertStatus(200) ->assertJsonFragment([ - 'name' => 'Document' + 'name' => 'Document', ]); } }); diff --git a/tests/Domain/Sharing/VisitorManipulatingTest.php b/tests/Domain/Sharing/VisitorManipulatingTest.php index d8ed7132..866f9951 100644 --- a/tests/Domain/Sharing/VisitorManipulatingTest.php +++ b/tests/Domain/Sharing/VisitorManipulatingTest.php @@ -1,15 +1,14 @@ each(function ($is_protected) { - $user = User::factory(User::class) ->create(); $folder = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); $file = File::factory(File::class) ->create([ - 'folder_id' => $folder->id + 'folder_id' => $folder->id, ]); $share = Share::factory(Share::class) @@ -52,7 +50,6 @@ class VisitorManipulatingTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -71,7 +68,7 @@ class VisitorManipulatingTest extends TestCase } // Check public shared item - if (!$is_protected) { + if (! $is_protected) { $this->patchJson("/api/editor/rename/{$file->id}/$share->token", [ 'name' => 'Renamed Item', 'type' => 'file', @@ -97,19 +94,18 @@ class VisitorManipulatingTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); $root = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); $children = Folder::factory(Folder::class) ->create([ 'user_id' => $user->id, - 'parent_id' => $root->id + 'parent_id' => $root->id, ]); $share = Share::factory(Share::class) @@ -123,7 +119,6 @@ class VisitorManipulatingTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -142,8 +137,7 @@ class VisitorManipulatingTest extends TestCase } // Check public shared item - if (!$is_protected) { - + if (! $is_protected) { $this->patchJson("/api/editor/rename/{$children->id}/$share->token", [ 'name' => 'Renamed Folder', 'type' => 'folder', @@ -156,7 +150,7 @@ class VisitorManipulatingTest extends TestCase $this->assertDatabaseHas('folders', [ 'name' => 'Renamed Folder', - 'id' => $children->id + 'id' => $children->id, ]); }); } @@ -169,7 +163,6 @@ class VisitorManipulatingTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); @@ -189,7 +182,6 @@ class VisitorManipulatingTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -208,8 +200,7 @@ class VisitorManipulatingTest extends TestCase } // Check public shared item - if (!$is_protected) { - + if (! $is_protected) { $this->postJson("/api/editor/create-folder/$share->token", [ 'name' => 'Awesome New Folder', 'parent_id' => $folder->id, @@ -236,7 +227,6 @@ class VisitorManipulatingTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); @@ -257,7 +247,7 @@ class VisitorManipulatingTest extends TestCase $files = File::factory(File::class) ->count(2) ->create([ - 'folder_id' => $folder->id + 'folder_id' => $folder->id, ]); $payload = [ @@ -277,7 +267,6 @@ class VisitorManipulatingTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -290,8 +279,7 @@ class VisitorManipulatingTest extends TestCase } // Check public shared item - if (!$is_protected) { - + if (! $is_protected) { $this->postJson("/api/editor/remove/$share->token", $payload) ->assertStatus(204); } @@ -313,7 +301,6 @@ class VisitorManipulatingTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); @@ -337,7 +324,6 @@ class VisitorManipulatingTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -354,8 +340,7 @@ class VisitorManipulatingTest extends TestCase } // Check public shared item - if (!$is_protected) { - + if (! $is_protected) { $this->postJson("/api/editor/upload/$share->token", [ 'filename' => $file->name, 'file' => $file, @@ -387,13 +372,12 @@ class VisitorManipulatingTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); $root = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); $children = Folder::factory(Folder::class) @@ -405,7 +389,7 @@ class VisitorManipulatingTest extends TestCase $file = File::factory(File::class) ->create([ 'user_id' => $user->id, - 'folder_id' => $root->id + 'folder_id' => $root->id, ]); $share = Share::factory(Share::class) @@ -423,13 +407,12 @@ class VisitorManipulatingTest extends TestCase [ 'type' => 'file', 'id' => $file->id, - ] + ], ], ]; // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -442,8 +425,7 @@ class VisitorManipulatingTest extends TestCase } // Check public shared item - if (!$is_protected) { - + if (! $is_protected) { $this->postJson("/api/editor/move/$share->token", $payload) ->assertStatus(204); } @@ -463,13 +445,12 @@ class VisitorManipulatingTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); $root = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); $brother = Folder::factory(Folder::class) @@ -499,13 +480,12 @@ class VisitorManipulatingTest extends TestCase [ 'type' => 'folder', 'id' => $sister->id, - ] + ], ], ]; // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -518,8 +498,7 @@ class VisitorManipulatingTest extends TestCase } // Check public shared item - if (!$is_protected) { - + if (! $is_protected) { $this->postJson("/api/editor/move/$share->token", $payload) ->assertStatus(204); } diff --git a/tests/Domain/Subscriptions/AdminSubscriptionTest.php b/tests/Domain/Subscriptions/AdminSubscriptionTest.php index f4865b1d..ac7a3f5c 100644 --- a/tests/Domain/Subscriptions/AdminSubscriptionTest.php +++ b/tests/Domain/Subscriptions/AdminSubscriptionTest.php @@ -1,11 +1,8 @@ actingAs($user) ->postJson('/api/user/subscription/upgrade', [ - 'billing' => $this->billing, - 'plan' => $this->plan, - 'payment' => [ - 'type' => 'stripe', - ], - ])->assertStatus(204); + 'billing' => $this->billing, + 'plan' => $this->plan, + 'payment' => [ + 'type' => 'stripe', + ], + ])->assertStatus(204); $admin = User::factory(User::class) ->create(['role' => 'admin']); @@ -35,22 +32,22 @@ class AdminSubscriptionTest extends TestCase ->getJson("/api/admin/users/$user->id/subscription") ->assertStatus(200) ->assertExactJson([ - "data" => [ - "id" => "business-pack", - "type" => "subscription", - "attributes" => [ - "incomplete" => false, - "active" => true, - "canceled" => false, - "name" => "Business Packs", - "capacity" => 1000, - "capacity_formatted" => "1TB", - "slug" => "business-pack", - "canceled_at" => format_date(now(), '%d. %B. %Y'), - "created_at" => format_date(now(), '%d. %B. %Y'), - "ends_at" => format_date(now()->addMonth(), '%d. %B. %Y'), - ] - ] + 'data' => [ + 'id' => 'business-pack', + 'type' => 'subscription', + 'attributes' => [ + 'incomplete' => false, + 'active' => true, + 'canceled' => false, + 'name' => 'Business Packs', + 'capacity' => 1000, + 'capacity_formatted' => '1TB', + 'slug' => 'business-pack', + 'canceled_at' => format_date(now(), '%d. %B. %Y'), + 'created_at' => format_date(now(), '%d. %B. %Y'), + 'ends_at' => format_date(now()->addMonth(), '%d. %B. %Y'), + ], + ], ]); } -} \ No newline at end of file +} diff --git a/tests/Domain/Subscriptions/SubscriptionTest.php b/tests/Domain/Subscriptions/SubscriptionTest.php index a60e65ed..ac2713af 100644 --- a/tests/Domain/Subscriptions/SubscriptionTest.php +++ b/tests/Domain/Subscriptions/SubscriptionTest.php @@ -1,11 +1,9 @@ plan = [ 'data' => [ - 'id' => "business-pack", - 'type' => "plans", + 'id' => 'business-pack', + 'type' => 'plans', 'attributes' => [ - 'name' => "Business Packs", - 'description' => "When your business start grow up.", - 'price' => "$44.99", + 'name' => 'Business Packs', + 'description' => 'When your business start grow up.', + 'price' => '$44.99', 'capacity' => 1000, - 'capacity_formatted' => "1TB", - 'currency' => "USD", + 'capacity_formatted' => '1TB', + 'currency' => 'USD', 'tax_rates' => [], ], ], @@ -69,7 +67,7 @@ class SubscriptionTest extends TestCase ->getJson('/api/user/subscription/setup-intent') ->assertStatus(201) ->assertJsonFragment([ - "object" => "setup_intent" + 'object' => 'setup_intent', ]); $this->assertDatabaseMissing('users', [ @@ -88,19 +86,19 @@ class SubscriptionTest extends TestCase $this ->actingAs($user) ->postJson('/api/user/subscription/upgrade', [ - 'billing' => $this->billing, - 'plan' => $this->plan, - 'payment' => [ - 'type' => 'stripe', - ], - ])->assertStatus(204); + 'billing' => $this->billing, + 'plan' => $this->plan, + 'payment' => [ + 'type' => 'stripe', + ], + ])->assertStatus(204); $this->assertDatabaseHas('subscriptions', [ - 'stripe_status' => 'active' + 'stripe_status' => 'active', ]); $this->assertDatabaseHas('user_settings', [ - 'storage_capacity' => 1000 + 'storage_capacity' => 1000, ]); } @@ -126,7 +124,7 @@ class SubscriptionTest extends TestCase ->assertStatus(204); $this->assertDatabaseMissing('subscriptions', [ - 'ends_at' => null + 'ends_at' => null, ]); } @@ -155,7 +153,7 @@ class SubscriptionTest extends TestCase ->assertStatus(204); $this->assertDatabaseHas('subscriptions', [ - 'ends_at' => null + 'ends_at' => null, ]); } @@ -180,22 +178,22 @@ class SubscriptionTest extends TestCase $this->getJson('/api/user/subscription') ->assertStatus(200) ->assertExactJson([ - "data" => [ - "id" => "business-pack", - "type" => "subscription", - "attributes" => [ - "incomplete" => false, - "active" => true, - "canceled" => false, - "name" => "Business Packs", - "capacity" => 1000, - "capacity_formatted" => "1TB", - "slug" => "business-pack", - "canceled_at" => format_date(now(), '%d. %B. %Y'), - "created_at" => format_date(now(), '%d. %B. %Y'), - "ends_at" => format_date(now()->addMonth(), '%d. %B. %Y'), - ] - ] + 'data' => [ + 'id' => 'business-pack', + 'type' => 'subscription', + 'attributes' => [ + 'incomplete' => false, + 'active' => true, + 'canceled' => false, + 'name' => 'Business Packs', + 'capacity' => 1000, + 'capacity_formatted' => '1TB', + 'slug' => 'business-pack', + 'canceled_at' => format_date(now(), '%d. %B. %Y'), + 'created_at' => format_date(now(), '%d. %B. %Y'), + 'ends_at' => format_date(now()->addMonth(), '%d. %B. %Y'), + ], + ], ]); } } diff --git a/tests/Domain/Trash/TrashTest.php b/tests/Domain/Trash/TrashTest.php index 0cf77c8c..ecef26ca 100644 --- a/tests/Domain/Trash/TrashTest.php +++ b/tests/Domain/Trash/TrashTest.php @@ -1,15 +1,13 @@ actingAs($user) - ->postJson("/api/trash/restore", [ - 'items' => [ - [ - 'id' => $file->id, - 'type' => 'file', + ->postJson('/api/trash/restore', [ + 'items' => [ + [ + 'id' => $file->id, + 'type' => 'file', + ], + [ + 'id' => $folder->id, + 'type' => 'folder', + ], ], - [ - 'id' => $folder->id, - 'type' => 'folder', - ], - ], - ])->assertStatus(204); + ])->assertStatus(204); $this->assertDatabaseHas('files', [ - 'deleted_at' => null + 'deleted_at' => null, ]); $this->assertDatabaseHas('folders', [ - 'deleted_at' => null + 'deleted_at' => null, ]); } @@ -68,7 +66,7 @@ class TrashTest extends TestCase $folder = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); $image = UploadedFile::fake() @@ -83,7 +81,7 @@ class TrashTest extends TestCase $file = File::first(); - $this->postJson("/api/remove", [ + $this->postJson('/api/remove', [ 'items' => [ [ 'id' => $file->id, @@ -98,15 +96,15 @@ class TrashTest extends TestCase ], ])->assertStatus(204); - $this->deleteJson("/api/trash/dump") + $this->deleteJson('/api/trash/dump') ->assertStatus(204); $this->assertDatabaseMissing('files', [ - 'id' => $file->id + 'id' => $file->id, ]); $this->assertDatabaseMissing('folders', [ - 'id' => $folder->id + 'id' => $folder->id, ]); $disk = Storage::disk('local'); diff --git a/tests/Domain/Zipping/SharedZippingTest.php b/tests/Domain/Zipping/SharedZippingTest.php index a2d3753c..5187e0d6 100644 --- a/tests/Domain/Zipping/SharedZippingTest.php +++ b/tests/Domain/Zipping/SharedZippingTest.php @@ -1,18 +1,14 @@ each(function ($is_protected) { - $user = User::factory(User::class) ->create(); $folder = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); collect([0, 1]) ->each(function ($index) use ($folder, $user) { - $file = UploadedFile::fake() ->create(Str::random() . "-fake-file-$index.pdf", 1000, 'application/pdf'); @@ -61,7 +55,6 @@ class SharedZippingTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -70,14 +63,14 @@ class SharedZippingTest extends TestCase $this ->withUnencryptedCookies($cookie) ->post("/api/zip/files/$share->token", [ - 'items' => File::all()->pluck('id') + 'items' => File::all()->pluck('id'), ])->assertStatus(201); } // Check public shared item - if (!$is_protected) { + if (! $is_protected) { $this->postJson("/api/zip/files/$share->token", [ - 'items' => File::all()->pluck('id') + 'items' => File::all()->pluck('id'), ])->assertStatus(201); } @@ -86,7 +79,7 @@ class SharedZippingTest extends TestCase 'shared_token' => $share->token, ]); - Storage::assertExists("zip/" . Zip::first()->basename); + Storage::assertExists('zip/' . Zip::first()->basename); }); } @@ -98,13 +91,12 @@ class SharedZippingTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); $folder = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); File::factory(File::class) @@ -128,7 +120,6 @@ class SharedZippingTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -137,14 +128,14 @@ class SharedZippingTest extends TestCase $this ->withUnencryptedCookies($cookie) ->post("/api/zip/files/$share->token", [ - 'items' => File::all()->pluck('id') + 'items' => File::all()->pluck('id'), ])->assertStatus(403); } // Check public shared item - if (!$is_protected) { + if (! $is_protected) { $this->postJson("/api/zip/files/$share->token", [ - 'items' => File::all()->pluck('id') + 'items' => File::all()->pluck('id'), ])->assertStatus(403); } }); @@ -158,24 +149,22 @@ class SharedZippingTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); $root = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); $children = Folder::factory(Folder::class) ->create([ 'user_id' => $user->id, - 'parent_id' => $root->id + 'parent_id' => $root->id, ]); collect([0, 1]) ->each(function ($index) use ($children, $user) { - $file = UploadedFile::fake() ->create(Str::random() . "-fake-file-$index.pdf", 1000, 'application/pdf'); @@ -201,7 +190,6 @@ class SharedZippingTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -214,7 +202,7 @@ class SharedZippingTest extends TestCase } // Check public shared item - if (!$is_protected) { + if (! $is_protected) { $this->getJson("/api/zip/folder/$children->id/$share->token") ->assertStatus(201); } @@ -239,13 +227,12 @@ class SharedZippingTest extends TestCase // check private or public share record collect([true, false]) ->each(function ($is_protected) { - $user = User::factory(User::class) ->create(); $folder = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); $share = Share::factory(Share::class) @@ -257,7 +244,6 @@ class SharedZippingTest extends TestCase // Check shared item protected by password if ($is_protected) { - $cookie = ['share_session' => json_encode([ 'token' => $share->token, 'authenticated' => true, @@ -270,10 +256,10 @@ class SharedZippingTest extends TestCase } // Check public shared item - if (!$is_protected) { + if (! $is_protected) { $this->getJson("/api/zip/folder/$folder->id/$share->token") ->assertStatus(403); } }); } -} \ No newline at end of file +} diff --git a/tests/Domain/Zipping/UserZippingTest.php b/tests/Domain/Zipping/UserZippingTest.php index 36e63d5a..0fb226c7 100644 --- a/tests/Domain/Zipping/UserZippingTest.php +++ b/tests/Domain/Zipping/UserZippingTest.php @@ -1,18 +1,14 @@ each(function ($index) { - $file = UploadedFile::fake() ->create("fake-file-$index.pdf", 1200, 'application/pdf'); @@ -42,12 +37,12 @@ class UserZippingTest extends TestCase $file_ids = File::all()->pluck('id'); - $this->postJson("/api/zip/files", [ + $this->postJson('/api/zip/files', [ 'items' => $file_ids, ])->assertStatus(201); $this->assertDatabaseHas('zips', [ - 'user_id' => $user->id + 'user_id' => $user->id, ]); Storage::disk('local') @@ -68,12 +63,11 @@ class UserZippingTest extends TestCase $folder = Folder::factory(Folder::class) ->create([ - 'user_id' => $user->id + 'user_id' => $user->id, ]); collect([0, 1]) ->each(function ($index) use ($folder) { - $file = UploadedFile::fake() ->create("fake-file-$index.pdf", 1200, 'application/pdf'); @@ -89,7 +83,7 @@ class UserZippingTest extends TestCase ->assertStatus(201); $this->assertDatabaseHas('zips', [ - 'user_id' => $user->id + 'user_id' => $user->id, ]); Storage::disk('local') @@ -97,4 +91,4 @@ class UserZippingTest extends TestCase 'zip/' . Zip::first()->basename ); } -} \ No newline at end of file +} diff --git a/tests/Support/Scheduler/SchedulerTest.php b/tests/Support/Scheduler/SchedulerTest.php index f77b2057..b8e137ae 100644 --- a/tests/Support/Scheduler/SchedulerTest.php +++ b/tests/Support/Scheduler/SchedulerTest.php @@ -1,15 +1,13 @@ create([ - 'expire_in' => 24, + 'expire_in' => 24, 'created_at' => now()->subDay(), ]); @@ -28,7 +26,7 @@ class SchedulerTest extends TestCase ->delete_expired_shared_links(); $this->assertDatabaseMissing('shares', [ - 'id' => $share->id + 'id' => $share->id, ]); } @@ -51,7 +49,7 @@ class SchedulerTest extends TestCase ->delete_old_zips(); $this->assertDatabaseMissing('zips', [ - 'id' => $zip->id + 'id' => $zip->id, ]); Storage::disk('local') @@ -69,7 +67,7 @@ class SchedulerTest extends TestCase ->create('fake-file.zip', 2000, 'application/zip'); collect(['chunks']) - ->each(function ($folder) use ($file){ + ->each(function ($folder) use ($file) { Storage::putFileAs($folder, $file, 'fake-file.zip'); }); @@ -81,7 +79,6 @@ class SchedulerTest extends TestCase Storage::disk('local') ->assertMissing("$folder/fake-file.zip"); }); - } /** @@ -92,19 +89,19 @@ class SchedulerTest extends TestCase $expiredUser = User::factory(User::class) ->create([ 'email_verified_at' => null, - 'created_at' => now()->subDays(31) + 'created_at' => now()->subDays(31), ]); $nonExpiredUser = User::factory(User::class) ->create([ 'email_verified_at' => null, - 'created_at' => now()->subDays(14) + 'created_at' => now()->subDays(14), ]); $verifiedUser = User::factory(User::class) ->create([ 'email_verified_at' => now()->subDays(15), - 'created_at' => now()->subDays(31) + 'created_at' => now()->subDays(31), ]); resolve(SchedulerService::class) diff --git a/tests/TestCase.php b/tests/TestCase.php index 76eabf5f..0da93558 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,13 +1,12 @@