diff --git a/config/fortify.php b/config/fortify.php index 0d4177f6a..2303f6270 100644 --- a/config/fortify.php +++ b/config/fortify.php @@ -18,7 +18,7 @@ | */ - 'guard' => 'web', + 'guard' => 'web', /* |-------------------------------------------------------------------------- @@ -31,7 +31,7 @@ | */ - 'passwords' => 'users', + 'passwords' => 'users', /* |-------------------------------------------------------------------------- @@ -48,11 +48,11 @@ | */ - 'username' => 'email', + 'username' => 'email', - 'username_alt' => 'username', + 'username_alt' => 'username', - 'email' => 'email', + 'email' => 'email', /* |-------------------------------------------------------------------------- @@ -65,7 +65,7 @@ | */ - 'home' => config('home'), + 'home' => config('home'), /* |-------------------------------------------------------------------------- @@ -89,9 +89,9 @@ | */ - 'middleware' => ['web', DoNotCacheResponse::class], + 'middleware' => ['web', DoNotCacheResponse::class], - 'middlewares' => [ + 'middlewares' => [ 'account_settings' => [ 'update_profile' => ['web', 'auth'], 'update_password' => ['web', 'auth'], @@ -109,7 +109,7 @@ | */ - 'limiters' => [ + 'limiters' => [ 'login' => null, ], @@ -124,7 +124,7 @@ | */ - 'features' => [ + 'features' => [ Features::registration(), Features::resetPasswords(), Features::emailVerification(), @@ -144,7 +144,7 @@ | */ - 'models' => [ + 'models' => [ 'user' => '', 'invitation' => '', ], @@ -155,8 +155,8 @@ |-------------------------------------------------------------------------- */ - 'mail' => [ - 'default' => [ + 'mail' => [ + 'default' => [ 'name' => env('MAIL_DEFAULT_NAME', 'ARK Ecosystem'), 'address' => env('MAIL_DEFAULT_ADDRESS', 'noreply@ark.io'), ], @@ -173,7 +173,7 @@ |-------------------------------------------------------------------------- */ - 'routes' => [ + 'routes' => [ 'feedback_thank_you' => env('ROUTE_FEEDBACK_THANK_YOU', '/feedback/thank-you'), 'two_factor_reset_password' => env('ROUTE_TWO_RESET_PASSWORD', '/two-factor/reset-password/{token}'), 'account_settings_account' => env('ROUTE_ACCOUNT_SETTINGS_ACCOUNT', '/account/settings/account'), diff --git a/config/livewire.php b/config/livewire.php index e87e17ab7..04b3b8f6f 100644 --- a/config/livewire.php +++ b/config/livewire.php @@ -17,7 +17,7 @@ | */ - 'class_namespace' => 'App\\Http\\Livewire', + 'class_namespace' => 'App\\Http\\Livewire', /* |-------------------------------------------------------------------------- @@ -29,7 +29,7 @@ | */ - 'view_path' => resource_path('views/livewire'), + 'view_path' => resource_path('views/livewire'), /* |-------------------------------------------------------------------------- @@ -41,7 +41,7 @@ | */ - 'layout' => 'layouts.app', + 'layout' => 'layouts.app', /* |-------------------------------------------------------------------------- @@ -56,7 +56,7 @@ | */ - 'asset_url' => null, + 'asset_url' => null, /* |-------------------------------------------------------------------------- @@ -70,7 +70,7 @@ | */ - 'app_url' => null, + 'app_url' => null, /* |-------------------------------------------------------------------------- @@ -83,7 +83,7 @@ | */ - 'middleware_group' => 'web', + 'middleware_group' => 'web', /* |-------------------------------------------------------------------------- @@ -98,11 +98,11 @@ */ 'temporary_file_upload' => [ - 'disk' => null, // Example: 'local', 's3' Default: 'default' - 'rules' => null, // Example: ['file', 'mimes:png,jpg'] Default: ['required', 'file', 'max:12288'] (12MB) - 'directory' => null, // Example: 'tmp' Default 'livewire-tmp' - 'middleware' => null, // Example: 'throttle:5,1' Default: 'throttle:60,1' - 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs. + 'disk' => null, // Example: 'local', 's3' Default: 'default' + 'rules' => null, // Example: ['file', 'mimes:png,jpg'] Default: ['required', 'file', 'max:12288'] (12MB) + 'directory' => null, // Example: 'tmp' Default 'livewire-tmp' + 'middleware' => null, // Example: 'throttle:5,1' Default: 'throttle:60,1' + 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs. 'png', 'gif', 'bmp', 'svg', 'wav', 'mp4', 'mov', 'avi', 'wmv', 'mp3', 'm4a', 'jpg', 'jpeg', 'mpga', 'webp', 'wma', @@ -124,7 +124,7 @@ | */ - 'manifest_path' => null, + 'manifest_path' => null, /* |-------------------------------------------------------------------------- @@ -140,7 +140,7 @@ | */ - 'back_button_cache' => false, + 'back_button_cache' => false, /* |-------------------------------------------------------------------------- @@ -155,6 +155,6 @@ | */ - 'render_on_redirect' => true, + 'render_on_redirect' => true, ]; diff --git a/config/markdown.php b/config/markdown.php index a2f906da1..43b6e7453 100644 --- a/config/markdown.php +++ b/config/markdown.php @@ -36,7 +36,7 @@ | */ - 'views' => true, + 'views' => true, /* |-------------------------------------------------------------------------- @@ -50,7 +50,7 @@ | */ - 'extensions' => [ + 'extensions' => [ AutolinkExtension::class, ExternalLinkExtension::class, HeadingPermalinkExtension::class, @@ -73,7 +73,7 @@ | */ - 'inlineRenderers' => [], + 'inlineRenderers' => [], /* |-------------------------------------------------------------------------- @@ -90,7 +90,7 @@ | */ - 'renderer' => [ + 'renderer' => [ 'block_separator' => "\n", 'inner_separator' => "\n", 'soft_break' => "\n", @@ -107,7 +107,7 @@ | */ - 'enable_em' => true, + 'enable_em' => true, /* |-------------------------------------------------------------------------- @@ -120,7 +120,7 @@ | */ - 'enable_strong' => true, + 'enable_strong' => true, /* |-------------------------------------------------------------------------- @@ -133,7 +133,7 @@ | */ - 'use_asterisk' => true, + 'use_asterisk' => true, /* |-------------------------------------------------------------------------- @@ -146,7 +146,7 @@ | */ - 'use_underscore' => true, + 'use_underscore' => true, /* |-------------------------------------------------------------------------- @@ -159,7 +159,7 @@ | */ - 'html_input' => '', + 'html_input' => '', /* |-------------------------------------------------------------------------- @@ -172,7 +172,7 @@ | */ - 'allow_unsafe_links' => true, + 'allow_unsafe_links' => true, /* |-------------------------------------------------------------------------- @@ -185,7 +185,7 @@ | */ - 'max_nesting_level' => INF, + 'max_nesting_level' => INF, 'link_attributes' => [], 'link_renderer_view_attributes' => [], @@ -201,7 +201,7 @@ | */ - 'lazyload_images' => false, + 'lazyload_images' => false, /* |-------------------------------------------------------------------------- @@ -211,7 +211,7 @@ | The options below are going to be deep merged with the default options | defined on the `src/Providers/CommonMarkServiceProvider.php` file. */ - 'environment' => [], + 'environment' => [], /* |-------------------------------------------------------------------------- @@ -222,5 +222,5 @@ | `ARKEcosystem\Foundation\CommonMark\Contracts\ImageDimensionsStrategy` | interface. */ - 'image_dimensions_strategy' => null, + 'image_dimensions_strategy' => null, ]; diff --git a/config/newsletter.php b/config/newsletter.php index 9a7e0bf8d..37547bc8c 100644 --- a/config/newsletter.php +++ b/config/newsletter.php @@ -9,13 +9,13 @@ * You may use "log" or "null" to prevent calling the * API directly from your environment. */ - 'driver' => env('MAILCHIMP_DRIVER', 'api'), + 'driver' => env('MAILCHIMP_DRIVER', 'api'), /* * The API key of a MailChimp account. You can find yours at * https://us10.admin.mailchimp.com/account/api-key-popup/. */ - 'apiKey' => env('MAILCHIMP_APIKEY'), + 'apiKey' => env('MAILCHIMP_APIKEY'), /* * The listName to use when no listName has been specified in a method. @@ -25,7 +25,7 @@ /* * Here you can define projects of the lists. */ - 'lists' => [ + 'lists' => [ /* * This key is used to identify this list. It can be used @@ -48,6 +48,6 @@ /* * If you're having trouble with https connections, set this to false. */ - 'ssl' => true, + 'ssl' => true, ]; diff --git a/config/rules.php b/config/rules.php index c1bb5e011..addd0ac4b 100644 --- a/config/rules.php +++ b/config/rules.php @@ -31,22 +31,22 @@ 'twitter' => '/^[a-zA-Z0-9-_@]+$/m', ], - 'source_providers' => [ + 'source_providers' => [ 'bitbucket' => '/(?:https?:)\/\/(?:www\.)?bitbucket\.(com|org)\/(?P[A-z0-9_-]+)(?:\/(?P[*]+)\/?)?/m', 'github' => '/(?:https?:)\/\/(?:www\.)?github\.com\/(?P[A-z0-9_-]+)(?:\/(?P[*]+)\/?)?/m', 'gitlab' => '/(?:https?:)\/\/(?:www\.)?gitlab\.com\/(?P[A-z0-9_-]+)(?:\/(?P[*]+)\/?)?/m', ], - 'video_sources' => [ + 'video_sources' => [ 'youtube' => '/(?:https?:)\/\/((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?$/m', 'youtube_id' => '/^[^"&?\/\s]{11}$/', ], - 'user_mentions' => '/]*data-username="([^"]*)"[^>]*>([^<]+)<\/a>/', + 'user_mentions' => '/]*data-username="([^"]*)"[^>]*>([^<]+)<\/a>/', - 'website' => '/https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.(?[^\s]{1,})/m', + 'website' => '/https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.(?[^\s]{1,})/m', - 'www_url_prefix' => '/^www\./', + 'www_url_prefix' => '/^www\./', ], ]; diff --git a/config/share.php b/config/share.php index e96a21407..fbf209c48 100644 --- a/config/share.php +++ b/config/share.php @@ -17,11 +17,11 @@ 'facebook' => [ 'uri' => 'https://www.facebook.com/sharer/sharer.php', ], - 'twitter' => [ + 'twitter' => [ 'uri' => 'https://twitter.com/intent/tweet', 'text' => 'Default share text', ], - 'reddit' => [ + 'reddit' => [ 'uri' => 'https://www.reddit.com/submit', 'text' => 'Default share text', ], diff --git a/config/ui.php b/config/ui.php index af6063ee0..e49c2f55e 100644 --- a/config/ui.php +++ b/config/ui.php @@ -3,7 +3,7 @@ declare(strict_types=1); return [ - 'wysiwyg' => [ + 'wysiwyg' => [ 'folder' => 'wysiwyg', 'disk' => 'public', ], @@ -17,12 +17,12 @@ /* * Upload image validation. */ - 'upload' => [ + 'upload' => [ /* * Validation applied to a single image upload component. */ - 'image-single' => [ - 'accept-mime' => 'image/jpg,image/jpeg,image/png,jpg,png', + 'image-single' => [ + 'accept-mime' => 'image/jpg,image/jpeg,image/png,jpg,png', // This filesize is used in the backend validation. // Keep in mind that the image is compressed in the frontend component // and it will be always less than this value. @@ -39,7 +39,7 @@ * Validation applied to a multiple images upload component. */ 'image-collection' => [ - 'accept-mime' => 'image/jpg,image/jpeg,image/png,jpg,png', + 'accept-mime' => 'image/jpg,image/jpeg,image/png,jpg,png', // This filesize is used in the backend validation. // Keep in mind that the image is compressed in the frontend component // and it will be always less than this value. @@ -53,7 +53,7 @@ ], ], - 'dark-mode' => [ + 'dark-mode' => [ 'enabled' => env('DARK_MODE_ENABLED', false), ], ]; diff --git a/icons.html b/icons.html index b553b6cf0..df0ef14b2 100644 --- a/icons.html +++ b/icons.html @@ -8,7 +8,7 @@ brands/solid/linkedin
brands/solid/reddit
brands/solid/slack
brands/solid/telegram
brands/solid/twitter
brands/solid/youtube
brands/telegram
brands/tiktok
brands/twitter
brands/weibo
brands/windows
brands/youtube-shorts-outline
brands/youtube-shorts
brands/youtube
calendar
cards
categories
category
chain
chart-pie
check-mark-bold
check-mark-box
check-mark-small
check-mark
circle/arrow-down
circle/check-mark-big
circle/check-mark-pencil
circle/check-mark
circle/clock-big
circle/cross-big
circle/cross
circle/exclamation-mark-big
circle/exclamation-mark
circle/forward-big
circle/forward
circle/hand-big
circle/hand
circle/info
circle/lock
circle/min
circle/open-plus-inside
circle/open-plus-outside
circle/pause-big
circle/pause
circle/play-big
circle/play
circle/plus
circle/question-mark-big
circle/question-mark
circle/search
circle/shopping-cart-pointer
-circle/spinner
circle/stop-big
circle/stop
circle/update
clock-ban
clock-pencil
clock
cloud-arrow-up
cloud
code
connection
controller
copy-key
copy
core
credit-card
cross-small
cross
dash
developer-tools
dollar-sign
double-check-mark
+circle/spinner
circle/stop-big
circle/stop
circle/update
clock-ban
clock-pencil
clock
cloud-arrow-up
cloud
code
coins-stack
connection
controller
copy-key
copy
core
credit-card
cross-small
cross
dash
developer-tools
dollar-sign
double-check-mark
drag
ellipsis-vertical
enter
envelope
exchanges
exclamation-mark-small
exit
explorer
eye-slash
eye
fat-arrow-right
file-coins
file-colored
file-dw
file-dwe
file-js
file-json
file-key
file-lines
file
fire
flag
folder-home
forward
gear
gem
globe-line
globe-pointer
globe-wallet
globe
glossary
governance
grid-menu
grid
H1
H2
H3
H4
H5
H6
hammer
hand-point-up
hand-swipe
hand-touch
hand
hands-holding-document
hard-drive
hash
health-fitness
hint-small
id
identity
diff --git a/rector.php b/rector.php index 6419297a2..c9220f657 100644 --- a/rector.php +++ b/rector.php @@ -54,7 +54,7 @@ $rectorConfig->phpVersion(PhpVersion::PHP_81); $rectorConfig->importNames(); - $rectorConfig->disableImportShortClasses(); + $rectorConfig->importShortClasses(false); if (file_exists($neon = $dir.'/vendor/arkecosystem/foundation/phpstan.neon')) { $rectorConfig->phpstanConfig($neon); diff --git a/resources/assets/css/_components.css b/resources/assets/css/_components.css index 9095ada35..942973b0f 100644 --- a/resources/assets/css/_components.css +++ b/resources/assets/css/_components.css @@ -9,7 +9,9 @@ } .dropdown-entry, -.rich-select-dropdown-entry:not(.rich-select-dropdown-entry-selected):not(.rich-select-dropdown-entry-hover) { +.rich-select-dropdown-entry:not(.rich-select-dropdown-entry-selected):not( + .rich-select-dropdown-entry-hover + ) { @apply text-theme-secondary-900 bg-white dark:text-theme-secondary-200 dark:bg-theme-secondary-800; } diff --git a/resources/lang/en/actions.php b/resources/lang/en/actions.php index f7f9c71eb..3e464bc9a 100644 --- a/resources/lang/en/actions.php +++ b/resources/lang/en/actions.php @@ -3,33 +3,33 @@ declare(strict_types=1); return [ - 'discord' => 'Discord', - 'documentation' => 'Documentation', - 'send' => 'Send', - 'view_all' => 'View all', - 'save' => 'Save', - 'hide' => 'Hide', - 'show' => 'Show', - 'show_less' => 'Show Less', - 'read_more' => 'Read More', - 'back' => 'Back', - 'open' => 'Open', - 'close' => 'Close', - 'dark_theme' => 'Dark Theme', - 'follow_link' => 'Follow Link', - 'contact' => 'Contact', + 'discord' => 'Discord', + 'documentation' => 'Documentation', + 'send' => 'Send', + 'view_all' => 'View all', + 'save' => 'Save', + 'hide' => 'Hide', + 'show' => 'Show', + 'show_less' => 'Show Less', + 'read_more' => 'Read More', + 'back' => 'Back', + 'open' => 'Open', + 'close' => 'Close', + 'dark_theme' => 'Dark Theme', + 'follow_link' => 'Follow Link', + 'contact' => 'Contact', // Blog - 'apply' => 'Apply', - 'reset' => 'Reset', - 'edit_article' => 'Edit Article', + 'apply' => 'Apply', + 'reset' => 'Reset', + 'edit_article' => 'Edit Article', // Hermes - 'mark_all_as_read' => 'Mark all as read', - 'show_all' => 'Show all', - 'open_notifications' => 'Open notifications', - 'reset_filters' => 'Reset filters', - 'view' => 'View', + 'mark_all_as_read' => 'Mark all as read', + 'show_all' => 'Show all', + 'open_notifications' => 'Open notifications', + 'reset_filters' => 'Reset filters', + 'view' => 'View', // Fortify 'disable' => 'Disable', @@ -58,12 +58,12 @@ 'confirm' => 'Confirm', 'resend_email_verification' => 'click here to request another', - 'drag_to_reposition' => 'Drag to reposition', - 'upload_file' => 'Upload a file', - 'enter_the_page' => 'Enter the page', - 'enter_the_page_number' => 'Enter the page number', + 'drag_to_reposition' => 'Drag to reposition', + 'upload_file' => 'Upload a file', + 'enter_the_page' => 'Enter the page', + 'enter_the_page_number' => 'Enter the page number', - 'docs' => [ + 'docs' => [ 'edit_page' => 'Edit Page', 'share' => 'Share', ], diff --git a/resources/lang/en/auth.php b/resources/lang/en/auth.php index 26aec30b1..a6f25ecaa 100644 --- a/resources/lang/en/auth.php +++ b/resources/lang/en/auth.php @@ -7,37 +7,37 @@ 'page_header' => 'Confirm Password', ], - 'forgot-password' => [ + 'forgot-password' => [ 'page_header' => 'Password Reset Email', 'reset_link' => 'Send Reset Link', ], - 'sign-in' => [ + 'sign-in' => [ 'forgot_password' => 'Forgot password?', 'register_now' => 'Not a member? Sign up', 'remember_me' => 'Remember Me', ], - 'register-form' => [ + 'register-form' => [ 'conditions' => 'I accept the Terms of Service and Privacy Policy.', 'create_account' => 'Create Account', 'already_member' => 'Already have an account? Sign in', ], - 'register' => [ + 'register' => [ 'page_header' => 'Sign Up', ], - 'reset-password' => [ + 'reset-password' => [ 'page_header' => 'Reset Password', ], - 'two-factor' => [ + 'two-factor' => [ 'page_header' => '2FA Authentication', 'page_description' => 'Enter your 2FA or recovery code below to sign in.', ], - 'verify' => [ + 'verify' => [ 'page_header' => 'Verify Your Email Address', 'link_description' => 'A verification link has been sent to your email address.', 'line_1' => 'Before proceeding, please check your email for a verification link.', diff --git a/resources/lang/en/forms.php b/resources/lang/en/forms.php index b20ce752c..2fce7947e 100644 --- a/resources/lang/en/forms.php +++ b/resources/lang/en/forms.php @@ -15,7 +15,7 @@ 'min' => 'min', ], - 'upload-image' => [ + 'upload-image' => [ 'upload_image' => 'Upload Image', 'delete_image' => 'Delete Image', 'min_size' => 'Min :0 x :1', @@ -23,34 +23,34 @@ 'upload_error' => 'Failed to upload image. Image size cannot be greater than 2MB and must be of type jpeg, png or svg.', ], - 'upload-image-collection' => [ + 'upload-image-collection' => [ 'drag_drop_browse' => ' Browse Files', 'delete_image' => 'Delete Image', 'requirements' => 'Min size :width x :height. Max filesize :filesize. Max :quantity images', ], // Fortify - 'confirm_password' => 'Confirm Password', - 'current_password' => 'Current Password', - 'email_address' => 'Email Address', - 'email' => 'Email', - 'name' => 'Name', - 'your_password' => 'Your Password', - 'new_password' => 'New Password', - 'password' => 'Password', - 'username' => 'Username', - 'display_name' => 'Display Name', - 'code' => 'Code', - '2fa_code' => '2FA Verification Code', - 'recovery_code' => 'Recovery Code', - 'confirm_username' => 'Your Username', - 'optional' => 'optional', + 'confirm_password' => 'Confirm Password', + 'current_password' => 'Current Password', + 'email_address' => 'Email Address', + 'email' => 'Email', + 'name' => 'Name', + 'your_password' => 'Your Password', + 'new_password' => 'New Password', + 'password' => 'Password', + 'username' => 'Username', + 'display_name' => 'Display Name', + 'code' => 'Code', + '2fa_code' => '2FA Verification Code', + 'recovery_code' => 'Recovery Code', + 'confirm_username' => 'Your Username', + 'optional' => 'optional', - 'update-password' => [ + 'update-password' => [ 'requirements_notice' => 'Password must be 12–128 characters, and include a number, a symbol, a lower and an upper case letter.', ], - 'password-rules' => [ + 'password-rules' => [ 'lowercase' => 'One lowercase character', 'uppercase' => 'One uppercase character', 'numbers' => 'One number', @@ -59,33 +59,33 @@ 'leak' => 'No match in leaked database', ], - 'delete-user' => [ + 'delete-user' => [ 'title' => 'Delete Account', 'confirmation' => 'Deleting your account will also delete all Projects you own from MarketSquare, and these actions are permanent. Confirm this action by filling in your password below or click Cancel to go back.', 'confirmation_placeholder' => 'Enter your username to confirm deletion', ], - 'confirming-logout' => [ + 'confirming-logout' => [ 'title' => 'Logout Other Browser Sessions', 'content' => 'Please enter your password to confirm you would like to logout of your other browser sessions across all of your devices.', ], - 'upload-avatar' => [ + 'upload-avatar' => [ 'upload_avatar' => 'Upload Avatar', 'delete_avatar' => 'Delete Avatar', ], - 'feedback' => [ + 'feedback' => [ 'label' => 'Feedback', 'placeholder' => 'Provide feedback and help us...', ], - 'confirm-password' => [ + 'confirm-password' => [ 'title' => '2FA Recovery Codes', 'description' => 'Input your password to show your emergency two-factor recovery codes.', ], - 'disable-2fa' => [ + 'disable-2fa' => [ 'title' => 'Disable 2FA', 'description' => 'Input your password to disable the two-factor authentication method.', ], diff --git a/resources/lang/en/generic.php b/resources/lang/en/generic.php index 8e1d92cae..2ac91ff79 100644 --- a/resources/lang/en/generic.php +++ b/resources/lang/en/generic.php @@ -11,24 +11,24 @@ 'an' => 'An', 'type' => 'Type', - 'pagination' => [ + 'pagination' => [ 'current_to' => 'Page :currentPage of :lastPage', ], - 'upload' => [ + 'upload' => [ 'up_to' => 'up to :size :filesize', ], - 'filesize' => [ + 'filesize' => [ 'mb' => 'MB', ], - 'time' => [ + 'time' => [ 'hour' => '[0]|[1,*] :value hour', 'min' => '[0]|[1,*] :value min', ], - 'search' => [ + 'search' => [ 'no_results' => 'No results found. Refine your search and try again.', ], ]; diff --git a/resources/lang/en/mails.php b/resources/lang/en/mails.php index c50580055..03401281c 100644 --- a/resources/lang/en/mails.php +++ b/resources/lang/en/mails.php @@ -3,7 +3,7 @@ declare(strict_types=1); return [ - 'footer' => 'Regards,
:applicationName', + 'footer' => 'Regards,
:applicationName', 'feedback_subject' => 'Feedback', ]; diff --git a/resources/lang/en/markdown.php b/resources/lang/en/markdown.php index 730f40f29..b1fa8e9fa 100644 --- a/resources/lang/en/markdown.php +++ b/resources/lang/en/markdown.php @@ -32,27 +32,27 @@ ], ], 'modals' => [ - 'embedLink' => [ + 'embedLink' => [ 'title' => 'Add Embed Link', 'form' => [ 'url' => 'URL', 'caption' => 'Caption', ], ], - 'embedTweet' => [ + 'embedTweet' => [ 'title' => 'Embed Tweet', 'form' => [ 'url' => 'Tweet URL', 'url_placeholder' => 'https://twitter.com/arkecosystem/status/20', ], ], - 'embedPodcast' => [ + 'embedPodcast' => [ 'title' => 'Embed Simplecast Podcast', 'form' => [ 'url' => 'Simplecast URL or ID', ], ], - 'embedYoutube' => [ + 'embedYoutube' => [ 'title' => 'Embed YouTube video', 'form' => [ 'url' => 'Youtube URL or Video ID', @@ -65,13 +65,13 @@ 'path' => 'Path', ], ], - 'pageReference' => [ + 'pageReference' => [ 'title' => 'Add Page Reference', 'form' => [ 'url' => 'Reference path or URL', ], ], - 'image' => [ + 'image' => [ 'title' => 'Insert Image', 'form' => [ 'source' => 'Select image source', @@ -83,14 +83,14 @@ 'file_restrictions' => 'Max size :maxSize', ], ], - 'link' => [ + 'link' => [ 'title' => 'Embed link', 'form' => [ 'url' => 'URL', 'text' => 'Link Text', ], ], - 'alert' => [ + 'alert' => [ 'title' => 'Add Alert', 'form' => [ 'type' => 'Alert type', @@ -100,7 +100,7 @@ 'warning' => 'Warning', 'danger' => 'Danger', ], - 'text' => 'Alert text', + 'text' => 'Alert text', ], ], ], diff --git a/resources/lang/en/menus.php b/resources/lang/en/menus.php index 111dc3c44..3def506e1 100644 --- a/resources/lang/en/menus.php +++ b/resources/lang/en/menus.php @@ -3,9 +3,9 @@ declare(strict_types=1); return [ - 'menu' => 'Menu', + 'menu' => 'Menu', - 'notifications' => [ + 'notifications' => [ 'no_notifications' => 'You have no notifications at this time.', 'no_filtered_notifications' => 'You have no :filter notifications at this time.', ], diff --git a/resources/lang/en/pages.php b/resources/lang/en/pages.php index 89fb883b0..60bd859a7 100644 --- a/resources/lang/en/pages.php +++ b/resources/lang/en/pages.php @@ -3,7 +3,7 @@ declare(strict_types=1); return [ - 'contact' => [ + 'contact' => [ 'title' => 'Contact Us', 'subtitle' => 'Have questions? Contact our team for additional support.', 'message_placeholder' => 'How can we help?', @@ -11,20 +11,20 @@ 'title' => 'Contact Our Team', 'description' => 'We\'d be happy to answer your questions.', ], - 'let_us_help' => [ + 'let_us_help' => [ 'title' => 'Let Us Help!', 'description' => 'Whether you want to learn more about ARK, need help with your Blockchain, or just want to know how ARK technology could work for you, take a look at our extensive documentation that answers many of the questions.', ], - 'additional_support' => [ + 'additional_support' => [ 'title' => 'Additional Support', 'description' => 'Need more help? You can contact our support team and we can work on resolving your issue or request directly.', ], - 'social' => [ + 'social' => [ 'subtitle' => 'We\'re on social networks', ], ], - 'extended-footer' => [ + 'extended-footer' => [ 'contact' => [ 'placeholder' => 'How can we help?', 'title' => 'Contact Our Team', @@ -35,12 +35,12 @@ ], // Hermes - 'notifications' => [ + 'notifications' => [ 'page_title' => 'Notifications', ], // Fortify - 'user-settings' => [ + 'user-settings' => [ '2fa_title' => 'Two-Factor Authentication', '2fa_description' => 'You can update your security settings below. We recommend using 2FA for all users.', '2fa_enabled_title' => 'You have enabled two-factor authentication', @@ -75,7 +75,7 @@ 'home_page' => 'Return Home', ], - 'logout-sessions' => [ + 'logout-sessions' => [ 'title' => 'Browser Sessions', 'description' => 'Manage and logout your active sessions on other browsers and devices. Your most recent sessions are shown below.', 'content' => 'If necessary, you may logout of all of your other browser sessions across all of your devices. If you feel your account has been compromised, you should also update your password', @@ -86,7 +86,7 @@ 'last_active' => 'Last Active', ], - 'blog' => [ + 'blog' => [ 'read' => 'read', 'related' => 'Latest Articles', 'no_results' => 'We could not find any articles matching your search criteria, please try again!', @@ -104,7 +104,7 @@ 'category' => 'Category', ], - 'footer' => [ + 'footer' => [ 'rights' => 'All rights reserved', 'made_with_love' => 'Made with ♥ by', ], diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index 28f71979b..155ed5af8 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -3,18 +3,18 @@ declare(strict_types=1); return [ - 'custom' => [ + 'custom' => [ 'max_markdown_chars' => 'The text may not be greater than :max characters.', 'invalid_tag' => 'Only letters and numbers are allowed, the tag must start with a letter and must be between 3 and 30 characters.', ], - 'extended-footer-contact' => [ + 'extended-footer-contact' => [ 'required' => 'This field is required.', 'max' => 'Please keep this field under :max characters.', 'email' => 'This field must be a valid e-mail address.', ], - 'tag' => [ + 'tag' => [ 'special_character_start' => 'The tag must start with a letter.', 'special_character_end' => 'The tag must end with a letter.', 'consecutive_special_characters' => 'The tag must not contain consecutive special characters.', @@ -31,14 +31,14 @@ 'password_leaked' => 'Your password appears to have been leaked.', 'password_current' => 'You cannot use your existing password.', - 'messages' => [ + 'messages' => [ 'one_time_password' => 'We were not able to enable two-factor authentication with this one-time password.', 'some_special_characters' => "The :attribute can only contain letters, numbers and . & - , '", 'include_letters' => 'The :attribute needs at least one letter', 'start_with_letter_or_number' => 'The :attribute must start with a letter or a number', 'unique_case_insensitive' => 'The :attribute has already been taken.', - 'username' => [ + 'username' => [ 'special_character_start' => 'Username must not start or end with special characters', 'special_character_end' => 'Username must not start or end with special characters', 'consecutive_special_characters' => 'Username must not contain consecutive special characters', @@ -51,11 +51,11 @@ ], // Social Rules - 'social' => [ - 'video' => [ + 'social' => [ + 'video' => [ 'url' => 'The given video URL is not properly formatted. A valid URL must start with http[s]://', ], - 'website' => [ + 'website' => [ 'url' => 'The given website URL is not properly formatted. A valid URL must start with http[s]://', ], 'bitbucket_url' => 'The given URL is not a valid Bitbucket URL', diff --git a/src/Fortify/Actions/CreateNewUser.php b/src/Fortify/Actions/CreateNewUser.php index 63b1a742e..6bfb91f2f 100644 --- a/src/Fortify/Actions/CreateNewUser.php +++ b/src/Fortify/Actions/CreateNewUser.php @@ -54,7 +54,7 @@ public function create(array $input) public static function createValidationRules(): array { $rules = [ - 'name' => [ + 'name' => [ 'required', 'max:'.Constants::MAX_DISPLAY_NAME_CHARACTERS, 'min:'.Constants::MIN_DISPLAY_NAME_CHARACTERS, diff --git a/src/Providers/CommonMarkServiceProvider.php b/src/Providers/CommonMarkServiceProvider.php index 3ea103c18..323317674 100644 --- a/src/Providers/CommonMarkServiceProvider.php +++ b/src/Providers/CommonMarkServiceProvider.php @@ -226,7 +226,7 @@ private function getConfiguration(): array private function getDefaultConfiguration(): array { return [ - 'external_link' => [ + 'external_link' => [ 'internal_hosts' => config('app.url'), 'open_in_new_window' => true, 'html_class' => 'external-link', @@ -242,7 +242,7 @@ private function getDefaultConfiguration(): array 'title' => 'Permalink', 'symbol' => '#', ], - 'slug_normalizer' => [ + 'slug_normalizer' => [ 'instance' => new SlugNormalizer(), ], ]; diff --git a/src/UserInterface/Components/UploadImageCollection.php b/src/UserInterface/Components/UploadImageCollection.php index 2a0657378..aa8fdd75e 100644 --- a/src/UserInterface/Components/UploadImageCollection.php +++ b/src/UserInterface/Components/UploadImageCollection.php @@ -75,8 +75,8 @@ public function validateImageCollection(): bool public function imageCollectionValidators(): array { return [ - 'imageCollection' => ['array', 'max:'.$this->getImageCollectionMaxQuantity()], - 'temporaryImages' => function ($attribute, $value, $fail) { + 'imageCollection' => ['array', 'max:'.$this->getImageCollectionMaxQuantity()], + 'temporaryImages' => function ($attribute, $value, $fail) { $max = $this->getImageCollectionMaxQuantity(); if (count($value) + count($this->imageCollection) > $max) { diff --git a/tests/DataBags/Resolvers/GlobResolverTest.php b/tests/DataBags/Resolvers/GlobResolverTest.php index 21fa43fb3..65f1c05c8 100644 --- a/tests/DataBags/Resolvers/GlobResolverTest.php +++ b/tests/DataBags/Resolvers/GlobResolverTest.php @@ -21,7 +21,7 @@ 'posts/*' => [ 'title' => 'Hello World', ], - '*' => [ + '*' => [ 'title' => 'Any', ], ]); diff --git a/tests/DataBags/Resolvers/RegexResolverTest.php b/tests/DataBags/Resolvers/RegexResolverTest.php index f41e9cd2c..737a0102f 100644 --- a/tests/DataBags/Resolvers/RegexResolverTest.php +++ b/tests/DataBags/Resolvers/RegexResolverTest.php @@ -21,7 +21,7 @@ '|(posts/hello-*)|' => [ 'title' => 'Hello World', ], - '/(.*)/' => [ + '/(.*)/' => [ 'title' => 'Any', ], ]); diff --git a/tests/UserInterface/Livewire/DropInvalidLivewireRequestsTest.php b/tests/UserInterface/Livewire/DropInvalidLivewireRequestsTest.php index 4a4b3570e..4f3273381 100644 --- a/tests/UserInterface/Livewire/DropInvalidLivewireRequestsTest.php +++ b/tests/UserInterface/Livewire/DropInvalidLivewireRequestsTest.php @@ -44,7 +44,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], @@ -70,7 +70,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], @@ -96,7 +96,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], @@ -122,7 +122,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => '', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], @@ -148,7 +148,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], @@ -174,7 +174,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => '', 'htmlHash' => 'some-hash', ], @@ -200,7 +200,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => '', ], @@ -241,11 +241,11 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], - 'updates' => [ + 'updates' => [ [ 'payload' => [], 'type' => 'somethingRandom', @@ -256,7 +256,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-event-id', 'params' => 'test', ], - 'type' => 'fireEvent', + 'type' => 'fireEvent', ], [ 'payload' => [ @@ -264,7 +264,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-event-id-2', 'params' => 'test', ], - 'type' => 'fireEvent', + 'type' => 'fireEvent', ], ], ]); @@ -292,11 +292,11 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], - 'updates' => [ + 'updates' => [ [ 'payload' => [], 'type' => 'somethingRandom', @@ -307,7 +307,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-event-id', 'params' => 'test', ], - 'type' => 'fireEvent', + 'type' => 'fireEvent', ], [ 'payload' => [ @@ -315,7 +315,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-event-id-2', 'params' => 'test', ], - 'type' => 'fireEvent', + 'type' => 'fireEvent', ], ], ]); @@ -343,11 +343,11 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], - 'updates' => [ + 'updates' => [ [ 'payload' => [], 'type' => 'somethingRandom', @@ -358,7 +358,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-event-id', 'params' => 'test', ], - 'type' => 'fireEvent', + 'type' => 'fireEvent', ], ], ]); @@ -385,11 +385,11 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], - 'updates' => [ + 'updates' => [ [ 'payload' => [], 'type' => 'somethingRandom', @@ -400,7 +400,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-event-id', 'params' => 'test', ], - 'type' => 'fireEvent', + 'type' => 'fireEvent', ], ], ]); @@ -427,11 +427,11 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], - 'updates' => [ + 'updates' => [ [ 'payload' => [], 'type' => 'somethingRandom', @@ -442,7 +442,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-method-id', 'params' => 'test', ], - 'type' => 'callMethod', + 'type' => 'callMethod', ], [ 'payload' => [ @@ -450,7 +450,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-method-id-2', 'params' => 'test', ], - 'type' => 'callMethod', + 'type' => 'callMethod', ], ], ]); @@ -478,11 +478,11 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'method' => 'POST', 'path' => '/dummy', ], - 'serverMemo' => [ + 'serverMemo' => [ 'checksum' => 'some-checksum', 'htmlHash' => 'some-hash', ], - 'updates' => [ + 'updates' => [ [ 'payload' => [], 'type' => 'somethingRandom', @@ -493,7 +493,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-method-id', 'params' => 'test', ], - 'type' => 'callMethod', + 'type' => 'callMethod', ], [ 'payload' => [ @@ -501,7 +501,7 @@ function mockRequest(string $routeName = 'testing::dummy', array $payload = []) 'id' => 'dummy-method-id-2', 'params' => 'test', ], - 'type' => 'callMethod', + 'type' => 'callMethod', ], ], ]); diff --git a/tests/UserInterface/Views/NavbarTest.php b/tests/UserInterface/Views/NavbarTest.php index 26211eaa7..3d1397986 100644 --- a/tests/UserInterface/Views/NavbarTest.php +++ b/tests/UserInterface/Views/NavbarTest.php @@ -14,8 +14,8 @@ $this ->actingAs(new User()) ->view('ark::navbar', createAttributes([ - 'title' => 'Explorer', - 'navigation' => [ + 'title' => 'Explorer', + 'navigation' => [ [ 'route' => 'home', 'label' => 'Home',