From e7cfa073924544c124a7d1146fb82e67eee05c9b Mon Sep 17 00:00:00 2001 From: MakingCG Date: Fri, 9 Jul 2021 10:05:40 +0000 Subject: [PATCH] Fix backend code styling --- .php-cs-fixer.cache | 2 +- app/Http/helpers.php | 305 +++++++++++++++++++++---------------------- 2 files changed, 153 insertions(+), 154 deletions(-) diff --git a/.php-cs-fixer.cache b/.php-cs-fixer.cache index 3d2900c0..7b434740 100644 --- a/.php-cs-fixer.cache +++ b/.php-cs-fixer.cache @@ -1 +1 @@ -{"php":"8.0.5","version":"3.0.0","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":true,"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":{"app\/Rules\/DisabledMimetypes.php":3208905600,"app\/Http\/helpers.php":2723821123,"app\/Http\/Middleware\/VerifyCsrfToken.php":2876451146,"app\/Http\/Middleware\/Authenticate.php":829439188,"app\/Http\/Middleware\/TrustProxies.php":3573151230,"app\/Http\/Middleware\/TrimStrings.php":10633912,"app\/Http\/Middleware\/CheckForMaintenanceMode.php":3053801562,"app\/Http\/Middleware\/EncryptCookies.php":1502216959,"app\/Http\/Middleware\/RedirectIfAuthenticated.php":4037446582,"app\/Http\/Middleware\/PreventRequestsDuringMaintenance.php":2280943271,"app\/Http\/Controllers\/Auth\/LoginController.php":2932123434,"app\/Http\/Controllers\/Auth\/AuthController.php":3570080690,"app\/Http\/Controllers\/Auth\/ResetPasswordController.php":348514476,"app\/Http\/Controllers\/Auth\/ForgotPasswordController.php":2521654140,"app\/Http\/Controllers\/Auth\/ConfirmPasswordController.php":711266715,"app\/Http\/Controllers\/Auth\/VerificationController.php":260994322,"app\/Http\/Controllers\/Admin\/InvoiceController.php":2147703671,"app\/Http\/Controllers\/Admin\/LanguageController.php":4181976730,"app\/Http\/Controllers\/Admin\/PagesController.php":3260477919,"app\/Http\/Controllers\/Admin\/PlanController.php":297053207,"app\/Http\/Controllers\/Admin\/SettingController.php":2219478395,"app\/Http\/Controllers\/Admin\/UserController.php":1705519460,"app\/Http\/Controllers\/Admin\/DashboardController.php":596828009,"app\/Http\/Controllers\/Subscription\/StripeWebhookController.php":2426977191,"app\/Http\/Controllers\/Controller.php":2646027293,"app\/Http\/Controllers\/Sharing\/FileSharedAccessController.php":3821037715,"app\/Http\/Controllers\/Sharing\/ManipulateShareItemsController.php":14558414,"app\/Http\/Controllers\/Sharing\/BrowseShareController.php":4259232858,"app\/Http\/Controllers\/App\/SetupWizardController.php":3181705623,"app\/Http\/Controllers\/App\/Maintenance.php":96974254,"app\/Http\/Controllers\/App\/AppFunctionsController.php":2416222494,"app\/Http\/Controllers\/FileManager\/FavouriteController.php":2757720034,"app\/Http\/Controllers\/FileManager\/TrashController.php":4243775923,"app\/Http\/Controllers\/FileManager\/ShareController.php":2848524553,"app\/Http\/Controllers\/FileManager\/EditItemsController.php":3488374162,"app\/Http\/Controllers\/FileManager\/FileAccessController.php":2326554064,"app\/Http\/Controllers\/FileManager\/BrowseController.php":115194502,"app\/Http\/Controllers\/User\/AccountController.php":4219317847,"app\/Http\/Controllers\/User\/SubscriptionController.php":2751297300,"app\/Http\/Controllers\/User\/PaymentMethodsController.php":3648774,"app\/Http\/Notifications\/ConfirmPayment.php":332683570,"app\/Http\/Requests\/Auth\/CheckAccountRequest.php":708120184,"app\/Http\/Requests\/Admin\/ChangeStorageCapacityRequest.php":1669862599,"app\/Http\/Requests\/Admin\/ChangeRoleRequest.php":1925938295,"app\/Http\/Requests\/Admin\/CreateUserByAdmin.php":3365802358,"app\/Http\/Requests\/Admin\/DeleteUserRequest.php":2636618911,"app\/Http\/Requests\/PublicPages\/SendContactMessageRequest.php":3821039611,"app\/Http\/Requests\/FileFunctions\/MoveItemRequest.php":1125344009,"app\/Http\/Requests\/FileFunctions\/UploadRequest.php":2314050348,"app\/Http\/Requests\/FileFunctions\/RenameItemRequest.php":3723095090,"app\/Http\/Requests\/FileFunctions\/CreateFolderRequest.php":1300625783,"app\/Http\/Requests\/FileFunctions\/DeleteItemRequest.php":3936258011,"app\/Http\/Requests\/Subscription\/StoreUpgradeAccountRequest.php":3421291521,"app\/Http\/Requests\/Share\/AuthenticateShareRequest.php":1928811787,"app\/Http\/Requests\/Share\/UpdateShareRequest.php":403673781,"app\/Http\/Requests\/Share\/CreateShareRequest.php":898178246,"app\/Http\/Requests\/FileBrowser\/SearchRequest.php":202095165,"app\/Http\/Requests\/Languages\/CreateLanguageRequest.php":3242997343,"app\/Http\/Requests\/Languages\/UpdateStringRequest.php":477321427,"app\/Http\/Requests\/Languages\/UpdateLanguageRequest.php":3062642093,"app\/Http\/Requests\/SetupWizard\/StoreStripeBillingRequest.php":2767086903,"app\/Http\/Requests\/SetupWizard\/StoreEnvironmentSetupRequest.php":662138835,"app\/Http\/Requests\/SetupWizard\/StoreStripeCredentialsRequest.php":429869546,"app\/Http\/Requests\/SetupWizard\/StoreDatabaseCredentialsRequest.php":3405038241,"app\/Http\/Requests\/SetupWizard\/StoreAppSetupRequest.php":2162069828,"app\/Http\/Requests\/SetupWizard\/StoreStripePlansRequest.php":698544961,"app\/Http\/Requests\/User\/UpdateUserPasswordRequest.php":2221986665,"app\/Http\/Requests\/Payments\/RegisterNewPaymentMethodRequest.php":2918618691,"app\/Http\/Resources\/UsersCollection.php":3057145737,"app\/Http\/Resources\/PageResource.php":2562874131,"app\/Http\/Resources\/LanguageCollection.php":1364645788,"app\/Http\/Resources\/InvoiceAdminCollection.php":274747241,"app\/Http\/Resources\/PricingResource.php":2786525720,"app\/Http\/Resources\/PaymentCardCollection.php":35382430,"app\/Http\/Resources\/FileResource.php":2500497589,"app\/Http\/Resources\/InvoiceCollection.php":3442384146,"app\/Http\/Resources\/UserSubscription.php":1868974562,"app\/Http\/Resources\/InvoiceResource.php":4272309745,"app\/Http\/Resources\/PlanCollection.php":1402537053,"app\/Http\/Resources\/LanguageResource.php":1673048322,"app\/Http\/Resources\/ShareResource.php":3638836792,"app\/Http\/Resources\/InvoiceAdminResource.php":545842233,"app\/Http\/Resources\/PlanResource.php":4254133748,"app\/Http\/Resources\/PaymentDefaultCardResource.php":1710261108,"app\/Http\/Resources\/PageCollection.php":842383211,"app\/Http\/Resources\/UserStorageResource.php":3173368149,"app\/Http\/Resources\/UserResource.php":3514384770,"app\/Http\/Resources\/PricingCollection.php":549452717,"app\/Http\/Resources\/PaymentCardResource.php":407843952,"app\/Http\/Mail\/SendContactMessage.php":594829001,"app\/Http\/Kernel.php":2136109776,"app\/Actions\/Fortify\/CreateNewUser.php":3715974201,"app\/Actions\/Fortify\/UpdateUserPassword.php":2632724801,"app\/Actions\/Fortify\/UpdateUserProfileInformation.php":2472609909,"app\/Actions\/Fortify\/PasswordValidationRules.php":2923916238,"app\/Actions\/Fortify\/ResetUserPassword.php":4190615589,"app\/Console\/Commands\/SetupDevEnvironment.php":3359383874,"app\/Console\/Commands\/SetupProdEnvironment.php":2270058700,"app\/Console\/Kernel.php":3670235513,"app\/Notifications\/ResetPassword.php":217123398,"app\/Notifications\/SharedSendViaEmail.php":113607832,"app\/Providers\/BroadcastServiceProvider.php":3541093703,"app\/Providers\/EventServiceProvider.php":3395009334,"app\/Providers\/FortifyServiceProvider.php":4138315837,"app\/Providers\/AuthServiceProvider.php":169859517,"app\/Providers\/AppServiceProvider.php":386165394,"app\/Providers\/RouteServiceProvider.php":1824013481,"app\/Services\/StripeService.php":2332109809,"app\/Services\/DemoService.php":3417423904,"app\/Services\/FileManagerService.php":3500878067,"app\/Services\/LanguageService.php":220905965,"app\/Services\/SchedulerService.php":3203885791,"app\/Services\/HelperService.php":176566775,"app\/Services\/SetupService.php":3211368368,"app\/Exceptions\/Handler.php":1302274777,"app\/Models\/File.php":263030666,"app\/Models\/LanguageTranslation.php":1555765712,"app\/Models\/Folder.php":4201207301,"app\/Models\/Page.php":907354308,"app\/Models\/Zip.php":2771946819,"app\/Models\/Language.php":1756684391,"app\/Models\/Traffic.php":2512673789,"app\/Models\/Invoice.php":3022282710,"app\/Models\/Share.php":131227417,"app\/Models\/Setting.php":3917536845,"app\/Models\/UserSettings.php":3400206961,"app\/Models\/User.php":3940609624,"routes\/admin.php":1753159742,"routes\/share.php":1915112226,"routes\/channels.php":2877044881,"routes\/console.php":2045403946,"routes\/web.php":2818253027,"routes\/api.php":3451943582,"routes\/setup.php":174846292,"routes\/file.php":3064209512,"routes\/maintenance.php":3748923669,"routes\/user.php":4259547085,"config\/language-translations.php":1413320396,"config\/custom-language-translations.php":1251541856,"config\/fortify.php":26876281,"config\/view.php":3441258419,"config\/laravel-query-monitor.php":1440668834,"config\/cache.php":1332522112,"config\/cashier.php":3667756931,"config\/cors.php":814133164,"config\/services.php":2567151055,"config\/app.php":2330968557,"config\/filesystems.php":371723655,"config\/content.php":395802805,"config\/queue.php":1206545377,"config\/auth.php":3170093846,"config\/hashing.php":509629418,"config\/backup.php":3248077103,"config\/database.php":2792060856,"config\/session.php":2232050276,"config\/scout.php":3982286810,"config\/vuefilemanager.php":1126120216,"config\/logging.php":794303111,"config\/mail.php":328575859,"config\/broadcasting.php":2563027683}} \ No newline at end of file +{"php":"8.0.5","version":"3.0.0","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":true,"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":{"app\/Rules\/DisabledMimetypes.php":3208905600,"app\/Http\/helpers.php":2510038863,"app\/Http\/Middleware\/VerifyCsrfToken.php":2876451146,"app\/Http\/Middleware\/Authenticate.php":829439188,"app\/Http\/Middleware\/TrustProxies.php":3573151230,"app\/Http\/Middleware\/TrimStrings.php":10633912,"app\/Http\/Middleware\/CheckForMaintenanceMode.php":3053801562,"app\/Http\/Middleware\/EncryptCookies.php":1502216959,"app\/Http\/Middleware\/RedirectIfAuthenticated.php":4037446582,"app\/Http\/Middleware\/PreventRequestsDuringMaintenance.php":2280943271,"app\/Http\/Controllers\/Auth\/LoginController.php":2932123434,"app\/Http\/Controllers\/Auth\/AuthController.php":3570080690,"app\/Http\/Controllers\/Auth\/ResetPasswordController.php":348514476,"app\/Http\/Controllers\/Auth\/ForgotPasswordController.php":2521654140,"app\/Http\/Controllers\/Auth\/ConfirmPasswordController.php":711266715,"app\/Http\/Controllers\/Auth\/VerificationController.php":260994322,"app\/Http\/Controllers\/Admin\/InvoiceController.php":2147703671,"app\/Http\/Controllers\/Admin\/LanguageController.php":4181976730,"app\/Http\/Controllers\/Admin\/PagesController.php":3260477919,"app\/Http\/Controllers\/Admin\/PlanController.php":297053207,"app\/Http\/Controllers\/Admin\/SettingController.php":2219478395,"app\/Http\/Controllers\/Admin\/UserController.php":1705519460,"app\/Http\/Controllers\/Admin\/DashboardController.php":596828009,"app\/Http\/Controllers\/Subscription\/StripeWebhookController.php":2426977191,"app\/Http\/Controllers\/Controller.php":2646027293,"app\/Http\/Controllers\/Sharing\/FileSharedAccessController.php":3821037715,"app\/Http\/Controllers\/Sharing\/ManipulateShareItemsController.php":14558414,"app\/Http\/Controllers\/Sharing\/BrowseShareController.php":4259232858,"app\/Http\/Controllers\/App\/SetupWizardController.php":3181705623,"app\/Http\/Controllers\/App\/Maintenance.php":96974254,"app\/Http\/Controllers\/App\/AppFunctionsController.php":2416222494,"app\/Http\/Controllers\/FileManager\/FavouriteController.php":2757720034,"app\/Http\/Controllers\/FileManager\/TrashController.php":4243775923,"app\/Http\/Controllers\/FileManager\/ShareController.php":2848524553,"app\/Http\/Controllers\/FileManager\/EditItemsController.php":3488374162,"app\/Http\/Controllers\/FileManager\/FileAccessController.php":2326554064,"app\/Http\/Controllers\/FileManager\/BrowseController.php":115194502,"app\/Http\/Controllers\/User\/AccountController.php":4219317847,"app\/Http\/Controllers\/User\/SubscriptionController.php":2751297300,"app\/Http\/Controllers\/User\/PaymentMethodsController.php":3648774,"app\/Http\/Notifications\/ConfirmPayment.php":332683570,"app\/Http\/Requests\/Auth\/CheckAccountRequest.php":708120184,"app\/Http\/Requests\/Admin\/ChangeStorageCapacityRequest.php":1669862599,"app\/Http\/Requests\/Admin\/ChangeRoleRequest.php":1925938295,"app\/Http\/Requests\/Admin\/CreateUserByAdmin.php":3365802358,"app\/Http\/Requests\/Admin\/DeleteUserRequest.php":2636618911,"app\/Http\/Requests\/PublicPages\/SendContactMessageRequest.php":3821039611,"app\/Http\/Requests\/FileFunctions\/MoveItemRequest.php":1125344009,"app\/Http\/Requests\/FileFunctions\/UploadRequest.php":2314050348,"app\/Http\/Requests\/FileFunctions\/RenameItemRequest.php":3723095090,"app\/Http\/Requests\/FileFunctions\/CreateFolderRequest.php":1300625783,"app\/Http\/Requests\/FileFunctions\/DeleteItemRequest.php":3936258011,"app\/Http\/Requests\/Subscription\/StoreUpgradeAccountRequest.php":3421291521,"app\/Http\/Requests\/Share\/AuthenticateShareRequest.php":1928811787,"app\/Http\/Requests\/Share\/UpdateShareRequest.php":403673781,"app\/Http\/Requests\/Share\/CreateShareRequest.php":898178246,"app\/Http\/Requests\/FileBrowser\/SearchRequest.php":202095165,"app\/Http\/Requests\/Languages\/CreateLanguageRequest.php":3242997343,"app\/Http\/Requests\/Languages\/UpdateStringRequest.php":477321427,"app\/Http\/Requests\/Languages\/UpdateLanguageRequest.php":3062642093,"app\/Http\/Requests\/SetupWizard\/StoreStripeBillingRequest.php":2767086903,"app\/Http\/Requests\/SetupWizard\/StoreEnvironmentSetupRequest.php":662138835,"app\/Http\/Requests\/SetupWizard\/StoreStripeCredentialsRequest.php":429869546,"app\/Http\/Requests\/SetupWizard\/StoreDatabaseCredentialsRequest.php":3405038241,"app\/Http\/Requests\/SetupWizard\/StoreAppSetupRequest.php":2162069828,"app\/Http\/Requests\/SetupWizard\/StoreStripePlansRequest.php":698544961,"app\/Http\/Requests\/User\/UpdateUserPasswordRequest.php":2221986665,"app\/Http\/Requests\/Payments\/RegisterNewPaymentMethodRequest.php":2918618691,"app\/Http\/Resources\/UsersCollection.php":3057145737,"app\/Http\/Resources\/PageResource.php":2562874131,"app\/Http\/Resources\/LanguageCollection.php":1364645788,"app\/Http\/Resources\/InvoiceAdminCollection.php":274747241,"app\/Http\/Resources\/PricingResource.php":2786525720,"app\/Http\/Resources\/PaymentCardCollection.php":35382430,"app\/Http\/Resources\/FileResource.php":2500497589,"app\/Http\/Resources\/InvoiceCollection.php":3442384146,"app\/Http\/Resources\/UserSubscription.php":1868974562,"app\/Http\/Resources\/InvoiceResource.php":4272309745,"app\/Http\/Resources\/PlanCollection.php":1402537053,"app\/Http\/Resources\/LanguageResource.php":1673048322,"app\/Http\/Resources\/ShareResource.php":3638836792,"app\/Http\/Resources\/InvoiceAdminResource.php":545842233,"app\/Http\/Resources\/PlanResource.php":4254133748,"app\/Http\/Resources\/PaymentDefaultCardResource.php":1710261108,"app\/Http\/Resources\/PageCollection.php":842383211,"app\/Http\/Resources\/UserStorageResource.php":3173368149,"app\/Http\/Resources\/UserResource.php":3514384770,"app\/Http\/Resources\/PricingCollection.php":549452717,"app\/Http\/Resources\/PaymentCardResource.php":407843952,"app\/Http\/Mail\/SendContactMessage.php":594829001,"app\/Http\/Kernel.php":2136109776,"app\/Actions\/Fortify\/CreateNewUser.php":3715974201,"app\/Actions\/Fortify\/UpdateUserPassword.php":2632724801,"app\/Actions\/Fortify\/UpdateUserProfileInformation.php":2472609909,"app\/Actions\/Fortify\/PasswordValidationRules.php":2923916238,"app\/Actions\/Fortify\/ResetUserPassword.php":4190615589,"app\/Console\/Commands\/SetupDevEnvironment.php":3359383874,"app\/Console\/Commands\/SetupProdEnvironment.php":2270058700,"app\/Console\/Kernel.php":3670235513,"app\/Notifications\/ResetPassword.php":217123398,"app\/Notifications\/SharedSendViaEmail.php":113607832,"app\/Providers\/BroadcastServiceProvider.php":3541093703,"app\/Providers\/EventServiceProvider.php":3395009334,"app\/Providers\/FortifyServiceProvider.php":4138315837,"app\/Providers\/AuthServiceProvider.php":169859517,"app\/Providers\/AppServiceProvider.php":386165394,"app\/Providers\/RouteServiceProvider.php":1824013481,"app\/Services\/StripeService.php":2332109809,"app\/Services\/DemoService.php":3417423904,"app\/Services\/FileManagerService.php":3500878067,"app\/Services\/LanguageService.php":220905965,"app\/Services\/SchedulerService.php":3203885791,"app\/Services\/HelperService.php":176566775,"app\/Services\/SetupService.php":3211368368,"app\/Exceptions\/Handler.php":1302274777,"app\/Models\/File.php":263030666,"app\/Models\/LanguageTranslation.php":1555765712,"app\/Models\/Folder.php":4201207301,"app\/Models\/Page.php":907354308,"app\/Models\/Zip.php":2771946819,"app\/Models\/Language.php":1756684391,"app\/Models\/Traffic.php":2512673789,"app\/Models\/Invoice.php":3022282710,"app\/Models\/Share.php":131227417,"app\/Models\/Setting.php":3917536845,"app\/Models\/UserSettings.php":3400206961,"app\/Models\/User.php":3940609624,"routes\/admin.php":1753159742,"routes\/share.php":1915112226,"routes\/channels.php":2877044881,"routes\/console.php":2045403946,"routes\/web.php":2818253027,"routes\/api.php":3451943582,"routes\/setup.php":174846292,"routes\/file.php":3064209512,"routes\/maintenance.php":3748923669,"routes\/user.php":4259547085,"config\/language-translations.php":1413320396,"config\/custom-language-translations.php":1251541856,"config\/fortify.php":26876281,"config\/view.php":3441258419,"config\/laravel-query-monitor.php":1440668834,"config\/cache.php":1332522112,"config\/cashier.php":3667756931,"config\/cors.php":814133164,"config\/services.php":2567151055,"config\/app.php":2330968557,"config\/filesystems.php":371723655,"config\/content.php":395802805,"config\/queue.php":1206545377,"config\/auth.php":3170093846,"config\/hashing.php":509629418,"config\/backup.php":3248077103,"config\/database.php":2792060856,"config\/session.php":2232050276,"config\/scout.php":3982286810,"config\/vuefilemanager.php":1126120216,"config\/logging.php":794303111,"config\/mail.php":328575859,"config\/broadcasting.php":2563027683}} \ No newline at end of file diff --git a/app/Http/helpers.php b/app/Http/helpers.php index 0d211572..0aa169ee 100644 --- a/app/Http/helpers.php +++ b/app/Http/helpers.php @@ -16,7 +16,7 @@ use Illuminate\Support\Facades\Storage; use Intervention\Image\ImageManagerStatic as Image; use Illuminate\Database\Eloquent\ModelNotFoundException; -if (!function_exists('obfuscate_email')) { +if (! function_exists('obfuscate_email')) { /** * Obfuscate email * @@ -33,7 +33,7 @@ if (!function_exists('obfuscate_email')) { } } -if (!function_exists('get_setting')) { +if (! function_exists('get_setting')) { /** * Get single value from settings table * @@ -46,7 +46,7 @@ if (!function_exists('get_setting')) { } } -if (!function_exists('get_settings_in_json')) { +if (! function_exists('get_settings_in_json')) { /** * Get all app settings and return them as json */ @@ -60,7 +60,7 @@ if (!function_exists('get_settings_in_json')) { } } -if (!function_exists('get_setup_status')) { +if (! function_exists('get_setup_status')) { /** * Check if setup wizard was passed * @@ -74,7 +74,7 @@ if (!function_exists('get_setup_status')) { } } -if (!function_exists('add_paragraphs')) { +if (! function_exists('add_paragraphs')) { /** * Create paragraph from text * @@ -123,7 +123,7 @@ if (!function_exists('add_paragraphs')) { } } -if (!function_exists('setEnvironmentValue')) { +if (! function_exists('setEnvironmentValue')) { /** * Set environment value * @@ -150,11 +150,11 @@ if (!function_exists('setEnvironmentValue')) { $str = substr($str, 0, -1); - return !(!file_put_contents($envFile, $str)); + return ! (! file_put_contents($envFile, $str)); } } -if (!function_exists('get_invoice_number')) { +if (! function_exists('get_invoice_number')) { /** * Get invoice number * @@ -168,11 +168,11 @@ if (!function_exists('get_invoice_number')) { return now()->year . '001'; } - return (int)$invoices->last()->order + 1; + return (int) $invoices->last()->order + 1; } } -if (!function_exists('cache_forget_many')) { +if (! function_exists('cache_forget_many')) { /** * Forget many cache keys at once * @param $cache @@ -185,7 +185,7 @@ if (!function_exists('cache_forget_many')) { } } -if (!function_exists('get_storage')) { +if (! function_exists('get_storage')) { /** * Get app version from config * @@ -197,7 +197,7 @@ if (!function_exists('get_storage')) { } } -if (!function_exists('is_storage_driver')) { +if (! function_exists('is_storage_driver')) { /** * Check if is running AWS s3 as storage * @@ -213,7 +213,7 @@ if (!function_exists('is_storage_driver')) { } } -if (!function_exists('get_version')) { +if (! function_exists('get_version')) { /** * Get app version from config * @@ -225,7 +225,7 @@ if (!function_exists('get_version')) { } } -if (!function_exists('is_demo')) { +if (! function_exists('is_demo')) { /** * Check if is demo * @@ -237,7 +237,7 @@ if (!function_exists('is_demo')) { } } -if (!function_exists('is_demo_account')) { +if (! function_exists('is_demo_account')) { /** * Check if is demo * @@ -250,7 +250,7 @@ if (!function_exists('is_demo_account')) { } } -if (!function_exists('get_item')) { +if (! function_exists('get_item')) { /** * Get folder or file item * @@ -266,7 +266,7 @@ if (!function_exists('get_item')) { } } -if (!function_exists('get_shared')) { +if (! function_exists('get_shared')) { /** * Get shared token * @@ -280,7 +280,7 @@ if (!function_exists('get_shared')) { } } -if (!function_exists('is_editor')) { +if (! function_exists('is_editor')) { /** * Check if shared permission is editor * @@ -293,7 +293,7 @@ if (!function_exists('is_editor')) { } } -if (!function_exists('is_visitor')) { +if (! function_exists('is_visitor')) { /** * Check if shared permission is visitor * @@ -306,7 +306,7 @@ if (!function_exists('is_visitor')) { } } -if (!function_exists('store_avatar')) { +if (! function_exists('store_avatar')) { /** * Store user avatar to storage * @@ -316,7 +316,7 @@ if (!function_exists('store_avatar')) { */ function store_avatar($request, $name) { - if (!$request->hasFile($name)) { + if (! $request->hasFile($name)) { return null; } @@ -345,7 +345,7 @@ if (!function_exists('store_avatar')) { } } -if (!function_exists('store_system_image')) { +if (! function_exists('store_system_image')) { /** * Store system image * @@ -355,7 +355,7 @@ if (!function_exists('store_system_image')) { */ function store_system_image($request, $name) { - if (!$request->hasFile($name)) { + if (! $request->hasFile($name)) { return null; } @@ -372,7 +372,7 @@ if (!function_exists('store_system_image')) { } } -if (!function_exists('make_single_input')) { +if (! function_exists('make_single_input')) { /** * Make input from request * @@ -392,7 +392,7 @@ if (!function_exists('make_single_input')) { } } -if (!function_exists('format_gigabytes')) { +if (! function_exists('format_gigabytes')) { /** * Format integer to gigabytes * @@ -409,7 +409,7 @@ if (!function_exists('format_gigabytes')) { } } -if (!function_exists('format_megabytes')) { +if (! function_exists('format_megabytes')) { /** * Format string to formated megabytes string * @@ -430,7 +430,7 @@ if (!function_exists('format_megabytes')) { } } -if (!function_exists('format_bytes')) { +if (! function_exists('format_bytes')) { /** * Convert megabytes to bytes * @@ -443,7 +443,7 @@ if (!function_exists('format_bytes')) { } } -if (!function_exists('get_storage_fill_percentage')) { +if (! function_exists('get_storage_fill_percentage')) { /** * Get storage usage in percent * @@ -464,11 +464,11 @@ if (!function_exists('get_storage_fill_percentage')) { } // Return in 2 decimal - return number_format((float)$progress, 2, '.', ''); + return number_format((float) $progress, 2, '.', ''); } } -if (!function_exists('user_storage_percentage')) { +if (! function_exists('user_storage_percentage')) { /** * Get user capacity fill by percentage * @@ -490,7 +490,7 @@ if (!function_exists('user_storage_percentage')) { } } -if (!function_exists('recursiveFind')) { +if (! function_exists('recursiveFind')) { /** * Find all key values in recursive array * @@ -514,7 +514,7 @@ if (!function_exists('recursiveFind')) { } } -if (!function_exists('appeared_once')) { +if (! function_exists('appeared_once')) { /** * Get values which appears only once in array * @param $arr @@ -536,7 +536,7 @@ if (!function_exists('appeared_once')) { } } -if (!function_exists('filter_folders_ids')) { +if (! function_exists('filter_folders_ids')) { /** * @param $folders * @param string $by_column @@ -550,7 +550,7 @@ if (!function_exists('filter_folders_ids')) { } } -if (!function_exists('format_date')) { +if (! function_exists('format_date')) { /** * Format localized date * @@ -566,7 +566,7 @@ if (!function_exists('format_date')) { } } -if (!function_exists('get_file_type')) { +if (! function_exists('get_file_type')) { /** * Get file type from mimetype * @@ -586,7 +586,7 @@ if (!function_exists('get_file_type')) { } } -if (!function_exists('map_language_translations')) { +if (! function_exists('map_language_translations')) { /** * It map language translations as language key and language value * @@ -601,7 +601,7 @@ if (!function_exists('map_language_translations')) { } } -if (!function_exists('get_file_type_from_mimetype')) { +if (! function_exists('get_file_type_from_mimetype')) { /** * Get file type from mimetype * @@ -614,7 +614,7 @@ if (!function_exists('get_file_type_from_mimetype')) { } } -if (!function_exists('get_pretty_name')) { +if (! function_exists('get_pretty_name')) { /** * Format pretty name file * @@ -639,7 +639,7 @@ if (!function_exists('get_pretty_name')) { } } -if (!function_exists('get_image_meta_data')) { +if (! function_exists('get_image_meta_data')) { /** * Get exif data from jpeg image * @@ -659,7 +659,7 @@ if (!function_exists('get_image_meta_data')) { } } -if (!function_exists('get_default_language_translations')) { +if (! function_exists('get_default_language_translations')) { /** * @return Collection */ @@ -673,7 +673,7 @@ if (!function_exists('get_default_language_translations')) { } } -if (!function_exists('is_dev')) { +if (! function_exists('is_dev')) { /** * Check if app is in dev mode * @@ -685,7 +685,7 @@ if (!function_exists('is_dev')) { } } -if (!function_exists('seems_utf8')) { +if (! function_exists('seems_utf8')) { /** * @param $str * @return bool @@ -730,7 +730,7 @@ if (!function_exists('seems_utf8')) { } } -if (!function_exists('remove_accents')) { +if (! function_exists('remove_accents')) { /** * Converts all accent characters to ASCII characters. * @@ -741,110 +741,110 @@ if (!function_exists('remove_accents')) { */ function remove_accents($string) { - if (!preg_match('/[\x80-\xff]/', $string)) { + if (! preg_match('/[\x80-\xff]/', $string)) { return $string; } if (seems_utf8($string)) { $chars = [ // Decompositions for Latin-1 Supplement - chr(195) . chr(128) => 'A', chr(195) . chr(129) => 'A', - chr(195) . chr(130) => 'A', chr(195) . chr(131) => 'A', - chr(195) . chr(132) => 'A', chr(195) . chr(133) => 'A', - chr(195) . chr(135) => 'C', chr(195) . chr(136) => 'E', - chr(195) . chr(137) => 'E', chr(195) . chr(138) => 'E', - chr(195) . chr(139) => 'E', chr(195) . chr(140) => 'I', - chr(195) . chr(141) => 'I', chr(195) . chr(142) => 'I', - chr(195) . chr(143) => 'I', chr(195) . chr(145) => 'N', - chr(195) . chr(146) => 'O', chr(195) . chr(147) => 'O', - chr(195) . chr(148) => 'O', chr(195) . chr(149) => 'O', - chr(195) . chr(150) => 'O', chr(195) . chr(153) => 'U', - chr(195) . chr(154) => 'U', chr(195) . chr(155) => 'U', - chr(195) . chr(156) => 'U', chr(195) . chr(157) => 'Y', - chr(195) . chr(159) => 's', chr(195) . chr(160) => 'a', - chr(195) . chr(161) => 'a', chr(195) . chr(162) => 'a', - chr(195) . chr(163) => 'a', chr(195) . chr(164) => 'a', - chr(195) . chr(165) => 'a', chr(195) . chr(167) => 'c', - chr(195) . chr(168) => 'e', chr(195) . chr(169) => 'e', - chr(195) . chr(170) => 'e', chr(195) . chr(171) => 'e', - chr(195) . chr(172) => 'i', chr(195) . chr(173) => 'i', - chr(195) . chr(174) => 'i', chr(195) . chr(175) => 'i', - chr(195) . chr(177) => 'n', chr(195) . chr(178) => 'o', - chr(195) . chr(179) => 'o', chr(195) . chr(180) => 'o', - chr(195) . chr(181) => 'o', chr(195) . chr(182) => 'o', - chr(195) . chr(182) => 'o', chr(195) . chr(185) => 'u', - chr(195) . chr(186) => 'u', chr(195) . chr(187) => 'u', - chr(195) . chr(188) => 'u', chr(195) . chr(189) => 'y', - chr(195) . chr(191) => 'y', + chr(195) . chr(128) => 'A', chr(195) . chr(129) => 'A', + chr(195) . chr(130) => 'A', chr(195) . chr(131) => 'A', + chr(195) . chr(132) => 'A', chr(195) . chr(133) => 'A', + chr(195) . chr(135) => 'C', chr(195) . chr(136) => 'E', + chr(195) . chr(137) => 'E', chr(195) . chr(138) => 'E', + chr(195) . chr(139) => 'E', chr(195) . chr(140) => 'I', + chr(195) . chr(141) => 'I', chr(195) . chr(142) => 'I', + chr(195) . chr(143) => 'I', chr(195) . chr(145) => 'N', + chr(195) . chr(146) => 'O', chr(195) . chr(147) => 'O', + chr(195) . chr(148) => 'O', chr(195) . chr(149) => 'O', + chr(195) . chr(150) => 'O', chr(195) . chr(153) => 'U', + chr(195) . chr(154) => 'U', chr(195) . chr(155) => 'U', + chr(195) . chr(156) => 'U', chr(195) . chr(157) => 'Y', + chr(195) . chr(159) => 's', chr(195) . chr(160) => 'a', + chr(195) . chr(161) => 'a', chr(195) . chr(162) => 'a', + chr(195) . chr(163) => 'a', chr(195) . chr(164) => 'a', + chr(195) . chr(165) => 'a', chr(195) . chr(167) => 'c', + chr(195) . chr(168) => 'e', chr(195) . chr(169) => 'e', + chr(195) . chr(170) => 'e', chr(195) . chr(171) => 'e', + chr(195) . chr(172) => 'i', chr(195) . chr(173) => 'i', + chr(195) . chr(174) => 'i', chr(195) . chr(175) => 'i', + chr(195) . chr(177) => 'n', chr(195) . chr(178) => 'o', + chr(195) . chr(179) => 'o', chr(195) . chr(180) => 'o', + chr(195) . chr(181) => 'o', chr(195) . chr(182) => 'o', + chr(195) . chr(182) => 'o', chr(195) . chr(185) => 'u', + chr(195) . chr(186) => 'u', chr(195) . chr(187) => 'u', + chr(195) . chr(188) => 'u', chr(195) . chr(189) => 'y', + chr(195) . chr(191) => 'y', // Decompositions for Latin Extended-A - chr(196) . chr(128) => 'A', chr(196) . chr(129) => 'a', - chr(196) . chr(130) => 'A', chr(196) . chr(131) => 'a', - chr(196) . chr(132) => 'A', chr(196) . chr(133) => 'a', - chr(196) . chr(134) => 'C', chr(196) . chr(135) => 'c', - chr(196) . chr(136) => 'C', chr(196) . chr(137) => 'c', - chr(196) . chr(138) => 'C', chr(196) . chr(139) => 'c', - chr(196) . chr(140) => 'C', chr(196) . chr(141) => 'c', - chr(196) . chr(142) => 'D', chr(196) . chr(143) => 'd', - chr(196) . chr(144) => 'D', chr(196) . chr(145) => 'd', - chr(196) . chr(146) => 'E', chr(196) . chr(147) => 'e', - chr(196) . chr(148) => 'E', chr(196) . chr(149) => 'e', - chr(196) . chr(150) => 'E', chr(196) . chr(151) => 'e', - chr(196) . chr(152) => 'E', chr(196) . chr(153) => 'e', - chr(196) . chr(154) => 'E', chr(196) . chr(155) => 'e', - chr(196) . chr(156) => 'G', chr(196) . chr(157) => 'g', - chr(196) . chr(158) => 'G', chr(196) . chr(159) => 'g', - chr(196) . chr(160) => 'G', chr(196) . chr(161) => 'g', - chr(196) . chr(162) => 'G', chr(196) . chr(163) => 'g', - chr(196) . chr(164) => 'H', chr(196) . chr(165) => 'h', - chr(196) . chr(166) => 'H', chr(196) . chr(167) => 'h', - chr(196) . chr(168) => 'I', chr(196) . chr(169) => 'i', - chr(196) . chr(170) => 'I', chr(196) . chr(171) => 'i', - chr(196) . chr(172) => 'I', chr(196) . chr(173) => 'i', - chr(196) . chr(174) => 'I', chr(196) . chr(175) => 'i', - chr(196) . chr(176) => 'I', chr(196) . chr(177) => 'i', - chr(196) . chr(178) => 'IJ', chr(196) . chr(179) => 'ij', - chr(196) . chr(180) => 'J', chr(196) . chr(181) => 'j', - chr(196) . chr(182) => 'K', chr(196) . chr(183) => 'k', - chr(196) . chr(184) => 'k', chr(196) . chr(185) => 'L', - chr(196) . chr(186) => 'l', chr(196) . chr(187) => 'L', - chr(196) . chr(188) => 'l', chr(196) . chr(189) => 'L', - chr(196) . chr(190) => 'l', chr(196) . chr(191) => 'L', - chr(197) . chr(128) => 'l', chr(197) . chr(129) => 'L', - chr(197) . chr(130) => 'l', chr(197) . chr(131) => 'N', - chr(197) . chr(132) => 'n', chr(197) . chr(133) => 'N', - chr(197) . chr(134) => 'n', chr(197) . chr(135) => 'N', - chr(197) . chr(136) => 'n', chr(197) . chr(137) => 'N', - chr(197) . chr(138) => 'n', chr(197) . chr(139) => 'N', - chr(197) . chr(140) => 'O', chr(197) . chr(141) => 'o', - chr(197) . chr(142) => 'O', chr(197) . chr(143) => 'o', - chr(197) . chr(144) => 'O', chr(197) . chr(145) => 'o', - chr(197) . chr(146) => 'OE', chr(197) . chr(147) => 'oe', - chr(197) . chr(148) => 'R', chr(197) . chr(149) => 'r', - chr(197) . chr(150) => 'R', chr(197) . chr(151) => 'r', - chr(197) . chr(152) => 'R', chr(197) . chr(153) => 'r', - chr(197) . chr(154) => 'S', chr(197) . chr(155) => 's', - chr(197) . chr(156) => 'S', chr(197) . chr(157) => 's', - chr(197) . chr(158) => 'S', chr(197) . chr(159) => 's', - chr(197) . chr(160) => 'S', chr(197) . chr(161) => 's', - chr(197) . chr(162) => 'T', chr(197) . chr(163) => 't', - chr(197) . chr(164) => 'T', chr(197) . chr(165) => 't', - chr(197) . chr(166) => 'T', chr(197) . chr(167) => 't', - chr(197) . chr(168) => 'U', chr(197) . chr(169) => 'u', - chr(197) . chr(170) => 'U', chr(197) . chr(171) => 'u', - chr(197) . chr(172) => 'U', chr(197) . chr(173) => 'u', - chr(197) . chr(174) => 'U', chr(197) . chr(175) => 'u', - chr(197) . chr(176) => 'U', chr(197) . chr(177) => 'u', - chr(197) . chr(178) => 'U', chr(197) . chr(179) => 'u', - chr(197) . chr(180) => 'W', chr(197) . chr(181) => 'w', - chr(197) . chr(182) => 'Y', chr(197) . chr(183) => 'y', - chr(197) . chr(184) => 'Y', chr(197) . chr(185) => 'Z', - chr(197) . chr(186) => 'z', chr(197) . chr(187) => 'Z', - chr(197) . chr(188) => 'z', chr(197) . chr(189) => 'Z', - chr(197) . chr(190) => 'z', chr(197) . chr(191) => 's', + chr(196) . chr(128) => 'A', chr(196) . chr(129) => 'a', + chr(196) . chr(130) => 'A', chr(196) . chr(131) => 'a', + chr(196) . chr(132) => 'A', chr(196) . chr(133) => 'a', + chr(196) . chr(134) => 'C', chr(196) . chr(135) => 'c', + chr(196) . chr(136) => 'C', chr(196) . chr(137) => 'c', + chr(196) . chr(138) => 'C', chr(196) . chr(139) => 'c', + chr(196) . chr(140) => 'C', chr(196) . chr(141) => 'c', + chr(196) . chr(142) => 'D', chr(196) . chr(143) => 'd', + chr(196) . chr(144) => 'D', chr(196) . chr(145) => 'd', + chr(196) . chr(146) => 'E', chr(196) . chr(147) => 'e', + chr(196) . chr(148) => 'E', chr(196) . chr(149) => 'e', + chr(196) . chr(150) => 'E', chr(196) . chr(151) => 'e', + chr(196) . chr(152) => 'E', chr(196) . chr(153) => 'e', + chr(196) . chr(154) => 'E', chr(196) . chr(155) => 'e', + chr(196) . chr(156) => 'G', chr(196) . chr(157) => 'g', + chr(196) . chr(158) => 'G', chr(196) . chr(159) => 'g', + chr(196) . chr(160) => 'G', chr(196) . chr(161) => 'g', + chr(196) . chr(162) => 'G', chr(196) . chr(163) => 'g', + chr(196) . chr(164) => 'H', chr(196) . chr(165) => 'h', + chr(196) . chr(166) => 'H', chr(196) . chr(167) => 'h', + chr(196) . chr(168) => 'I', chr(196) . chr(169) => 'i', + chr(196) . chr(170) => 'I', chr(196) . chr(171) => 'i', + chr(196) . chr(172) => 'I', chr(196) . chr(173) => 'i', + chr(196) . chr(174) => 'I', chr(196) . chr(175) => 'i', + chr(196) . chr(176) => 'I', chr(196) . chr(177) => 'i', + chr(196) . chr(178) => 'IJ', chr(196) . chr(179) => 'ij', + chr(196) . chr(180) => 'J', chr(196) . chr(181) => 'j', + chr(196) . chr(182) => 'K', chr(196) . chr(183) => 'k', + chr(196) . chr(184) => 'k', chr(196) . chr(185) => 'L', + chr(196) . chr(186) => 'l', chr(196) . chr(187) => 'L', + chr(196) . chr(188) => 'l', chr(196) . chr(189) => 'L', + chr(196) . chr(190) => 'l', chr(196) . chr(191) => 'L', + chr(197) . chr(128) => 'l', chr(197) . chr(129) => 'L', + chr(197) . chr(130) => 'l', chr(197) . chr(131) => 'N', + chr(197) . chr(132) => 'n', chr(197) . chr(133) => 'N', + chr(197) . chr(134) => 'n', chr(197) . chr(135) => 'N', + chr(197) . chr(136) => 'n', chr(197) . chr(137) => 'N', + chr(197) . chr(138) => 'n', chr(197) . chr(139) => 'N', + chr(197) . chr(140) => 'O', chr(197) . chr(141) => 'o', + chr(197) . chr(142) => 'O', chr(197) . chr(143) => 'o', + chr(197) . chr(144) => 'O', chr(197) . chr(145) => 'o', + chr(197) . chr(146) => 'OE', chr(197) . chr(147) => 'oe', + chr(197) . chr(148) => 'R', chr(197) . chr(149) => 'r', + chr(197) . chr(150) => 'R', chr(197) . chr(151) => 'r', + chr(197) . chr(152) => 'R', chr(197) . chr(153) => 'r', + chr(197) . chr(154) => 'S', chr(197) . chr(155) => 's', + chr(197) . chr(156) => 'S', chr(197) . chr(157) => 's', + chr(197) . chr(158) => 'S', chr(197) . chr(159) => 's', + chr(197) . chr(160) => 'S', chr(197) . chr(161) => 's', + chr(197) . chr(162) => 'T', chr(197) . chr(163) => 't', + chr(197) . chr(164) => 'T', chr(197) . chr(165) => 't', + chr(197) . chr(166) => 'T', chr(197) . chr(167) => 't', + chr(197) . chr(168) => 'U', chr(197) . chr(169) => 'u', + chr(197) . chr(170) => 'U', chr(197) . chr(171) => 'u', + chr(197) . chr(172) => 'U', chr(197) . chr(173) => 'u', + chr(197) . chr(174) => 'U', chr(197) . chr(175) => 'u', + chr(197) . chr(176) => 'U', chr(197) . chr(177) => 'u', + chr(197) . chr(178) => 'U', chr(197) . chr(179) => 'u', + chr(197) . chr(180) => 'W', chr(197) . chr(181) => 'w', + chr(197) . chr(182) => 'Y', chr(197) . chr(183) => 'y', + chr(197) . chr(184) => 'Y', chr(197) . chr(185) => 'Z', + chr(197) . chr(186) => 'z', chr(197) . chr(187) => 'Z', + chr(197) . chr(188) => 'z', chr(197) . chr(189) => 'Z', + chr(197) . chr(190) => 'z', chr(197) . chr(191) => 's', // Euro Sign chr(226) . chr(130) . chr(172) => 'E', // GBP (Pound) Sign - chr(194) . chr(163) => '',]; + chr(194) . chr(163) => '', ]; $string = strtr($string, $chars); } else { @@ -872,8 +872,7 @@ if (!function_exists('remove_accents')) { } } -if (!function_exists('get_files_for_zip')) { - +if (! function_exists('get_files_for_zip')) { /** * Get all files from folder and get their folder location in VueFileManager directories * @@ -885,7 +884,7 @@ if (!function_exists('get_files_for_zip')) { function get_files_for_zip($folders, $files, $path = []) { // Return file list - if (!isset($folders->folders)) { + if (! isset($folders->folders)) { return $files->unique()->values()->all(); } @@ -895,9 +894,9 @@ if (!function_exists('get_files_for_zip')) { // Push file to collection $folders->files->each(function ($file) use ($files, $path) { $files->push([ - 'name' => $file->name, - 'basename' => $file->basename, - 'mimetype' => $file->mimetype, + 'name' => $file->name, + 'basename' => $file->basename, + 'mimetype' => $file->mimetype, 'folder_path' => implode('/', $path), ]); }); @@ -913,7 +912,7 @@ if (!function_exists('get_files_for_zip')) { } } -if (!function_exists('set_time_by_user_timezone')) { +if (! function_exists('set_time_by_user_timezone')) { /** * Set time by user timezone GMT * @@ -934,7 +933,7 @@ if (!function_exists('set_time_by_user_timezone')) { } } -if (!function_exists('__t')) { +if (! function_exists('__t')) { /** * Translate the given message. * @param $key @@ -955,12 +954,12 @@ if (!function_exists('__t')) { // Get language strings $strings = cache()->rememberForever("language-translations-$locale", function () use ($locale) { - try { - return Language::whereLocale($locale)->firstOrFail()->languageTranslations; - } catch (QueryException | ModelNotFoundException $e) { - return null; - } - }) ?? get_default_language_translations(); + try { + return Language::whereLocale($locale)->firstOrFail()->languageTranslations; + } catch (QueryException | ModelNotFoundException $e) { + return null; + } + }) ?? get_default_language_translations(); // Find the string by key $string = $strings->firstWhere('key', $key)->value ?? $strings->get($key); @@ -973,7 +972,7 @@ if (!function_exists('__t')) { } } -if (!function_exists('replace_occurrence')) { +if (! function_exists('replace_occurrence')) { /** * Replace string occurrence in __t() by their values * @@ -985,7 +984,7 @@ if (!function_exists('replace_occurrence')) { { $occurrences = $values->map(function ($message, $key) { return [ - 'key' => ":$key", + 'key' => ":$key", 'message' => $message, ]; });