From 5776b01d15ba060a10e69d3dbbf8b8fbb2e89234 Mon Sep 17 00:00:00 2001 From: Shift Date: Sun, 19 Feb 2023 16:18:46 +0000 Subject: [PATCH] Apply Laravel coding style Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions. You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root. For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style). --- app/Actions/Fortify/CreateNewUser.php | 20 +- .../Fortify/PasswordValidationRules.php | 1 + .../Fortify/UpdateUserProfileInformation.php | 36 +- .../Commands/Database/CleanupLoginKeys.php | 3 + .../Commands/Database/CreatePermissions.php | 3 + app/Console/Commands/Database/CreateTags.php | 3 + .../Commands/Database/FillUserEmails.php | 5 +- .../Commands/Database/ImportGithubMeetups.php | 15 +- .../Commands/Database/MigrateMeetupSlugs.php | 3 + .../Commands/Database/RenameFileToMd5.php | 3 + .../Commands/Database/SetReputation.php | 3 + .../Commands/Database/SyncGithubMeetups.php | 9 +- .../Commands/Feed/ReadAndSyncPodcastFeeds.php | 17 +- .../Commands/Map/CreateGeoJsonPolygon.php | 3 + .../Commands/OpenBooks/SyncOpenBooks.php | 34 +- .../Commands/Parse/ImportLibraryItems.php | 144 ++--- app/Console/Kernel.php | 5 +- app/Enums/LibraryItemType.php | 28 +- app/Events/ChatMessageSentEvent.php | 2 + app/Events/PlebLoggedInEvent.php | 2 + app/Gamify/Points/BookCaseOrangePilled.php | 2 + .../Controllers/Api/LanguageController.php | 18 +- .../Controllers/Api/LecturerController.php | 14 +- app/Http/Controllers/Api/MeetupController.php | 13 +- .../DownloadBitcoinEventCalendar.php | 1 - .../Controllers/DownloadMeetupCalendar.php | 1 - app/Http/Controllers/ImageController.php | 9 +- app/Http/Kernel.php | 23 +- app/Http/Livewire/Auth/Auth47Component.php | 1 + app/Http/Livewire/Auth/LNUrlAuth.php | 3 + .../BitcoinEvent/BitcoinEventTable.php | 44 +- app/Http/Livewire/BookCase/BookCaseTable.php | 18 +- app/Http/Livewire/BookCase/CityTable.php | 2 +- .../Livewire/BookCase/CommentBookCase.php | 8 +- .../Livewire/BookCase/Form/OrangePillForm.php | 19 +- app/Http/Livewire/BookCase/Heatmap.php | 4 +- app/Http/Livewire/BookCase/HighscoreTable.php | 4 +- app/Http/Livewire/BookCase/WorldMap.php | 8 +- app/Http/Livewire/Chat/HighscoreChat.php | 13 +- app/Http/Livewire/City/Form/CityForm.php | 10 +- .../Form/ContentCreatorForm.php | 27 +- app/Http/Livewire/Frontend/Footer.php | 2 +- app/Http/Livewire/Frontend/Header.php | 7 +- app/Http/Livewire/Frontend/Welcome.php | 5 +- app/Http/Livewire/LaravelEcho.php | 10 +- .../Livewire/Library/Form/LibraryItemForm.php | 49 +- app/Http/Livewire/Library/LibraryTable.php | 34 +- .../Livewire/Library/SearchByTagComponent.php | 7 +- .../Livewire/Meetup/Form/MeetupEventForm.php | 33 +- app/Http/Livewire/Meetup/LandingPage.php | 16 +- app/Http/Livewire/Meetup/LandingPageEvent.php | 51 +- app/Http/Livewire/Meetup/MeetupEventTable.php | 41 +- app/Http/Livewire/Meetup/MeetupTable.php | 12 +- .../Livewire/Meetup/PrepareForBtcMapItem.php | 22 +- app/Http/Livewire/Meetup/WorldMap.php | 11 +- app/Http/Livewire/News/ArticleOverview.php | 6 +- .../Livewire/News/Form/NewsArticleForm.php | 37 +- app/Http/Livewire/News/InternArticleView.php | 4 +- app/Http/Livewire/Profile/Meetups.php | 6 +- app/Http/Livewire/School/CityTable.php | 2 +- app/Http/Livewire/School/CourseTable.php | 2 +- app/Http/Livewire/School/EventTable.php | 40 +- .../Livewire/School/LecturerLandingPage.php | 16 +- app/Http/Livewire/School/LecturerTable.php | 2 +- .../Livewire/School/SearchByTagComponent.php | 1 + app/Http/Livewire/School/VenueTable.php | 2 +- .../Livewire/Tables/BitcoinEventTable.php | 24 +- app/Http/Livewire/Tables/BookCaseTable.php | 29 +- app/Http/Livewire/Tables/CityTable.php | 43 +- app/Http/Livewire/Tables/CourseTable.php | 33 +- app/Http/Livewire/Tables/EventTable.php | 43 +- app/Http/Livewire/Tables/LecturerTable.php | 31 +- app/Http/Livewire/Tables/LibraryItemTable.php | 33 +- app/Http/Livewire/Tables/MeetupEventTable.php | 20 +- .../Livewire/Tables/MeetupForBtcMapTable.php | 12 +- app/Http/Livewire/Tables/MeetupTable.php | 25 +- app/Http/Livewire/Tables/VenueTable.php | 26 +- .../Middleware/CustomEnsureEmailVerified.php | 7 +- app/Http/Middleware/NeedMeetupMiddleware.php | 3 - .../SetTimezoneForNovaMiddleware.php | 1 - app/Http/Middleware/SetTimezoneMiddleware.php | 5 +- app/Listeners/AddLoginReputation.php | 2 +- app/Models/BitcoinEvent.php | 10 +- app/Models/BookCase.php | 13 +- app/Models/Category.php | 2 + app/Models/City.php | 14 +- app/Models/Country.php | 4 +- app/Models/Course.php | 6 +- app/Models/CourseEvent.php | 12 +- app/Models/Episode.php | 8 +- app/Models/Lecturer.php | 11 +- app/Models/Library.php | 9 +- app/Models/LibraryItem.php | 10 +- app/Models/LoginKey.php | 2 + app/Models/Meetup.php | 21 +- app/Models/MeetupEvent.php | 14 +- app/Models/Membership.php | 1 + app/Models/OrangePill.php | 8 +- app/Models/Participant.php | 2 + app/Models/Podcast.php | 6 +- app/Models/Registration.php | 8 +- app/Models/Scopes/ActiveBookCases.php | 1 - app/Models/Team.php | 3 + app/Models/TeamInvitation.php | 2 + app/Models/User.php | 7 +- app/Models/Venue.php | 8 +- .../ModelCreatedNotification.php | 4 +- .../Actions/AttachLibraryItemToLibrary.php | 2 - app/Nova/Actions/SetStatusAction.php | 6 +- app/Nova/BitcoinEvent.php | 14 +- app/Nova/BookCase.php | 9 +- app/Nova/Category.php | 8 +- app/Nova/City.php | 9 +- app/Nova/Comment.php | 5 +- app/Nova/Country.php | 8 +- app/Nova/Course.php | 13 +- app/Nova/CourseEvent.php | 13 +- app/Nova/Dashboards/Main.php | 1 + app/Nova/Episode.php | 27 +- app/Nova/Filters/LibraryItemWithout.php | 6 +- app/Nova/Language.php | 11 +- app/Nova/Lecturer.php | 15 +- app/Nova/Library.php | 9 +- app/Nova/LibraryItem.php | 33 +- app/Nova/Meetup.php | 14 +- app/Nova/MeetupEvent.php | 11 +- app/Nova/OrangePill.php | 10 +- app/Nova/Participant.php | 8 +- app/Nova/Podcast.php | 10 +- app/Nova/Registration.php | 4 +- app/Nova/Team.php | 10 +- app/Nova/User.php | 9 +- app/Nova/Venue.php | 8 +- app/Observers/BitcoinEventObserver.php | 5 - app/Observers/CourseEventObserver.php | 5 - app/Observers/CourseObserver.php | 5 - app/Observers/EpisodeObserver.php | 7 +- app/Observers/EventObserver.php | 5 - app/Observers/LibraryItemObserver.php | 11 +- app/Observers/MeetupEventObserver.php | 5 - app/Observers/MeetupObserver.php | 5 - app/Observers/OrangePillObserver.php | 5 - app/Policies/BasePolicy.php | 1 - app/Policies/BitcoinEventPolicy.php | 7 - app/Policies/BookCasePolicy.php | 7 - app/Policies/CourseEventPolicy.php | 5 - app/Policies/EpisodePolicy.php | 7 - app/Policies/LecturerPolicy.php | 7 - app/Policies/LibraryPolicy.php | 7 - app/Policies/MeetupPolicy.php | 7 - app/Policies/OrangePillPolicy.php | 7 - app/Policies/ParticipantPolicy.php | 10 +- app/Policies/PermissionPolicy.php | 7 - app/Policies/PodcastPolicy.php | 8 +- app/Policies/RegistrationPolicy.php | 9 +- app/Policies/TeamPolicy.php | 8 - app/Policies/VenuePolicy.php | 7 - app/Providers/AppServiceProvider.php | 6 +- app/Providers/AuthServiceProvider.php | 6 +- app/Providers/EventServiceProvider.php | 5 +- app/Providers/JetstreamServiceProvider.php | 4 +- app/Providers/NovaServiceProvider.php | 37 +- app/Providers/RouteServiceProvider.php | 3 + app/Rules/UniqueAttendeeName.php | 5 +- app/Support/Carbon.php | 7 +- app/Traits/TwitterTrait.php | 6 +- config/broadcasting.php | 20 +- config/comments.php | 18 +- config/countries/emoji_flags.php | 503 +++++++++--------- config/feeds/services.php | 4 +- config/fortify.php | 12 +- config/gamify.php | 46 +- config/horizon.php | 32 +- config/ignition.php | 4 +- config/jetstream.php | 4 +- config/languages/languages.php | 2 +- config/nova.php | 8 +- config/services.php | 15 +- config/tags.php | 2 +- config/tags/tags.php | 74 +-- config/translation.php | 10 +- config/wireui.php | 16 +- database/factories/BitcoinEventFactory.php | 3 +- database/factories/BookCaseFactory.php | 3 +- database/factories/CategoryFactory.php | 3 +- database/factories/CityFactory.php | 3 +- database/factories/CountryFactory.php | 3 +- database/factories/CourseFactory.php | 3 +- database/factories/EpisodeFactory.php | 3 +- database/factories/EventFactory.php | 3 +- database/factories/LecturerFactory.php | 3 +- database/factories/LibraryFactory.php | 3 +- database/factories/LibraryItemsFactory.php | 3 +- database/factories/MeetupEventFactory.php | 3 +- database/factories/MeetupFactory.php | 3 +- database/factories/OrangePillFactory.php | 3 +- database/factories/ParticipantFactory.php | 3 +- database/factories/PodcastFactory.php | 3 +- database/factories/RegistrationFactory.php | 3 +- database/factories/VenueFactory.php | 3 +- .../2014_10_12_000000_create_users_table.php | 5 +- ..._05_21_300000_create_permission_tables.php | 5 +- ...22_12_01_145948_create_countries_table.php | 2 + .../2022_12_01_145949_create_cities_table.php | 2 + ...2_12_01_180529_create_login_keys_table.php | 5 +- ..._210526_add_geo_fields_to_cities_table.php | 5 +- ...3043_add_timezone_field_to_users_table.php | 5 +- .../2022_12_02_162000_create_trix_tables.php | 6 +- ...d_description_field_to_lecturers_table.php | 5 +- ...add_description_field_to_courses_table.php | 5 +- ..._add_link_field_to_course_events_table.php | 5 +- ...022_12_04_154911_create_podcasts_table.php | 2 + ...022_12_04_154912_create_episodes_table.php | 2 + ...22_12_05_160932_create_libraries_table.php | 2 + ...2_05_160933_create_library_items_table.php | 2 + ...5957_create_library_library_item_table.php | 2 + ...2_12_06_222651_create_book_cases_table.php | 2 + ...22_12_07_122722_create_comments_tables.php | 6 +- ...2_12_155929_create_meetup_events_table.php | 2 + ..._12_171115_create_bitcoin_events_table.php | 2 + ...create_created_by_fields_on_all_tables.php | 5 +- ...orldwide_field_to_bitcoin_events_table.php | 5 +- ...02_add_english_name_to_countries_table.php | 5 +- ...136_add_coordinates_to_countries_table.php | 5 +- ...32_add_current_language_to_users_table.php | 5 +- ...805_add_reputation_field_on_user_table.php | 4 +- ...2023_01_14_185805_create_gamify_tables.php | 4 +- ...91356_add_slug_column_to_meetups_table.php | 5 +- ...landing_page_fields_to_lecturers_table.php | 5 +- ...d_landing_page_fields_to_meetups_table.php | 5 +- ...5_191946_create_twitter_accounts_table.php | 5 +- ..._token_field_to_twitter_accounts_table.php | 5 +- ...1_16_143622_add_links_to_meetups_table.php | 5 +- ..._change_telegram_link_on_meetups_table.php | 5 +- ...57_add_github_data_field_meetups_table.php | 5 +- ...142300_add_ln_addresses_to_users_table.php | 5 +- ...07_add_social_links_to_lecturers_table.php | 5 +- ...72630_update_ln_address_on_users_table.php | 5 +- ...add_parent_id_field_to_libraries_table.php | 5 +- ..._add_slug_field_to_library_items_table.php | 5 +- ...add_meta_fields_to_library_items_table.php | 5 +- ...dd_matrix_group_field_to_meetups_table.php | 5 +- ...22_add_ln_addresses_to_lecturers_table.php | 5 +- ..._115414_add_osm_fields_to_cities_table.php | 5 +- ...d_attend_fields_to_meetup_events_table.php | 5 +- ...4_add_community_field_to_meetups_table.php | 5 +- ..._approved_field_to_library_items_table.php | 5 +- ...6_add_news_flag_to_library_items_table.php | 5 +- ...add_tweet_field_to_library_items_table.php | 5 +- ...nge_tweet_field_to_library_items_table.php | 9 +- ...4_133446_add_nostr_field_meetups_table.php | 5 +- ...618_add_nostr_field_to_lecturers_table.php | 5 +- ...dd_comment_field_to_orange_pills_table.php | 5 +- ..._17_01_175957_create_meetup_user_table.php | 2 + database/seeders/DatabaseSeeder.php | 278 +++++----- resources/lang/de/Loading.php | 16 +- resources/lang/de/auth.php | 10 +- resources/lang/de/http-statuses.php | 160 +++--- resources/lang/de/pagination.php | 8 +- resources/lang/de/passwords.php | 14 +- resources/lang/de/trans.php | 8 +- resources/lang/de/validation.php | 414 +++++++------- resources/lang/en/Loading.php | 16 +- resources/lang/en/auth.php | 10 +- resources/lang/en/http-statuses.php | 160 +++--- resources/lang/en/pagination.php | 8 +- resources/lang/en/passwords.php | 14 +- resources/lang/en/trans.php | 8 +- resources/lang/en/validation.php | 422 +++++++-------- resources/lang/es/Loading.php | 16 +- resources/lang/es/auth.php | 10 +- resources/lang/es/http-statuses.php | 160 +++--- resources/lang/es/pagination.php | 8 +- resources/lang/es/passwords.php | 14 +- resources/lang/es/trans.php | 8 +- resources/lang/es/validation.php | 422 +++++++-------- resources/lang/fr/Loading.php | 16 +- resources/lang/fr/auth.php | 10 +- resources/lang/fr/http-statuses.php | 160 +++--- resources/lang/fr/pagination.php | 8 +- resources/lang/fr/passwords.php | 14 +- resources/lang/fr/trans.php | 8 +- resources/lang/fr/validation.php | 422 +++++++-------- resources/lang/hr/Loading.php | 16 +- resources/lang/hr/auth.php | 10 +- resources/lang/hr/http-statuses.php | 160 +++--- resources/lang/hr/pagination.php | 8 +- resources/lang/hr/passwords.php | 14 +- resources/lang/hr/trans.php | 8 +- resources/lang/hr/validation.php | 422 +++++++-------- resources/lang/it/Loading.php | 16 +- resources/lang/it/auth.php | 10 +- resources/lang/it/http-statuses.php | 160 +++--- resources/lang/it/pagination.php | 8 +- resources/lang/it/passwords.php | 14 +- resources/lang/it/trans.php | 8 +- resources/lang/it/validation.php | 422 +++++++-------- resources/lang/mk/Loading.php | 16 +- resources/lang/mk/auth.php | 10 +- resources/lang/mk/http-statuses.php | 160 +++--- resources/lang/mk/pagination.php | 8 +- resources/lang/mk/passwords.php | 14 +- resources/lang/mk/trans.php | 8 +- resources/lang/mk/validation.php | 422 +++++++-------- resources/lang/pl/Loading.php | 16 +- resources/lang/pl/auth.php | 10 +- resources/lang/pl/http-statuses.php | 160 +++--- resources/lang/pl/pagination.php | 8 +- resources/lang/pl/passwords.php | 14 +- resources/lang/pl/trans.php | 8 +- resources/lang/pl/validation.php | 422 +++++++-------- resources/lang/pt/Loading.php | 16 +- resources/lang/pt/auth.php | 10 +- resources/lang/pt/http-statuses.php | 160 +++--- resources/lang/pt/pagination.php | 8 +- resources/lang/pt/passwords.php | 14 +- resources/lang/pt/trans.php | 8 +- resources/lang/pt/validation.php | 422 +++++++-------- resources/lang/sv/Loading.php | 16 +- resources/lang/sv/auth.php | 8 +- resources/lang/sv/pagination.php | 8 +- resources/lang/sv/trans.php | 8 +- resources/lang/sv/validation.php | 8 +- resources/lang/tr/Loading.php | 16 +- resources/lang/tr/auth.php | 10 +- resources/lang/tr/http-statuses.php | 160 +++--- resources/lang/tr/pagination.php | 8 +- resources/lang/tr/passwords.php | 14 +- resources/lang/tr/trans.php | 8 +- resources/lang/tr/validation.php | 422 +++++++-------- routes/api.php | 66 +-- routes/web.php | 21 +- tests/Feature/PasswordConfirmationTest.php | 1 - 333 files changed, 4915 insertions(+), 4967 deletions(-) diff --git a/app/Actions/Fortify/CreateNewUser.php b/app/Actions/Fortify/CreateNewUser.php index 0bcbc3f0..714d302a 100644 --- a/app/Actions/Fortify/CreateNewUser.php +++ b/app/Actions/Fortify/CreateNewUser.php @@ -18,25 +18,24 @@ class CreateNewUser implements CreatesNewUsers * Create a newly registered user. * * @param array $input - * * @return \App\Models\User */ public function create(array $input) { Validator::make($input, [ - 'name' => ['required', 'string', 'max:255'], - 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], - 'password' => app()->environment('local') ? 'required' : $this->passwordRules(), - 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['accepted', 'required'] : '', + 'name' => ['required', 'string', 'max:255'], + 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], + 'password' => app()->environment('local') ? 'required' : $this->passwordRules(), + 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['accepted', 'required'] : '', 'is_lecturer' => ['required'], ]) ->validate(); return DB::transaction(function () use ($input) { return tap(User::create([ - 'name' => $input['name'], - 'email' => $input['email'], - 'password' => Hash::make($input['password']), + 'name' => $input['name'], + 'email' => $input['email'], + 'password' => Hash::make($input['password']), 'is_lecturer' => $input['is_lecturer'] === 'on', ]), function (User $user) { $this->createTeam($user); @@ -48,15 +47,14 @@ class CreateNewUser implements CreatesNewUsers * Create a personal team for the user. * * @param \App\Models\User $user - * * @return void */ protected function createTeam(User $user) { $user->ownedTeams() ->save(Team::forceCreate([ - 'user_id' => $user->id, - 'name' => explode(' ', $user->name, 2)[0]."'s Team", + 'user_id' => $user->id, + 'name' => explode(' ', $user->name, 2)[0]."'s Team", 'personal_team' => true, ])); } diff --git a/app/Actions/Fortify/PasswordValidationRules.php b/app/Actions/Fortify/PasswordValidationRules.php index 618ad40a..78ed8cfe 100644 --- a/app/Actions/Fortify/PasswordValidationRules.php +++ b/app/Actions/Fortify/PasswordValidationRules.php @@ -8,6 +8,7 @@ trait PasswordValidationRules { /** * Get the validation rules used to validate passwords. + * * @return array */ protected function passwordRules() diff --git a/app/Actions/Fortify/UpdateUserProfileInformation.php b/app/Actions/Fortify/UpdateUserProfileInformation.php index a39c3024..bab0dfc8 100644 --- a/app/Actions/Fortify/UpdateUserProfileInformation.php +++ b/app/Actions/Fortify/UpdateUserProfileInformation.php @@ -14,22 +14,21 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation * * @param mixed $user * @param array $input - * * @return void */ public function update($user, array $input) { Validator::make($input, [ - 'name' => ['required', 'string', 'max:255'], + 'name' => ['required', 'string', 'max:255'], 'lightning_address' => ['nullable', 'string'], - 'lnurl' => ['nullable', 'string'], - 'node_id' => ['nullable', 'string', 'max:66'], - 'timezone' => ['required', 'string'], - 'email' => [ + 'lnurl' => ['nullable', 'string'], + 'node_id' => ['nullable', 'string', 'max:66'], + 'timezone' => ['required', 'string'], + 'email' => [ 'nullable', 'email', 'max:255', Rule::unique('users') - ->ignore($user->id) + ->ignore($user->id), ], - 'photo' => ['nullable', 'mimes:jpg,jpeg,png,gif', 'max:10240'], + 'photo' => ['nullable', 'mimes:jpg,jpeg,png,gif', 'max:10240'], ]) ->validateWithBag('updateProfileInformation'); @@ -42,12 +41,12 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation $this->updateVerifiedUser($user, $input); } else { $user->forceFill([ - 'name' => $input['name'], + 'name' => $input['name'], 'lightning_address' => $input['lightning_address'], - 'lnurl' => $input['lnurl'], - 'node_id' => $input['node_id'], - 'email' => $input['email'], - 'timezone' => $input['timezone'], + 'lnurl' => $input['lnurl'], + 'node_id' => $input['node_id'], + 'email' => $input['email'], + 'timezone' => $input['timezone'], ]) ->save(); } @@ -58,18 +57,17 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation * * @param mixed $user * @param array $input - * * @return void */ protected function updateVerifiedUser($user, array $input) { $user->forceFill([ - 'name' => $input['name'], + 'name' => $input['name'], 'lightning_address' => $input['lightning_address'], - 'lnurl' => $input['lnurl'], - 'node_id' => $input['node_id'], - 'email' => $input['email'], - 'timezone' => $input['timezone'], + 'lnurl' => $input['lnurl'], + 'node_id' => $input['node_id'], + 'email' => $input['email'], + 'timezone' => $input['timezone'], 'email_verified_at' => null, ]) ->save(); diff --git a/app/Console/Commands/Database/CleanupLoginKeys.php b/app/Console/Commands/Database/CleanupLoginKeys.php index 9c417acb..f9ed3e3e 100644 --- a/app/Console/Commands/Database/CleanupLoginKeys.php +++ b/app/Console/Commands/Database/CleanupLoginKeys.php @@ -9,18 +9,21 @@ class CleanupLoginKeys extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'loginkeys:cleanup'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() diff --git a/app/Console/Commands/Database/CreatePermissions.php b/app/Console/Commands/Database/CreatePermissions.php index 425b9360..a2c1435b 100644 --- a/app/Console/Commands/Database/CreatePermissions.php +++ b/app/Console/Commands/Database/CreatePermissions.php @@ -8,18 +8,21 @@ class CreatePermissions extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'permissions:create'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() diff --git a/app/Console/Commands/Database/CreateTags.php b/app/Console/Commands/Database/CreateTags.php index f6c20103..87b1c4c9 100644 --- a/app/Console/Commands/Database/CreateTags.php +++ b/app/Console/Commands/Database/CreateTags.php @@ -9,18 +9,21 @@ class CreateTags extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'tags:create'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() diff --git a/app/Console/Commands/Database/FillUserEmails.php b/app/Console/Commands/Database/FillUserEmails.php index 8f8a9819..d2c80809 100644 --- a/app/Console/Commands/Database/FillUserEmails.php +++ b/app/Console/Commands/Database/FillUserEmails.php @@ -9,18 +9,21 @@ class FillUserEmails extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'users:emails'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() @@ -29,7 +32,7 @@ class FillUserEmails extends Command foreach ($users as $user) { // set email - if (!$user->email) { + if (! $user->email) { $user->email = str($user->public_key)->substr(-12).'@portal.einundzwanzig.space'; $user->save(); } diff --git a/app/Console/Commands/Database/ImportGithubMeetups.php b/app/Console/Commands/Database/ImportGithubMeetups.php index af05ec59..c53b0062 100644 --- a/app/Console/Commands/Database/ImportGithubMeetups.php +++ b/app/Console/Commands/Database/ImportGithubMeetups.php @@ -11,18 +11,21 @@ class ImportGithubMeetups extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'import:meetups'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() @@ -36,19 +39,19 @@ class ImportGithubMeetups extends Command 'country_id' => Country::firstOrCreate([ 'code' => str($meetup['country']) ->lower() - ->toString() + ->toString(), ], ['name' => $meetup['country']])->id, - 'longitude' => $meetup['longitude'], - 'latitude' => $meetup['latitude'], + 'longitude' => $meetup['longitude'], + 'latitude' => $meetup['latitude'], 'created_by' => 1, ]); $meetup = Meetup::updateOrCreate( ['name' => $meetup['name']], [ - 'city_id' => $city->id, - 'webpage' => $meetup['url'], + 'city_id' => $city->id, + 'webpage' => $meetup['url'], 'created_by' => 1, - 'community' => 'einundzwanzig' + 'community' => 'einundzwanzig', ]); } diff --git a/app/Console/Commands/Database/MigrateMeetupSlugs.php b/app/Console/Commands/Database/MigrateMeetupSlugs.php index 709c901c..14b5c196 100644 --- a/app/Console/Commands/Database/MigrateMeetupSlugs.php +++ b/app/Console/Commands/Database/MigrateMeetupSlugs.php @@ -9,18 +9,21 @@ class MigrateMeetupSlugs extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'meetups:slugs'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() diff --git a/app/Console/Commands/Database/RenameFileToMd5.php b/app/Console/Commands/Database/RenameFileToMd5.php index 601d8ff7..628ad8f9 100644 --- a/app/Console/Commands/Database/RenameFileToMd5.php +++ b/app/Console/Commands/Database/RenameFileToMd5.php @@ -10,18 +10,21 @@ class RenameFileToMd5 extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'files:md5'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() diff --git a/app/Console/Commands/Database/SetReputation.php b/app/Console/Commands/Database/SetReputation.php index da8855f4..7b8ba541 100644 --- a/app/Console/Commands/Database/SetReputation.php +++ b/app/Console/Commands/Database/SetReputation.php @@ -10,18 +10,21 @@ class SetReputation extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'reputation:set'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() diff --git a/app/Console/Commands/Database/SyncGithubMeetups.php b/app/Console/Commands/Database/SyncGithubMeetups.php index c24518b8..53b1bd7d 100644 --- a/app/Console/Commands/Database/SyncGithubMeetups.php +++ b/app/Console/Commands/Database/SyncGithubMeetups.php @@ -10,18 +10,21 @@ class SyncGithubMeetups extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'meetups:github-sync'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() @@ -42,9 +45,9 @@ class SyncGithubMeetups extends Command $this->info('Missing: '.$meetup['name'].' Url: '.$meetup['url']); if (app()->environment('local')) { Meetup::create([ - 'name' => $meetup['name'], - 'city_id' => 1, - 'created_by' => 1, + 'name' => $meetup['name'], + 'city_id' => 1, + 'created_by' => 1, 'github_data' => $meetup, ]); } diff --git a/app/Console/Commands/Feed/ReadAndSyncPodcastFeeds.php b/app/Console/Commands/Feed/ReadAndSyncPodcastFeeds.php index 0560f4fe..701c8ff1 100644 --- a/app/Console/Commands/Feed/ReadAndSyncPodcastFeeds.php +++ b/app/Console/Commands/Feed/ReadAndSyncPodcastFeeds.php @@ -11,25 +11,28 @@ class ReadAndSyncPodcastFeeds extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'feed:sync'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() { $client = new \PodcastIndex\Client([ - 'app' => 'Einundzwanzig School', - 'key' => config('feeds.services.podcastindex-org.key'), + 'app' => 'Einundzwanzig School', + 'key' => config('feeds.services.podcastindex-org.key'), 'secret' => config('feeds.services.podcastindex-org.secret'), ]); $feedIds = [ @@ -64,11 +67,11 @@ class ReadAndSyncPodcastFeeds extends Command $this->info('Importing: '.$podcast->feed->title); $importPodcast = Podcast::query() ->updateOrCreate(['guid' => $podcast->feed->podcastGuid], [ - 'title' => $podcast->feed->title, - 'link' => $podcast->feed->link, + 'title' => $podcast->feed->title, + 'link' => $podcast->feed->link, 'language_code' => $podcast->feed->language, - 'data' => $podcast->feed, - 'created_by' => 1, + 'data' => $podcast->feed, + 'created_by' => 1, ]); $episodes = $client->episodes->withParameters(['max' => 10000]) ->byFeedId($feedId) @@ -77,7 +80,7 @@ class ReadAndSyncPodcastFeeds extends Command Episode::query() ->updateOrCreate(['guid' => $item->guid], [ 'podcast_id' => $importPodcast->id, - 'data' => $item, + 'data' => $item, 'created_by' => 1, 'created_at' => Carbon::parse($item->datePublished), ]); diff --git a/app/Console/Commands/Map/CreateGeoJsonPolygon.php b/app/Console/Commands/Map/CreateGeoJsonPolygon.php index bf22e211..4a0d7782 100644 --- a/app/Console/Commands/Map/CreateGeoJsonPolygon.php +++ b/app/Console/Commands/Map/CreateGeoJsonPolygon.php @@ -9,18 +9,21 @@ class CreateGeoJsonPolygon extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'map:polygon'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() diff --git a/app/Console/Commands/OpenBooks/SyncOpenBooks.php b/app/Console/Commands/OpenBooks/SyncOpenBooks.php index 0ab583a6..c76cc204 100644 --- a/app/Console/Commands/OpenBooks/SyncOpenBooks.php +++ b/app/Console/Commands/OpenBooks/SyncOpenBooks.php @@ -10,18 +10,21 @@ class SyncOpenBooks extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'books:sync'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() @@ -30,30 +33,29 @@ class SyncOpenBooks extends Command $ids = collect($response->json()['cases'])->pluck('id'); try { - foreach ($response->json()['cases'] as $case) { BookCase::updateOrCreate( [ 'id' => $case['id'], ], [ - 'id' => $case['id'], - 'title' => $case['title'], - 'latitude' => (float) $case['lat'], - 'longitude' => (float) $case['lon'], - 'address' => $case['address'], - 'type' => $case['type'], - 'open' => $case['open'], - 'comment' => $case['comment'], - 'contact' => $case['contact'], - 'bcz' => $case['bcz'], - 'digital' => $case['digital'] ?? false, - 'icontype' => $case['icontype'], + 'id' => $case['id'], + 'title' => $case['title'], + 'latitude' => (float) $case['lat'], + 'longitude' => (float) $case['lon'], + 'address' => $case['address'], + 'type' => $case['type'], + 'open' => $case['open'], + 'comment' => $case['comment'], + 'contact' => $case['contact'], + 'bcz' => $case['bcz'], + 'digital' => $case['digital'] ?? false, + 'icontype' => $case['icontype'], 'deactivated' => $case['deactivated'], 'deactreason' => $case['deactreason'], - 'entrytype' => $case['entrytype'], - 'homepage' => $case['homepage'], - 'created_by' => 1, + 'entrytype' => $case['entrytype'], + 'homepage' => $case['homepage'], + 'created_by' => 1, ] ); } diff --git a/app/Console/Commands/Parse/ImportLibraryItems.php b/app/Console/Commands/Parse/ImportLibraryItems.php index 43904b6d..20837404 100644 --- a/app/Console/Commands/Parse/ImportLibraryItems.php +++ b/app/Console/Commands/Parse/ImportLibraryItems.php @@ -11,109 +11,111 @@ class ImportLibraryItems extends Command { /** * The name and signature of the console command. + * * @var string */ protected $signature = 'import:l'; /** * The console command description. + * * @var string */ protected $description = 'Command description'; /** * Execute the console command. + * * @return int */ public function handle() { $items = [ - 'https://aprycot.media/blog/weg-zum-bitcoin-standard/' => 'Auf dem Weg zu einem Bitcoin-Standard || Gigi', - 'https://europeanbitcoiners.com/warum-wir-eine-konstante-geldmenge-benoetigen/' => 'B ~ C: Warum wir eine konstante Geldmenge benötigen || Aleksander Svetski', - 'https://aprycot.media/blog/bitcoin-bringt-das-in-ordnung/' => 'Bitcoin bringt das in Ordnung || Parker Lewis', - 'https://europeanbitcoiners.com/orange-new-deal/' => 'Bitcoin: der Orange New Deal || Andrew M. Baily & Bradley Rettler', - 'https://aprycot.media/blog/bitcoin-die-welt-wacht-auf/' => 'Bitcoin - die Welt wacht auf || Gigi', - 'https://aprycot.media/blog/bitcoin-ist-einer-fuer-alle/' => 'Bitcoin ist \'Einer für Alle\' || Parker Lewis', - 'https://europeanbitcoiners.com/bitcoin-ist-energie-die-durch-die-zeit-reisen-kann/' => 'Bitcoin ist Energie, die durch die Zeit reisen kann || Michael Dunworth', - 'https://aprycot.media/blog/bitcoin-ist-hoffnung/' => 'Bitcoin ist Hoffnung || Robert Breedlove', - 'https://aprycot.media/blog/bitcoin-ist-schlechter-ist-besser/' => 'Bitcoin ist “Schlechter ist Besser” || Gwern Branwen', - 'https://blog.karlklawatsch.com/bitcoin/bitcoin-ist-zeit/' => 'Bitcoin ist Zeit || Gigi', - 'https://aprycot.media/blog/bitcoin-ist-antifragil/' => 'Bitcoin ist antifragil || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-ist-die-grosse-entfinanzialisierung/' => 'Bitcoin ist die große Entfinanzialisierung || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-ist-nicht-durch-nichts-gedeckt/' => 'Bitcoin ist durch nichts gedeckt || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-ist-ein-aufschrei/' => 'Bitcoin ist ein Aufschrei || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-ist-ein-trojanisches-pferd-der-freiheit/' => 'Bitcoin ist ein trojanisches Pferd der Freiheit || Alex Gladstein', - 'https://aprycot.media/blog/bitcoin-ist-gesunder-menschenverstand/' => 'Bitcoin ist gesunder Menschenverstand || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-ist-kein-schneeballsystem/' => 'Bitcoin ist kein Schneeballsystem || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-ist-keine-energieverschwendung/' => 'Bitcoin ist keine Energieverschwendung || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-ist-nicht-zu-langsam/' => 'Bitcoin ist nicht zu langsam || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-ist-nicht-zu-volatil/' => 'Bitcoin ist nicht zu volatil || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-kann-nicht-kopiert-werden/' => 'Bitcoin kann nicht kopiert werden || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-kann-nicht-verboten-werden/' => 'Bitcoin kann nicht verboten werden || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-macht-anderes-geld-ueberfluessig/' => 'Bitcoin macht anderes Geld überflüssig || Parker Lewis', - 'https://aprycot.media/blog/bitcoin-nicht-blockchain/' => 'Bitcoin, nicht Blockchain || Parker Lewis', - 'https://medium.com/aprycotmedia/bitcoins-anpflanzung-71ea533b89c5' => 'Bitcoins Anpflanzung || Dan Held', - 'https://aprycot.media/blog/bitcoins-lebensraeume/' => 'Bitcoins Lebensräume || Gigi', - 'https://aprycot.media/blog/bitcoins-einsatz-vor-ort-venezuela/' => 'Bitcoins\'s Einsatz vor Ort - Venezuela || Gigi', - 'https://europeanbitcoiners.com/bitcoin-und-psychdelika/' => 'Bitcoin und Psychedelika || Fractalencrypt', - 'https://europeanbitcoiners.com/bitcoin-und-die-kardinaltugenden-wie-das-kaninchenloch-tugendhaftes-verhalten-fordert/' => 'Bitcoin und die Kardinaltugenden: wie der Kaninchenbau tugendhaftes Verhalten fördert || Mitchell Askew', - 'https://aprycot.media/blog/bitcoin-und-die-amerikanische-idee/' => 'Bitcoin und die amerikanische Idee || Parker Lewis', - 'https://europeanbitcoiners.com/bitcoin-verkorpert-nikola-teslas-vision-fur-frieden-und-energieuberfluss/' => 'Bitcoin verkörpert Nikola Teslas Vision für Frieden und Energieüberfluss || Level39', - 'https://aprycot.media/blog/check-deine-finanziellen-privilegien/' => 'Check deine finanziellen Privilegien! || Alex Gladstein', - 'https://www.bitcoin.de/de/bitcoin-whitepaper-deutsch-html' => 'Das Bitcoin Whitepaper || Satoshi Nakamoto', - 'https://aprycot.media/blog/das-ei-des-phoenix/' => 'Das Ei des Phönix || Gigi', - 'https://europeanbitcoiners.com/das-manifest-der-bitcoin-hodler-friedfertige-und-monetar-selbstsourverane-individuen/' => 'Das Manifest der Bitcoin Hodler: friedfertige und monetär selbstsouveräne Individuen || The Sovereign Hodler 21', - 'https://medium.com/aprycotmedia/das-bullische-argument-f%C3%BCr-bitcoin-9665e9375727' => 'Das bullische Argument für Bitcoin || Vijay Boyapati', - 'https://medium.com/aprycotmedia/das-monetaere-argument-fuer-bitcoin-62559a4c7b7d' => 'Das monetäre Argument für Bitcoin || Ben Kaufman', - 'https://aprycot.media/blog/der-aufstieg-des-souveraenen-individuums/' => 'Der Aufstieg des souveränen Individuums || Gigi', - 'https://aprycot.media/blog/ewiger-kampf-||-bitcoin/' => 'Der ewige Kampf von Bitcoin || Gigi', - 'https://medium.com/aprycotmedia/die-bitcoin-reise-dab572e5ff72' => 'Die Bitcoin-Reise || Gigi', - 'https://aprycot.media/blog/konsequenzen-bitcoin-verbot/' => 'Die Konsequenzen eines Bitcoin-Verbots || Gigi', - 'https://aprycot.media/blog/die-suche-nach-digitalem-bargeld/' => 'Die Suche nach digitalem Bargeld || Alex Gladstein', - 'https://aprycot.media/blog/die-verantwortung-bitcoin-anzunehmen/' => 'Die Verantwortung, Bitcoin anzunehmen || Gigi', - 'https://europeanbitcoiners.com/die-woerter-die-wir-in-bitcoin-verwenden/' => 'Die Wörter, die wir in Bitcoin verwenden || Gigi', - 'https://aprycot.media/blog/die-wurzel-allen-uebels/' => 'Die Wurzel allen Übels || Fab The Fox', - 'https://aprycot.media/blog/die-zahl-null-und-bitcoin/' => 'Die Zahl Null und Bitcoin || Robert Breedlove', - 'https://europeanbitcoiners.com/die-makellose-schoepfung-||-bitcoin/' => 'Die makellose Schöpfung von Bitcoin || Pascal Huegli', - 'https://aprycot.media/blog/die-versteckten-kosten-des-petrodollars/' => 'Die versteckten Kosten des Petrodollars || Alex Gladstein', - 'https://aprycot.media/blog/freiheit-und-privatsphaere-zwei-seiter-der-gleichen-muenze/' => 'Freiheit und Privatsphäre - Zwei Seiten der gleichen Medaille || Gigi', - 'https://aprycot.media/blog/herren-und-sklaven-des-geldes/' => 'Herren und Sklaven des Geldes || Robert Breedlove', - 'https://europeanbitcoiners.com/hyperbitcoinisierung-der-gewinner-bekommt-alles/' => 'Hyperbitcoinsierung: Der Gewinner bekommt alles || ObiWan Kenobit', - 'https://europeanbitcoiners.com/ist-der-preis-||-bitcoin-volatil-es-ist-alles-relativ/' => 'Ist der Preis von Bitcoin volatil? Es ist alles relativ || Tim Niemeyer', - 'https://aprycot.media/blog/lebenszeichen/' => 'Lebenszeichen || Gigi', - 'https://aprycot.media/blog/liebe-familie-liebe-freunde/' => 'Liebe Familie, liebe Freunde || Gigi', - 'https://aprycot.media/?p=92629' => 'Magisches Internet-Geld || Gigi', - 'https://europeanbitcoiners.com/mises-der-urspruengliche-toxische-maximalist/' => 'Mises: der ursrpüngliche toxische Maximalist || Michael Goldstein', - 'https://aprycot.media/blog/kolonialismus-und-bitcoin/' => 'Monetären Kolonialismus mit Open-Source-Code bekämpfen || Alex Gladstein', - 'https://aprycot.media/blog/privatsphaere-in-bitcoin-bewaehrte-praktiken/' => 'Privatspähre in Bitcoin: Bewährte Praktiken || Gigi', - 'https://aprycot.media/blog/shelling-out-die-urspruenge-des-geldes/' => 'Shelling Out — Die Ursprünge des Geldes || Nick Szabo', - 'https://aprycot.media/blog/spekulative-attacken/' => 'Spekulative Attacken || Pierre Rochard', - 'https://aprycot.media/blog/unveraeusserliche-eigentumsrechte-recht-sprache-geld-und-moral-||-bitcoin/' => 'Unveränderliche Eigentumsrechte - Recht, Sprache, Geld und Moral von Bitcoin || Gigi', - 'https://europeanbitcoiners.com/warum-bitcoin-gut-fur-die-umwelt-ist/' => 'Warum Bitcoin gut für die Umwelt ist || Leon A. Wankum', - 'https://europeanbitcoiners.com/die-padagogik-von-bitcoin/' => 'Die Pädagogik von Bitcoin || Erik Cason', + 'https://aprycot.media/blog/weg-zum-bitcoin-standard/' => 'Auf dem Weg zu einem Bitcoin-Standard || Gigi', + 'https://europeanbitcoiners.com/warum-wir-eine-konstante-geldmenge-benoetigen/' => 'B ~ C: Warum wir eine konstante Geldmenge benötigen || Aleksander Svetski', + 'https://aprycot.media/blog/bitcoin-bringt-das-in-ordnung/' => 'Bitcoin bringt das in Ordnung || Parker Lewis', + 'https://europeanbitcoiners.com/orange-new-deal/' => 'Bitcoin: der Orange New Deal || Andrew M. Baily & Bradley Rettler', + 'https://aprycot.media/blog/bitcoin-die-welt-wacht-auf/' => 'Bitcoin - die Welt wacht auf || Gigi', + 'https://aprycot.media/blog/bitcoin-ist-einer-fuer-alle/' => 'Bitcoin ist \'Einer für Alle\' || Parker Lewis', + 'https://europeanbitcoiners.com/bitcoin-ist-energie-die-durch-die-zeit-reisen-kann/' => 'Bitcoin ist Energie, die durch die Zeit reisen kann || Michael Dunworth', + 'https://aprycot.media/blog/bitcoin-ist-hoffnung/' => 'Bitcoin ist Hoffnung || Robert Breedlove', + 'https://aprycot.media/blog/bitcoin-ist-schlechter-ist-besser/' => 'Bitcoin ist “Schlechter ist Besser” || Gwern Branwen', + 'https://blog.karlklawatsch.com/bitcoin/bitcoin-ist-zeit/' => 'Bitcoin ist Zeit || Gigi', + 'https://aprycot.media/blog/bitcoin-ist-antifragil/' => 'Bitcoin ist antifragil || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-ist-die-grosse-entfinanzialisierung/' => 'Bitcoin ist die große Entfinanzialisierung || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-ist-nicht-durch-nichts-gedeckt/' => 'Bitcoin ist durch nichts gedeckt || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-ist-ein-aufschrei/' => 'Bitcoin ist ein Aufschrei || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-ist-ein-trojanisches-pferd-der-freiheit/' => 'Bitcoin ist ein trojanisches Pferd der Freiheit || Alex Gladstein', + 'https://aprycot.media/blog/bitcoin-ist-gesunder-menschenverstand/' => 'Bitcoin ist gesunder Menschenverstand || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-ist-kein-schneeballsystem/' => 'Bitcoin ist kein Schneeballsystem || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-ist-keine-energieverschwendung/' => 'Bitcoin ist keine Energieverschwendung || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-ist-nicht-zu-langsam/' => 'Bitcoin ist nicht zu langsam || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-ist-nicht-zu-volatil/' => 'Bitcoin ist nicht zu volatil || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-kann-nicht-kopiert-werden/' => 'Bitcoin kann nicht kopiert werden || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-kann-nicht-verboten-werden/' => 'Bitcoin kann nicht verboten werden || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-macht-anderes-geld-ueberfluessig/' => 'Bitcoin macht anderes Geld überflüssig || Parker Lewis', + 'https://aprycot.media/blog/bitcoin-nicht-blockchain/' => 'Bitcoin, nicht Blockchain || Parker Lewis', + 'https://medium.com/aprycotmedia/bitcoins-anpflanzung-71ea533b89c5' => 'Bitcoins Anpflanzung || Dan Held', + 'https://aprycot.media/blog/bitcoins-lebensraeume/' => 'Bitcoins Lebensräume || Gigi', + 'https://aprycot.media/blog/bitcoins-einsatz-vor-ort-venezuela/' => 'Bitcoins\'s Einsatz vor Ort - Venezuela || Gigi', + 'https://europeanbitcoiners.com/bitcoin-und-psychdelika/' => 'Bitcoin und Psychedelika || Fractalencrypt', + 'https://europeanbitcoiners.com/bitcoin-und-die-kardinaltugenden-wie-das-kaninchenloch-tugendhaftes-verhalten-fordert/' => 'Bitcoin und die Kardinaltugenden: wie der Kaninchenbau tugendhaftes Verhalten fördert || Mitchell Askew', + 'https://aprycot.media/blog/bitcoin-und-die-amerikanische-idee/' => 'Bitcoin und die amerikanische Idee || Parker Lewis', + 'https://europeanbitcoiners.com/bitcoin-verkorpert-nikola-teslas-vision-fur-frieden-und-energieuberfluss/' => 'Bitcoin verkörpert Nikola Teslas Vision für Frieden und Energieüberfluss || Level39', + 'https://aprycot.media/blog/check-deine-finanziellen-privilegien/' => 'Check deine finanziellen Privilegien! || Alex Gladstein', + 'https://www.bitcoin.de/de/bitcoin-whitepaper-deutsch-html' => 'Das Bitcoin Whitepaper || Satoshi Nakamoto', + 'https://aprycot.media/blog/das-ei-des-phoenix/' => 'Das Ei des Phönix || Gigi', + 'https://europeanbitcoiners.com/das-manifest-der-bitcoin-hodler-friedfertige-und-monetar-selbstsourverane-individuen/' => 'Das Manifest der Bitcoin Hodler: friedfertige und monetär selbstsouveräne Individuen || The Sovereign Hodler 21', + 'https://medium.com/aprycotmedia/das-bullische-argument-f%C3%BCr-bitcoin-9665e9375727' => 'Das bullische Argument für Bitcoin || Vijay Boyapati', + 'https://medium.com/aprycotmedia/das-monetaere-argument-fuer-bitcoin-62559a4c7b7d' => 'Das monetäre Argument für Bitcoin || Ben Kaufman', + 'https://aprycot.media/blog/der-aufstieg-des-souveraenen-individuums/' => 'Der Aufstieg des souveränen Individuums || Gigi', + 'https://aprycot.media/blog/ewiger-kampf-||-bitcoin/' => 'Der ewige Kampf von Bitcoin || Gigi', + 'https://medium.com/aprycotmedia/die-bitcoin-reise-dab572e5ff72' => 'Die Bitcoin-Reise || Gigi', + 'https://aprycot.media/blog/konsequenzen-bitcoin-verbot/' => 'Die Konsequenzen eines Bitcoin-Verbots || Gigi', + 'https://aprycot.media/blog/die-suche-nach-digitalem-bargeld/' => 'Die Suche nach digitalem Bargeld || Alex Gladstein', + 'https://aprycot.media/blog/die-verantwortung-bitcoin-anzunehmen/' => 'Die Verantwortung, Bitcoin anzunehmen || Gigi', + 'https://europeanbitcoiners.com/die-woerter-die-wir-in-bitcoin-verwenden/' => 'Die Wörter, die wir in Bitcoin verwenden || Gigi', + 'https://aprycot.media/blog/die-wurzel-allen-uebels/' => 'Die Wurzel allen Übels || Fab The Fox', + 'https://aprycot.media/blog/die-zahl-null-und-bitcoin/' => 'Die Zahl Null und Bitcoin || Robert Breedlove', + 'https://europeanbitcoiners.com/die-makellose-schoepfung-||-bitcoin/' => 'Die makellose Schöpfung von Bitcoin || Pascal Huegli', + 'https://aprycot.media/blog/die-versteckten-kosten-des-petrodollars/' => 'Die versteckten Kosten des Petrodollars || Alex Gladstein', + 'https://aprycot.media/blog/freiheit-und-privatsphaere-zwei-seiter-der-gleichen-muenze/' => 'Freiheit und Privatsphäre - Zwei Seiten der gleichen Medaille || Gigi', + 'https://aprycot.media/blog/herren-und-sklaven-des-geldes/' => 'Herren und Sklaven des Geldes || Robert Breedlove', + 'https://europeanbitcoiners.com/hyperbitcoinisierung-der-gewinner-bekommt-alles/' => 'Hyperbitcoinsierung: Der Gewinner bekommt alles || ObiWan Kenobit', + 'https://europeanbitcoiners.com/ist-der-preis-||-bitcoin-volatil-es-ist-alles-relativ/' => 'Ist der Preis von Bitcoin volatil? Es ist alles relativ || Tim Niemeyer', + 'https://aprycot.media/blog/lebenszeichen/' => 'Lebenszeichen || Gigi', + 'https://aprycot.media/blog/liebe-familie-liebe-freunde/' => 'Liebe Familie, liebe Freunde || Gigi', + 'https://aprycot.media/?p=92629' => 'Magisches Internet-Geld || Gigi', + 'https://europeanbitcoiners.com/mises-der-urspruengliche-toxische-maximalist/' => 'Mises: der ursrpüngliche toxische Maximalist || Michael Goldstein', + 'https://aprycot.media/blog/kolonialismus-und-bitcoin/' => 'Monetären Kolonialismus mit Open-Source-Code bekämpfen || Alex Gladstein', + 'https://aprycot.media/blog/privatsphaere-in-bitcoin-bewaehrte-praktiken/' => 'Privatspähre in Bitcoin: Bewährte Praktiken || Gigi', + 'https://aprycot.media/blog/shelling-out-die-urspruenge-des-geldes/' => 'Shelling Out — Die Ursprünge des Geldes || Nick Szabo', + 'https://aprycot.media/blog/spekulative-attacken/' => 'Spekulative Attacken || Pierre Rochard', + 'https://aprycot.media/blog/unveraeusserliche-eigentumsrechte-recht-sprache-geld-und-moral-||-bitcoin/' => 'Unveränderliche Eigentumsrechte - Recht, Sprache, Geld und Moral von Bitcoin || Gigi', + 'https://europeanbitcoiners.com/warum-bitcoin-gut-fur-die-umwelt-ist/' => 'Warum Bitcoin gut für die Umwelt ist || Leon A. Wankum', + 'https://europeanbitcoiners.com/die-padagogik-von-bitcoin/' => 'Die Pädagogik von Bitcoin || Erik Cason', 'https://europeanbitcoiners.com/bitcoin-first-warum-anleger-bitcoin-getrennt-von-anderen-digitalen-vermogenswerten-betrachten-mussen/' => 'Bitcoin First: Warum Anleger Bitcoin getrennt von anderen digitalen Vermögenswerten betrachten müssen || Fidelity Digital Assets', - 'https://blockinfo.ch/bitcoin-brechen-das-prinzip-von-hartem-geld/' => 'Bitcoin brechen — Das Prinzip von hartem Geld || Ben Kaufman', + 'https://blockinfo.ch/bitcoin-brechen-das-prinzip-von-hartem-geld/' => 'Bitcoin brechen — Das Prinzip von hartem Geld || Ben Kaufman', ]; $library = Library::firstOrCreate(['name' => 'Bitcoin Lesestoff by Gigi'], ['created_by' => 1]); foreach ($items as $link => $item) { - $name = str($item)->before(' || '); $author = str($item)->after(' || '); $contentCreator = Lecturer::firstOrCreate(['name' => $author], [ - 'name' => $author, + 'name' => $author, 'created_by' => 1, - 'team_id' => 1, + 'team_id' => 1, ]); $libraryItem = LibraryItem::firstOrCreate(['name' => $name], [ - 'lecturer_id' => $contentCreator->id, - 'type' => 'blog_article', + 'lecturer_id' => $contentCreator->id, + 'type' => 'blog_article', 'language_code' => 'de', - 'value' => $link, - 'created_by' => 1, + 'value' => $link, + 'created_by' => 1, ]); try { diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 6eb6e1d7..4c740551 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -13,19 +13,17 @@ class Kernel extends ConsoleKernel { protected $commands = [ SyncOpenBooks::class, - ReadAndSyncPodcastFeeds::class + ReadAndSyncPodcastFeeds::class, ]; /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule - * * @return void */ protected function schedule(Schedule $schedule) { - $schedule->call(new PruneStaleAttachments) ->daily(); $schedule->command(SyncOpenBooks::class) @@ -38,6 +36,7 @@ class Kernel extends ConsoleKernel /** * Register the commands for the application. + * * @return void */ protected function commands() diff --git a/app/Enums/LibraryItemType.php b/app/Enums/LibraryItemType.php index 11ffec5a..1a72df6e 100644 --- a/app/Enums/LibraryItemType.php +++ b/app/Enums/LibraryItemType.php @@ -26,28 +26,28 @@ enum LibraryItemType: string public static function labels(): array { return [ - 'book' => __('Book'), - 'blog_article' => __('Article'), - 'markdown_article' => __('Markdown Article'), + 'book' => __('Book'), + 'blog_article' => __('Article'), + 'markdown_article' => __('Markdown Article'), 'markdown_article_extern' => __('Markdown Article Extern'), - 'youtube_video' => __('Youtube Video'), - 'vimeo_video' => __('Vimeo Video'), - 'podcast_episode' => __('Podcast Episode'), - 'downloadable_file' => __('Downloadable File'), + 'youtube_video' => __('Youtube Video'), + 'vimeo_video' => __('Vimeo Video'), + 'podcast_episode' => __('Podcast Episode'), + 'downloadable_file' => __('Downloadable File'), ]; } public static function icons(): array { return [ - 'book' => 'book', - 'blog_article' => 'newspaper', - 'markdown_article' => 'newspaper', + 'book' => 'book', + 'blog_article' => 'newspaper', + 'markdown_article' => 'newspaper', 'markdown_article_extern' => 'newspaper', - 'youtube_video' => 'video', - 'vimeo_video' => 'video', - 'podcast_episode' => 'podcast', - 'downloadable_file' => 'download', + 'youtube_video' => 'video', + 'vimeo_video' => 'video', + 'podcast_episode' => 'podcast', + 'downloadable_file' => 'download', ]; } } diff --git a/app/Events/ChatMessageSentEvent.php b/app/Events/ChatMessageSentEvent.php index dae773cf..cae6007d 100644 --- a/app/Events/ChatMessageSentEvent.php +++ b/app/Events/ChatMessageSentEvent.php @@ -14,6 +14,7 @@ class ChatMessageSentEvent implements ShouldBroadcast /** * Create a new event instance. + * * @return void */ public function __construct() @@ -23,6 +24,7 @@ class ChatMessageSentEvent implements ShouldBroadcast /** * Get the channels the event should broadcast on. + * * @return \Illuminate\Broadcasting\Channel|array */ public function broadcastOn() diff --git a/app/Events/PlebLoggedInEvent.php b/app/Events/PlebLoggedInEvent.php index 6dcb442a..a37c7301 100644 --- a/app/Events/PlebLoggedInEvent.php +++ b/app/Events/PlebLoggedInEvent.php @@ -14,6 +14,7 @@ class PlebLoggedInEvent implements ShouldBroadcast /** * Create a new event instance. + * * @return void */ public function __construct(public string $name, public string $img) @@ -23,6 +24,7 @@ class PlebLoggedInEvent implements ShouldBroadcast /** * Get the channels the event should broadcast on. + * * @return \Illuminate\Broadcasting\Channel|array */ public function broadcastOn() diff --git a/app/Gamify/Points/BookCaseOrangePilled.php b/app/Gamify/Points/BookCaseOrangePilled.php index 729e7b5c..7948ccdc 100644 --- a/app/Gamify/Points/BookCaseOrangePilled.php +++ b/app/Gamify/Points/BookCaseOrangePilled.php @@ -12,6 +12,7 @@ class BookCaseOrangePilled extends PointType /** * Number of points + * * @var int */ public $points = 210; @@ -28,6 +29,7 @@ class BookCaseOrangePilled extends PointType /** * User who will be receive points + * * @return mixed */ public function payee() diff --git a/app/Http/Controllers/Api/LanguageController.php b/app/Http/Controllers/Api/LanguageController.php index d8a6d8e3..5a0df3bb 100644 --- a/app/Http/Controllers/Api/LanguageController.php +++ b/app/Http/Controllers/Api/LanguageController.php @@ -12,6 +12,7 @@ class LanguageController extends Controller { /** * Display a listing of the resource. + * * @return \Illuminate\Http\JsonResponse */ public function index(Request $request) @@ -21,14 +22,14 @@ class LanguageController extends Controller ->orderBy('name') ->when( $request->search, - fn(Builder $query) => $query + fn (Builder $query) => $query ->where('name', 'ilike', "%{$request->search}%") ->orWhere('language', 'ilike', "%{$request->search}%") ) ->when( $request->exists('selected'), - fn(Builder $query) => $query->whereIn('language', $request->input('selected', [])), - fn(Builder $query) => $query->limit(10) + fn (Builder $query) => $query->whereIn('language', $request->input('selected', [])), + fn (Builder $query) => $query->limit(10) ) ->get() ->map(function ($language) { @@ -40,6 +41,7 @@ class LanguageController extends Controller $language->toTranslate = Translation::query() ->where('language_id', $language['id']) ->count(); + return $language; }) ->toArray(); @@ -60,7 +62,6 @@ class LanguageController extends Controller * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request - * * @return \Illuminate\Http\Response */ public function store(Request $request) @@ -71,8 +72,7 @@ class LanguageController extends Controller /** * Display the specified resource. * - * @param $language - * + * @param $language * @return \Illuminate\Http\Response */ public function show(Language $language) @@ -84,8 +84,7 @@ class LanguageController extends Controller * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request - * @param $language - * + * @param $language * @return \Illuminate\Http\Response */ public function update(Request $request, Language $language) @@ -96,8 +95,7 @@ class LanguageController extends Controller /** * Remove the specified resource from storage. * - * @param $language - * + * @param $language * @return \Illuminate\Http\Response */ public function destroy(Language $language) diff --git a/app/Http/Controllers/Api/LecturerController.php b/app/Http/Controllers/Api/LecturerController.php index a1851bb6..86ca77a1 100644 --- a/app/Http/Controllers/Api/LecturerController.php +++ b/app/Http/Controllers/Api/LecturerController.php @@ -11,26 +11,26 @@ class LecturerController extends Controller { /** * Display a listing of the resource. + * * @return \Illuminate\Http\Response */ public function index(Request $request) { - return Lecturer::query() - ->select('id', 'name',) + ->select('id', 'name', ) ->orderBy('name') // ->when($request->has('user_id'), // fn(Builder $query) => $query->where('created_by', $request->user_id)) ->when( $request->search, - fn(Builder $query) => $query + fn (Builder $query) => $query ->where('name', 'ilike', "%{$request->search}%") ) ->when( $request->exists('selected'), - fn(Builder $query) => $query->whereIn('id', + fn (Builder $query) => $query->whereIn('id', $request->input('selected', [])), - fn(Builder $query) => $query->limit(10) + fn (Builder $query) => $query->limit(10) ) ->get() ->map(function (Lecturer $lecturer) { @@ -45,7 +45,6 @@ class LecturerController extends Controller * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request - * * @return \Illuminate\Http\Response */ public function store(Request $request) @@ -57,7 +56,6 @@ class LecturerController extends Controller * Display the specified resource. * * @param \App\Models\Lecturer $lecturer - * * @return \Illuminate\Http\Response */ public function show(Lecturer $lecturer) @@ -70,7 +68,6 @@ class LecturerController extends Controller * * @param \Illuminate\Http\Request $request * @param \App\Models\Lecturer $lecturer - * * @return \Illuminate\Http\Response */ public function update(Request $request, Lecturer $lecturer) @@ -82,7 +79,6 @@ class LecturerController extends Controller * Remove the specified resource from storage. * * @param \App\Models\Lecturer $lecturer - * * @return \Illuminate\Http\Response */ public function destroy(Lecturer $lecturer) diff --git a/app/Http/Controllers/Api/MeetupController.php b/app/Http/Controllers/Api/MeetupController.php index 85d9a28a..835f3291 100644 --- a/app/Http/Controllers/Api/MeetupController.php +++ b/app/Http/Controllers/Api/MeetupController.php @@ -12,6 +12,7 @@ class MeetupController extends Controller { /** * Display a listing of the resource. + * * @return \Illuminate\Http\Response */ public function index(Request $request) @@ -27,15 +28,15 @@ class MeetupController extends Controller ->orderBy('name') ->when( $request->search, - fn(Builder $query) => $query + fn (Builder $query) => $query ->where('name', 'like', "%{$request->search}%") ->orWhereHas('city', - fn(Builder $query) => $query->where('cities.name', 'ilike', "%{$request->search}%")) + fn (Builder $query) => $query->where('cities.name', 'ilike', "%{$request->search}%")) ) ->when( $request->exists('selected'), - fn(Builder $query) => $query->whereIn('id', $request->input('selected', [])), - fn(Builder $query) => $query->limit(10) + fn (Builder $query) => $query->whereIn('id', $request->input('selected', [])), + fn (Builder $query) => $query->limit(10) ) ->get() ->map(function (Meetup $meetup) { @@ -49,7 +50,6 @@ class MeetupController extends Controller * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request - * * @return \Illuminate\Http\Response */ public function store(Request $request) @@ -61,7 +61,6 @@ class MeetupController extends Controller * Display the specified resource. * * @param \App\Models\meetup $meetup - * * @return \Illuminate\Http\Response */ public function show(meetup $meetup) @@ -74,7 +73,6 @@ class MeetupController extends Controller * * @param \Illuminate\Http\Request $request * @param \App\Models\meetup $meetup - * * @return \Illuminate\Http\Response */ public function update(Request $request, meetup $meetup) @@ -86,7 +84,6 @@ class MeetupController extends Controller * Remove the specified resource from storage. * * @param \App\Models\meetup $meetup - * * @return \Illuminate\Http\Response */ public function destroy(meetup $meetup) diff --git a/app/Http/Controllers/DownloadBitcoinEventCalendar.php b/app/Http/Controllers/DownloadBitcoinEventCalendar.php index 9fb3a123..98c39612 100644 --- a/app/Http/Controllers/DownloadBitcoinEventCalendar.php +++ b/app/Http/Controllers/DownloadBitcoinEventCalendar.php @@ -13,7 +13,6 @@ class DownloadBitcoinEventCalendar extends Controller * Handle the incoming request. * * @param \Illuminate\Http\Request $request - * * @return \Illuminate\Http\Response */ public function __invoke(Request $request) diff --git a/app/Http/Controllers/DownloadMeetupCalendar.php b/app/Http/Controllers/DownloadMeetupCalendar.php index 33193762..d41a9f34 100644 --- a/app/Http/Controllers/DownloadMeetupCalendar.php +++ b/app/Http/Controllers/DownloadMeetupCalendar.php @@ -14,7 +14,6 @@ class DownloadMeetupCalendar extends Controller * Handle the incoming request. * * @param \Illuminate\Http\Request $request - * * @return \Illuminate\Http\Response */ public function __invoke(Request $request) diff --git a/app/Http/Controllers/ImageController.php b/app/Http/Controllers/ImageController.php index 3bbb7b6a..3cf0bb8f 100644 --- a/app/Http/Controllers/ImageController.php +++ b/app/Http/Controllers/ImageController.php @@ -12,17 +12,16 @@ class ImageController extends Controller * Handle the incoming request. * * @param \Illuminate\Http\Request $request - * * @return \Illuminate\Http\Response */ public function __invoke(Filesystem $filesystem, $path) { $server = ServerFactory::create([ - 'response' => new LaravelResponseFactory(app('request')), - 'source' => $filesystem->getDriver(), - 'cache' => $filesystem->getDriver(), + 'response' => new LaravelResponseFactory(app('request')), + 'source' => $filesystem->getDriver(), + 'cache' => $filesystem->getDriver(), 'cache_path_prefix' => '.cache', - 'base_url' => 'img', + 'base_url' => 'img', ]); return $server->getImageResponse('public/'.$path, request()->all()); diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index c0426417..4e85e4e9 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -13,6 +13,7 @@ class Kernel extends HttpKernel /** * The application's global HTTP middleware stack. * These middleware are run during every request to your application. + * * @var array */ protected $middleware = [ @@ -27,6 +28,7 @@ class Kernel extends HttpKernel /** * The application's route middleware groups. + * * @var array> */ protected $middlewareGroups = [ @@ -72,19 +74,20 @@ class Kernel extends HttpKernel /** * The application's route middleware. * These middleware may be assigned to groups or used individually. + * * @var array */ protected $routeMiddleware = [ - 'auth' => \App\Http\Middleware\Authenticate::class, - 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, - 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, - 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, - 'can' => \Illuminate\Auth\Middleware\Authorize::class, - 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'auth' => \App\Http\Middleware\Authenticate::class, + 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, + 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, + 'can' => \Illuminate\Auth\Middleware\Authorize::class, + 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, - 'signed' => \App\Http\Middleware\ValidateSignature::class, - 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, - 'verified' => CustomEnsureEmailVerified::class, - 'needMeetup' => NeedMeetupMiddleware::class, + 'signed' => \App\Http\Middleware\ValidateSignature::class, + 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + 'verified' => CustomEnsureEmailVerified::class, + 'needMeetup' => NeedMeetupMiddleware::class, ]; } diff --git a/app/Http/Livewire/Auth/Auth47Component.php b/app/Http/Livewire/Auth/Auth47Component.php index bc51f8d4..e51f4eba 100644 --- a/app/Http/Livewire/Auth/Auth47Component.php +++ b/app/Http/Livewire/Auth/Auth47Component.php @@ -8,6 +8,7 @@ use SimpleSoftwareIO\QrCode\Facades\QrCode; class Auth47Component extends Component { public ?string $k1 = null; + protected ?string $url = null; public function mount() diff --git a/app/Http/Livewire/Auth/LNUrlAuth.php b/app/Http/Livewire/Auth/LNUrlAuth.php index 72e8bf62..da749005 100644 --- a/app/Http/Livewire/Auth/LNUrlAuth.php +++ b/app/Http/Livewire/Auth/LNUrlAuth.php @@ -12,8 +12,11 @@ use SimpleSoftwareIO\QrCode\Facades\QrCode; class LNUrlAuth extends Component { public ?string $k1 = null; + protected ?string $url = null; + protected ?string $lnurl = null; + protected ?string $qrCode = null; public function switchToEmailLogin() diff --git a/app/Http/Livewire/BitcoinEvent/BitcoinEventTable.php b/app/Http/Livewire/BitcoinEvent/BitcoinEventTable.php index 40cc17c9..30fe07a8 100644 --- a/app/Http/Livewire/BitcoinEvent/BitcoinEventTable.php +++ b/app/Http/Livewire/BitcoinEvent/BitcoinEventTable.php @@ -17,7 +17,7 @@ class BitcoinEventTable extends Component public function mount() { - if (!$this->year) { + if (! $this->year) { $this->year = now()->year; } } @@ -30,30 +30,30 @@ class BitcoinEventTable extends Component 'venue.city.country', ]) ->where('bitcoin_events.from', '>=', now()) - ->where(fn($query) => $query + ->where(fn ($query) => $query ->whereHas('venue.city.country', - fn($query) => $query->where('countries.code', $this->country->code)) + fn ($query) => $query->where('countries.code', $this->country->code)) ->orWhere('show_worldwide', true) ) ->get() - ->map(fn($event) => [ - 'id' => $event->id, - 'name' => $event->title, + ->map(fn ($event) => [ + 'id' => $event->id, + 'name' => $event->title, 'coords' => [$event->venue->city->latitude, $event->venue->city->longitude], ]), - 'events' => BitcoinEvent::query() + 'events' => BitcoinEvent::query() ->where('bitcoin_events.from', '>=', now()) - ->where(fn($query) => $query + ->where(fn ($query) => $query ->whereHas('venue.city.country', - fn($query) => $query->where('countries.code', $this->country->code)) + fn ($query) => $query->where('countries.code', $this->country->code)) ->orWhere('show_worldwide', true) ) ->get() - ->map(fn($event) => [ - 'id' => $event->id, - 'startDate' => $event->from, - 'endDate' => $event->to, - 'location' => $event->title, + ->map(fn ($event) => [ + 'id' => $event->id, + 'startDate' => $event->from, + 'endDate' => $event->to, + 'location' => $event->title, 'description' => $event->description, ]), ])->layout('layouts.app', [ @@ -61,7 +61,7 @@ class BitcoinEventTable extends Component title: __('Bitcoin Events'), description: __('Search out a Bitcoin Event'), image: asset('img/screenshot.png') - ) + ), ]); } @@ -69,13 +69,13 @@ class BitcoinEventTable extends Component { return to_route('bitcoinEvent.table.bitcoinEvent', [ '#table', - 'country' => $this->country->code, - 'year' => $this->year, + 'country' => $this->country->code, + 'year' => $this->year, 'bitcoin_events' => [ 'filters' => [ 'byid' => $id, ], - ] + ], ]); } @@ -83,13 +83,13 @@ class BitcoinEventTable extends Component { return to_route('bitcoinEvent.table.bitcoinEvent', [ '#table', - 'country' => $this->country->code, - 'year' => $this->year, + 'country' => $this->country->code, + 'year' => $this->year, 'bitcoin_events' => [ 'filters' => [ 'byid' => $ids, - ] - ] + ], + ], ]); } } diff --git a/app/Http/Livewire/BookCase/BookCaseTable.php b/app/Http/Livewire/BookCase/BookCaseTable.php index 98d049a0..319ca8e1 100644 --- a/app/Http/Livewire/BookCase/BookCaseTable.php +++ b/app/Http/Livewire/BookCase/BookCaseTable.php @@ -10,7 +10,9 @@ use RalphJSmit\Laravel\SEO\Support\SEOData; class BookCaseTable extends Component { public ?Country $country = null; + public string $c = 'de'; + public array $bookcases = []; protected $queryString = ['bookcases']; @@ -18,16 +20,16 @@ class BookCaseTable extends Component public function render() { return view('livewire.book-case.book-case-table', [ - 'markers' => !isset($this->table['filters']['byids']) ? [] + 'markers' => ! isset($this->table['filters']['byids']) ? [] : BookCase::query() ->whereIn('id', str($this->table['filters']['byids'] ?? '')->explode(',')) ->get() - ->map(fn($b) => [ - 'title' => $b->title, - 'lat' => $b->latitude, - 'lng' => $b->longitude, - 'url' => route('bookCases.comment.bookcase', ['country' => $this->country, 'bookCase' => $b]), - 'icon' => asset('img/btc-logo-6219386_1280.png'), + ->map(fn ($b) => [ + 'title' => $b->title, + 'lat' => $b->latitude, + 'lng' => $b->longitude, + 'url' => route('bookCases.comment.bookcase', ['country' => $this->country, 'bookCase' => $b]), + 'icon' => asset('img/btc-logo-6219386_1280.png'), 'icon_size' => [42, 42], ]) ->toArray(), @@ -40,7 +42,7 @@ class BookCaseTable extends Component title: __('Bookcases'), description: __('Search out a public bookcase'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/BookCase/CityTable.php b/app/Http/Livewire/BookCase/CityTable.php index 173955f1..8106f8ce 100644 --- a/app/Http/Livewire/BookCase/CityTable.php +++ b/app/Http/Livewire/BookCase/CityTable.php @@ -17,7 +17,7 @@ class CityTable extends Component title: __('Bookcases'), description: __('Search out a public bookcase'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/BookCase/CommentBookCase.php b/app/Http/Livewire/BookCase/CommentBookCase.php index 00a4144e..677f1c3c 100644 --- a/app/Http/Livewire/BookCase/CommentBookCase.php +++ b/app/Http/Livewire/BookCase/CommentBookCase.php @@ -21,8 +21,6 @@ class CommentBookCase extends Component public BookCase $bookCase; - - public function render() { return view('livewire.book-case.comment-book-case') @@ -31,7 +29,7 @@ class CommentBookCase extends Component title: $this->bookCase->title, description: $this->bookCase->address, image: $this->bookCase->getFirstMediaUrl('images') ?? asset('img/bookcase.jpg'), - ) + ), ]); } @@ -43,7 +41,7 @@ class CommentBookCase extends Component $this->bookCase ->addMedia($this->photo) - ->usingFileName(md5($this->photo->getClientOriginalName()) . '.' . $this->photo->getClientOriginalExtension()) + ->usingFileName(md5($this->photo->getClientOriginalName()).'.'.$this->photo->getClientOriginalExtension()) ->toMediaCollection('images'); return to_route('bookCases.comment.bookcase', ['country' => $this->country, 'bookCase' => $this->bookCase->id]); @@ -62,7 +60,7 @@ class CommentBookCase extends Component if (str($url)->contains('http')) { return $url; } - if (!str($url)->contains('http')) { + if (! str($url)->contains('http')) { return str($url)->prepend('https://'); } } diff --git a/app/Http/Livewire/BookCase/Form/OrangePillForm.php b/app/Http/Livewire/BookCase/Form/OrangePillForm.php index c9920983..de9ece83 100644 --- a/app/Http/Livewire/BookCase/Form/OrangePillForm.php +++ b/app/Http/Livewire/BookCase/Form/OrangePillForm.php @@ -15,6 +15,7 @@ class OrangePillForm extends Component public Country $country; public BookCase $bookCase; + public ?OrangePill $orangePill = null; public $image; @@ -27,22 +28,22 @@ class OrangePillForm extends Component { return [ 'orangePill.book_case_id' => 'required', - 'orangePill.user_id' => 'required', - 'orangePill.amount' => 'required|numeric', - 'orangePill.date' => 'required|date', - 'orangePill.comment' => 'required|string', - 'image' => 'image|max:8192', // 8MB Max + 'orangePill.user_id' => 'required', + 'orangePill.amount' => 'required|numeric', + 'orangePill.date' => 'required|date', + 'orangePill.comment' => 'required|string', + 'image' => 'image|max:8192', // 8MB Max ]; } public function mount() { - if (!$this->orangePill) { + if (! $this->orangePill) { $this->orangePill = new OrangePill([ - 'user_id' => auth()->id(), + 'user_id' => auth()->id(), 'book_case_id' => $this->bookCase->id, - 'date' => now(), - 'amount' => 1, + 'date' => now(), + 'amount' => 1, ]); } elseif ($this->orangePill->user_id !== auth()->id()) { abort(403); diff --git a/app/Http/Livewire/BookCase/Heatmap.php b/app/Http/Livewire/BookCase/Heatmap.php index 0bfeec16..52d403ea 100644 --- a/app/Http/Livewire/BookCase/Heatmap.php +++ b/app/Http/Livewire/BookCase/Heatmap.php @@ -16,7 +16,7 @@ class Heatmap extends Component ->active() ->whereHas('orangePills') ->get() - ->map(fn($bookCase) => [ + ->map(fn ($bookCase) => [ 'lat' => $bookCase->latitude, 'lng' => $bookCase->longitude, ]); @@ -28,7 +28,7 @@ class Heatmap extends Component title: __('Heatmap of Bookcases'), description: __('On this map you can see the success and spread of the Bitcoin books.'), image: asset('img/heatmap_bookcases.png'), - ) + ), ]); } } diff --git a/app/Http/Livewire/BookCase/HighscoreTable.php b/app/Http/Livewire/BookCase/HighscoreTable.php index 9f872949..8d00d5f1 100644 --- a/app/Http/Livewire/BookCase/HighscoreTable.php +++ b/app/Http/Livewire/BookCase/HighscoreTable.php @@ -10,7 +10,9 @@ use RalphJSmit\Laravel\SEO\Support\SEOData; class HighscoreTable extends Component { public Country $country; + public bool $viewingModal = false; + public ?User $modal = null; public function render() @@ -31,7 +33,7 @@ class HighscoreTable extends Component title: __('Highscore Table'), description: __('Hall of fame of our honorable plebs'), image: asset('img/highscore_table_screenshot.png'), - ) + ), ]); } diff --git a/app/Http/Livewire/BookCase/WorldMap.php b/app/Http/Livewire/BookCase/WorldMap.php index 262ad04c..b5f07b66 100644 --- a/app/Http/Livewire/BookCase/WorldMap.php +++ b/app/Http/Livewire/BookCase/WorldMap.php @@ -19,15 +19,15 @@ class WorldMap extends Component ->withCount('orangePills') ->active() ->get() - ->map(fn($bookCase) => [ + ->map(fn ($bookCase) => [ 'lat' => $bookCase->latitude, 'lng' => $bookCase->longitude, 'url' => url()->route('bookCases.comment.bookcase', [ - 'country' => $this->country, + 'country' => $this->country, 'bookCase' => $bookCase, ]), - 'op' => $bookCase->orange_pills_count, + 'op' => $bookCase->orange_pills_count, ]) ->toArray(), ])->layout('layouts.app', [ @@ -35,7 +35,7 @@ class WorldMap extends Component title: __('World Map of Bookcases'), description: __('On this map you can see bookcases that have been orange pilled. You can also click on a marker to go to the search result.'), image: asset('img/world_map_bookcases.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/Chat/HighscoreChat.php b/app/Http/Livewire/Chat/HighscoreChat.php index e811228a..ec0915c5 100644 --- a/app/Http/Livewire/Chat/HighscoreChat.php +++ b/app/Http/Livewire/Chat/HighscoreChat.php @@ -10,6 +10,7 @@ class HighscoreChat extends Component public bool $open = false; public array $messages = []; + public string $myNewMessage = ''; public function rules() @@ -22,7 +23,7 @@ class HighscoreChat extends Component public function getListeners() { return [ - 'toggleHighscoreChat' => 'toggle', + 'toggleHighscoreChat' => 'toggle', 'echo:plebchannel,.App\Events\ChatMessageSentEvent' => 'chatMessageSent', ]; } @@ -34,7 +35,7 @@ class HighscoreChat extends Component public function toggle() { - $this->open = !$this->open; + $this->open = ! $this->open; } public function chatMessageSent() @@ -50,11 +51,11 @@ class HighscoreChat extends Component $this->validate(); $newMessages = collect(cache()->get('highscore_chat_messages', [])) ->push([ - 'fromId' => auth()->id(), + 'fromId' => auth()->id(), 'fromName' => str(auth()->user()->name)->limit(2), - 'userImg' => str(auth()->user()->profile_photo_url)->replace('background=EBF4FF', 'background=F7931A'), - 'message' => $this->myNewMessage, - 'time' => now()->asDateTime(), + 'userImg' => str(auth()->user()->profile_photo_url)->replace('background=EBF4FF', 'background=F7931A'), + 'message' => $this->myNewMessage, + 'time' => now()->asDateTime(), ]) ->take(-21) ->toArray(); diff --git a/app/Http/Livewire/City/Form/CityForm.php b/app/Http/Livewire/City/Form/CityForm.php index 470ab38c..82007635 100644 --- a/app/Http/Livewire/City/Form/CityForm.php +++ b/app/Http/Livewire/City/Form/CityForm.php @@ -21,18 +21,18 @@ class CityForm extends Component { return [ 'city.country_id' => 'required', - 'city.name' => 'required|string', - 'city.longitude' => 'required', - 'city.latitude' => 'required', + 'city.name' => 'required|string', + 'city.longitude' => 'required', + 'city.latitude' => 'required', ]; } public function mount() { - if (!$this->city) { + if (! $this->city) { $this->city = new City(); } - if (!$this->fromUrl) { + if (! $this->fromUrl) { $this->fromUrl = url()->previous(); } } diff --git a/app/Http/Livewire/ContentCreator/Form/ContentCreatorForm.php b/app/Http/Livewire/ContentCreator/Form/ContentCreatorForm.php index 78405f0e..06c88dbb 100644 --- a/app/Http/Livewire/ContentCreator/Form/ContentCreatorForm.php +++ b/app/Http/Livewire/ContentCreator/Form/ContentCreatorForm.php @@ -12,6 +12,7 @@ class ContentCreatorForm extends Component use WithFileUploads; public ?Lecturer $lecturer = null; + public $image; public ?string $fromUrl = ''; @@ -21,30 +22,30 @@ class ContentCreatorForm extends Component public function rules() { return [ - 'image' => [Rule::requiredIf(!$this->lecturer->id), 'nullable', 'mimes:jpeg,png,jpg,gif', 'max:10240'], + 'image' => [Rule::requiredIf(! $this->lecturer->id), 'nullable', 'mimes:jpeg,png,jpg,gif', 'max:10240'], - 'lecturer.name' => 'required', - 'lecturer.active' => 'boolean', - 'lecturer.subtitle' => 'required', - 'lecturer.intro' => 'required', - 'lecturer.twitter_username' => 'nullable|string', - 'lecturer.website' => 'nullable|url', + 'lecturer.name' => 'required', + 'lecturer.active' => 'boolean', + 'lecturer.subtitle' => 'required', + 'lecturer.intro' => 'required', + 'lecturer.twitter_username' => 'nullable|string', + 'lecturer.website' => 'nullable|url', 'lecturer.lightning_address' => 'nullable|string', - 'lecturer.lnurl' => 'nullable|string', - 'lecturer.node_id' => 'nullable|string', + 'lecturer.lnurl' => 'nullable|string', + 'lecturer.node_id' => 'nullable|string', ]; } public function mount() { - if (!$this->lecturer) { + if (! $this->lecturer) { $this->lecturer = new Lecturer([ - 'intro' => '', - 'active' => true, + 'intro' => '', + 'active' => true, 'team_id' => true, ]); } - if (!$this->fromUrl) { + if (! $this->fromUrl) { $this->fromUrl = url()->previous(); } } diff --git a/app/Http/Livewire/Frontend/Footer.php b/app/Http/Livewire/Frontend/Footer.php index e0fd560f..dcd1eb9c 100644 --- a/app/Http/Livewire/Frontend/Footer.php +++ b/app/Http/Livewire/Frontend/Footer.php @@ -26,7 +26,7 @@ class Footer extends Component return view('livewire.frontend.footer', [ 'percentTranslated' => $l === 'en' ? 100 : round(($translated / $toTranslate) * 100), - 'language' => $language, + 'language' => $language, ]); } } diff --git a/app/Http/Livewire/Frontend/Header.php b/app/Http/Livewire/Frontend/Header.php index 85a73285..4f0be6eb 100644 --- a/app/Http/Livewire/Frontend/Header.php +++ b/app/Http/Livewire/Frontend/Header.php @@ -11,8 +11,11 @@ use Livewire\Component; class Header extends Component { public ?Country $country = null; + public $currentRouteName; + public string $c = 'de'; + public string $l = 'de'; public $bgColor = 'bg-21gray'; @@ -30,7 +33,7 @@ class Header extends Component public function mount() { $this->l = Cookie::get('lang') ?: config('app.locale'); - if (!$this->country) { + if (! $this->country) { $this->country = Country::query() ->where('code', $this->c) ->first(); @@ -56,7 +59,7 @@ class Header extends Component Cookie::queue('lang', $this->l, 60 * 24 * 365); return view('livewire.frontend.header', [ - 'cities' => City::query() + 'cities' => City::query() ->select(['latitude', 'longitude']) ->get(), 'countries' => Country::query() diff --git a/app/Http/Livewire/Frontend/Welcome.php b/app/Http/Livewire/Frontend/Welcome.php index 2bb834f5..056fdffb 100644 --- a/app/Http/Livewire/Frontend/Welcome.php +++ b/app/Http/Livewire/Frontend/Welcome.php @@ -10,9 +10,10 @@ use RalphJSmit\Laravel\SEO\Support\SEOData; class Welcome extends Component { public string $c = 'de'; + public string $l = 'de'; - protected $queryString = ['c','l']; + protected $queryString = ['c', 'l']; public function rules() { @@ -67,7 +68,7 @@ class Welcome extends Component title: __('Welcome'), description: __('Welcome to the portal of the Einundzwanzig Community.'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/LaravelEcho.php b/app/Http/Livewire/LaravelEcho.php index 50acbbf2..7478deed 100644 --- a/app/Http/Livewire/LaravelEcho.php +++ b/app/Http/Livewire/LaravelEcho.php @@ -16,14 +16,14 @@ class LaravelEcho extends Component if (auth()->check()) { $this->notification() ->confirm([ - 'img' => $data['img'], - 'title' => 'Pleb alert!', + 'img' => $data['img'], + 'title' => 'Pleb alert!', 'description' => $data['name'].' logged in', - 'icon' => 'bell', + 'icon' => 'bell', 'acceptLabel' => '', 'rejectLabel' => '', - 'iconColor' => 'primary', - 'timeout' => 60000, + 'iconColor' => 'primary', + 'timeout' => 60000, ]); } } diff --git a/app/Http/Livewire/Library/Form/LibraryItemForm.php b/app/Http/Livewire/Library/Form/LibraryItemForm.php index e13f8b7f..a9e46cea 100644 --- a/app/Http/Livewire/Library/Form/LibraryItemForm.php +++ b/app/Http/Livewire/Library/Form/LibraryItemForm.php @@ -19,53 +19,58 @@ class LibraryItemForm extends Component public Country $country; public ?LibraryItem $libraryItem = null; + public $library; + public $image; + public $file; + public array $selectedTags = []; public bool $lecturer = false; + public ?string $fromUrl = ''; protected $queryString = [ - 'fromUrl' => ['except' => ''], + 'fromUrl' => ['except' => ''], 'lecturer' => ['except' => false], ]; public function rules() { return [ - 'image' => [Rule::requiredIf(!$this->libraryItem->id), 'nullable', 'mimes:jpeg,png,jpg,gif', 'max:10240'], + 'image' => [Rule::requiredIf(! $this->libraryItem->id), 'nullable', 'mimes:jpeg,png,jpg,gif', 'max:10240'], 'library' => 'required', 'selectedTags' => 'array|min:1', - 'libraryItem.lecturer_id' => 'required', - 'libraryItem.name' => 'required', - 'libraryItem.type' => 'required', - 'libraryItem.language_code' => 'required', - 'libraryItem.value' => [ + 'libraryItem.lecturer_id' => 'required', + 'libraryItem.name' => 'required', + 'libraryItem.type' => 'required', + 'libraryItem.language_code' => 'required', + 'libraryItem.value' => [ 'required', Rule::when( $this->libraryItem->type !== LibraryItemType::MarkdownArticle && $this->libraryItem->type !== LibraryItemType::MarkdownArticleExtern && $this->libraryItem->type !== LibraryItemType::DownloadableFile, ['url'] - ) + ), ], - 'libraryItem.subtitle' => 'required', - 'libraryItem.excerpt' => 'required', + 'libraryItem.subtitle' => 'required', + 'libraryItem.excerpt' => 'required', 'libraryItem.main_image_caption' => 'required', - 'libraryItem.read_time' => 'required', - 'libraryItem.approved' => 'boolean', + 'libraryItem.read_time' => 'required', + 'libraryItem.approved' => 'boolean', ]; } public function mount() { - if (!$this->libraryItem) { + if (! $this->libraryItem) { $this->libraryItem = new LibraryItem([ - 'approved' => true, + 'approved' => true, 'read_time' => 1, ]); if ($this->lecturer) { @@ -76,13 +81,13 @@ class LibraryItemForm extends Component $this->selectedTags = $this->libraryItem->tags() ->where('type', 'library_item') ->get() - ->map(fn($tag) => $tag->name) + ->map(fn ($tag) => $tag->name) ->toArray(); $this->library = $this->libraryItem->libraries() ->first() ->id; } - if (!$this->fromUrl) { + if (! $this->fromUrl) { $this->fromUrl = url()->previous(); } } @@ -118,7 +123,7 @@ class LibraryItemForm extends Component { $selectedTags = collect($this->selectedTags); if ($selectedTags->contains($name)) { - $selectedTags = $selectedTags->filter(fn($tag) => $tag !== $name); + $selectedTags = $selectedTags->filter(fn ($tag) => $tag !== $name); } else { $selectedTags->push($name); } @@ -129,21 +134,21 @@ class LibraryItemForm extends Component public function render() { return view('livewire.library.form.library-item-form', [ - 'types' => Options::forEnum(LibraryItemType::class) + 'types' => Options::forEnum(LibraryItemType::class) ->filter( - fn($type) => $type !== LibraryItemType::PodcastEpisode + fn ($type) => $type !== LibraryItemType::PodcastEpisode && $type !== LibraryItemType::MarkdownArticle ) ->toArray(), 'libraries' => Library::query() ->where('is_public', true) ->get() - ->map(fn($library) => [ - 'id' => $library->id, + ->map(fn ($library) => [ + 'id' => $library->id, 'name' => $library->name, ]) ->toArray(), - 'tags' => Tag::query() + 'tags' => Tag::query() ->where('type', 'library_item') ->get(), ]); diff --git a/app/Http/Livewire/Library/LibraryTable.php b/app/Http/Livewire/Library/LibraryTable.php index 89a552bf..dd6f0db3 100644 --- a/app/Http/Livewire/Library/LibraryTable.php +++ b/app/Http/Livewire/Library/LibraryTable.php @@ -12,7 +12,9 @@ use RalphJSmit\Laravel\SEO\Support\SEOData; class LibraryTable extends Component { public Country $country; + public array $filters = []; + public bool $isLecturerPage = false; public string $search = ''; @@ -23,8 +25,8 @@ class LibraryTable extends Component protected $queryString = [ 'currentTab' => ['except' => '*'], - 'filters' => ['except' => ''], - 'search' => ['except' => ''], + 'filters' => ['except' => ''], + 'search' => ['except' => ''], ]; public function loadMore() @@ -52,7 +54,7 @@ class LibraryTable extends Component public function render() { - $shouldBePublic = !$this->isLecturerPage; + $shouldBePublic = ! $this->isLecturerPage; $libraries = \App\Models\Library::query() ->whereNull('parent_id') ->where('is_public', $shouldBePublic) @@ -61,7 +63,7 @@ class LibraryTable extends Component $tabs = collect([ [ 'name' => '*', - ] + ], ]); foreach ($libraries as $library) { $tabs->push([ @@ -82,32 +84,32 @@ class LibraryTable extends Component } return view('livewire.library.library-table', [ - 'libraries' => $tabs, + 'libraries' => $tabs, 'libraryItems' => LibraryItem::query() ->with([ 'lecturer', 'tags', ]) - ->when($this->search, fn($query) => $query + ->when($this->search, fn ($query) => $query ->where('name', 'ilike', '%'.$this->search.'%') - ->orWhere(fn($query) => $query + ->orWhere(fn ($query) => $query ->when(count($searchTags) > 0 && count($this->filters) < 1, - fn($query) => $query->whereHas('tags', - fn($query) => $query->whereIn('tags.id', $searchTags))) + fn ($query) => $query->whereHas('tags', + fn ($query) => $query->whereIn('tags.id', $searchTags))) ) ) - ->when($this->currentTab !== '*', fn($query) => $query + ->when($this->currentTab !== '*', fn ($query) => $query ->whereHas('libraries', - fn($query) => $query + fn ($query) => $query ->where('libraries.name', $this->currentTab) ) ) - ->when(isset($this->filters['tag']), fn($query) => $query->whereHas('tags', - fn($query) => $query->whereIn('tags.id', $this->filters['tag']))) + ->when(isset($this->filters['tag']), fn ($query) => $query->whereHas('tags', + fn ($query) => $query->whereIn('tags.id', $this->filters['tag']))) ->when(isset($this->filters['language']), - fn($query) => $query->whereIn('language_code', $this->filters['language'])) + fn ($query) => $query->whereIn('language_code', $this->filters['language'])) ->whereHas('libraries', - fn($query) => $query->where('libraries.is_public', $shouldBePublic)) + fn ($query) => $query->where('libraries.is_public', $shouldBePublic)) ->orderByDesc('library_items.created_at') ->paginate($this->perPage), ])->layout('layouts.app', [ @@ -115,7 +117,7 @@ class LibraryTable extends Component title: __('Library'), description: __('Here you can find all content that are available in the library.'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/Library/SearchByTagComponent.php b/app/Http/Livewire/Library/SearchByTagComponent.php index 50286e11..69d36ef7 100644 --- a/app/Http/Livewire/Library/SearchByTagComponent.php +++ b/app/Http/Livewire/Library/SearchByTagComponent.php @@ -9,6 +9,7 @@ use Livewire\Component; class SearchByTagComponent extends Component { public string $country = 'de'; + public array $filters = []; protected $queryString = [ @@ -26,12 +27,12 @@ class SearchByTagComponent extends Component ->pluck('language_code') ->unique() ->sort() - ->map(fn($item) => str($item) + ->map(fn ($item) => str($item) ->before('_') ->toString()) ->values() ->toArray(), - 'tags' => Tag::query() + 'tags' => Tag::query() ->with([ 'libraryItems.libraries', 'libraryItems.lecturer', @@ -41,7 +42,7 @@ class SearchByTagComponent extends Component ]) ->where('type', 'library_item') ->whereHas('libraryItems.libraries', - fn($query) => $query->where('is_public', $shouldBePublic)) + fn ($query) => $query->where('is_public', $shouldBePublic)) ->orderByDesc('library_items_count') ->orderBy('tags.id') ->get(), diff --git a/app/Http/Livewire/Meetup/Form/MeetupEventForm.php b/app/Http/Livewire/Meetup/Form/MeetupEventForm.php index d9cdbe09..1cbc1423 100644 --- a/app/Http/Livewire/Meetup/Form/MeetupEventForm.php +++ b/app/Http/Livewire/Meetup/Form/MeetupEventForm.php @@ -12,31 +12,34 @@ class MeetupEventForm extends Component use Actions; public string $country; + public ?MeetupEvent $meetupEvent = null; public bool $recurring = false; + public int $repetitions = 52; + public array $series = []; public function rules() { return [ - 'meetupEvent.meetup_id' => 'required', - 'meetupEvent.start' => 'required', - 'meetupEvent.location' => 'string|nullable', + 'meetupEvent.meetup_id' => 'required', + 'meetupEvent.start' => 'required', + 'meetupEvent.location' => 'string|nullable', 'meetupEvent.description' => 'string|nullable', - 'meetupEvent.link' => 'string|url|nullable', + 'meetupEvent.link' => 'string|url|nullable', 'series.*.start' => 'required', - 'recurring' => 'bool', + 'recurring' => 'bool', 'repetitions' => 'numeric|min:1', ]; } public function mount() { - if (!$this->meetupEvent) { + if (! $this->meetupEvent) { $this->meetupEvent = new MeetupEvent( [ 'start' => now() @@ -44,7 +47,7 @@ class MeetupEventForm extends Component ->addHours(17), ] ); - } elseif (!auth() + } elseif (! auth() ->user() ->can('update', $this->meetupEvent)) { abort(403); @@ -86,15 +89,15 @@ class MeetupEventForm extends Component $this->dialog() ->confirm( [ - 'title' => __('Delete event'), + 'title' => __('Delete event'), 'description' => __('Are you sure you want to delete this event? This action cannot be undone.'), - 'icon' => 'warning', - 'accept' => [ - 'label' => __('Yes, delete'), + 'icon' => 'warning', + 'accept' => [ + 'label' => __('Yes, delete'), 'method' => 'deleteEvent', ], - 'reject' => [ - 'label' => __('No, cancel'), + 'reject' => [ + 'label' => __('No, cancel'), 'method' => 'cancel', ], ] @@ -111,7 +114,7 @@ class MeetupEventForm extends Component public function submit() { $this->validate(); - if (!$this->meetupEvent->id) { + if (! $this->meetupEvent->id) { $hasAppointmentsOnThisDate = MeetupEvent::query() ->where('meetup_id', $this->meetupEvent->meetup_id) ->where('start', '>', Carbon::parse($this->meetupEvent->start) @@ -129,7 +132,7 @@ class MeetupEventForm extends Component $this->meetupEvent->save(); - if (!$this->meetupEvent->id && $this->recurring) { + if (! $this->meetupEvent->id && $this->recurring) { foreach ($this->series as $event) { $hasAppointmentsOnThisDate = MeetupEvent::query() ->where('meetup_id', $this->meetupEvent->meetup_id) diff --git a/app/Http/Livewire/Meetup/LandingPage.php b/app/Http/Livewire/Meetup/LandingPage.php index a052e8ce..6837f324 100644 --- a/app/Http/Livewire/Meetup/LandingPage.php +++ b/app/Http/Livewire/Meetup/LandingPage.php @@ -11,7 +11,9 @@ use RalphJSmit\Laravel\SEO\Support\SEOData; class LandingPage extends Component { public Meetup $meetup; + public Country $country; + public ?int $activeEvent = null; public ?int $year = null; @@ -34,7 +36,7 @@ class LandingPage extends Component ->where('meetup_events.start', '>=', now()) ->orderBy('start') ->get(), - 'events' => MeetupEvent::query() + 'events' => MeetupEvent::query() ->with([ 'meetup.city.country', ]) @@ -42,11 +44,11 @@ class LandingPage extends Component ->where('meetup_events.start', '>=', now()) ->orderBy('start') ->get() - ->map(fn($event) => [ - 'id' => $event->id, - 'startDate' => $event->start, - 'endDate' => $event->start->addHours(1), - 'location' => $event->location, + ->map(fn ($event) => [ + 'id' => $event->id, + 'startDate' => $event->start, + 'endDate' => $event->start->addHours(1), + 'location' => $event->location, 'description' => $event->description, ]), ]) @@ -55,7 +57,7 @@ class LandingPage extends Component title: $this->meetup->name, description: __('Bitcoiner Meetups are a great way to meet other Bitcoiners in your area. You can learn from each other, share ideas, and have fun!'), image: $this->meetup->getFirstMediaUrl('logo'), - ) + ), ]); } diff --git a/app/Http/Livewire/Meetup/LandingPageEvent.php b/app/Http/Livewire/Meetup/LandingPageEvent.php index 74829527..9414a677 100644 --- a/app/Http/Livewire/Meetup/LandingPageEvent.php +++ b/app/Http/Livewire/Meetup/LandingPageEvent.php @@ -12,10 +12,15 @@ use RalphJSmit\Laravel\SEO\Support\SEOData; class LandingPageEvent extends Component { public MeetupEvent $meetupEvent; + public Country $country; + public ?Meetup $meetup = null; + public bool $willShowUp = false; + public bool $perhapsShowUp = false; + public string $name = ''; public function rules() @@ -23,7 +28,7 @@ class LandingPageEvent extends Component return [ 'name' => [ 'required', - new UniqueAttendeeName($this->meetupEvent) + new UniqueAttendeeName($this->meetupEvent), ], ]; } @@ -40,33 +45,33 @@ class LandingPageEvent extends Component $attendees = collect($this->meetupEvent->attendees); $mightAttendees = collect($this->meetupEvent->might_attendees); - if (auth()->check() && $attendees->contains(fn($value) => str($value)->contains('id_'.auth()->id()))) { - $this->name = str($attendees->filter(fn($value) => str($value)->contains('id_'.auth()->id())) + if (auth()->check() && $attendees->contains(fn ($value) => str($value)->contains('id_'.auth()->id()))) { + $this->name = str($attendees->filter(fn ($value) => str($value)->contains('id_'.auth()->id())) ->first()) ->after('|') ->toString(); $this->willShowUp = true; } - if (!auth()->check() && $attendees->contains(fn($value) => str($value)->contains('anon_'.session()->getId()))) { - $this->name = str($attendees->filter(fn($value) => str($value)->contains('anon_'.session()->getId())) + if (! auth()->check() && $attendees->contains(fn ($value) => str($value)->contains('anon_'.session()->getId()))) { + $this->name = str($attendees->filter(fn ($value) => str($value)->contains('anon_'.session()->getId())) ->first()) ->after('|') ->toString(); $this->willShowUp = true; } - if (auth()->check() && $mightAttendees->contains(fn($value) => str($value)->contains('id_'.auth()->id()))) { - $this->name = str($mightAttendees->filter(fn($value) => str($value)->contains('id_'.auth()->id())) + if (auth()->check() && $mightAttendees->contains(fn ($value) => str($value)->contains('id_'.auth()->id()))) { + $this->name = str($mightAttendees->filter(fn ($value) => str($value)->contains('id_'.auth()->id())) ->first()) ->after('|') ->toString(); $this->perhapsShowUp = true; } - if (!auth()->check() && $mightAttendees->contains(fn($value + if (! auth()->check() && $mightAttendees->contains(fn ($value ) => str($value)->contains('anon_'.session()->getId()))) { - $this->name = str($mightAttendees->filter(fn($value) => str($value)->contains('anon_'.session()->getId())) + $this->name = str($mightAttendees->filter(fn ($value) => str($value)->contains('anon_'.session()->getId())) ->first()) ->after('|') ->toString(); @@ -79,29 +84,29 @@ class LandingPageEvent extends Component $attendees = collect($this->meetupEvent->attendees); $mightAttendees = collect($this->meetupEvent->might_attendees); - if (auth()->check() && $attendees->contains(fn($value) => str($value)->contains('id_'.auth()->id()))) { - $attendees = $attendees->filter(fn($value) => !str($value)->contains('id_'.auth()->id())); + if (auth()->check() && $attendees->contains(fn ($value) => str($value)->contains('id_'.auth()->id()))) { + $attendees = $attendees->filter(fn ($value) => ! str($value)->contains('id_'.auth()->id())); $this->willShowUp = false; } - if (!auth()->check() && $attendees->contains(fn($value) => str($value)->contains('anon_'.session()->getId()))) { - $attendees = $attendees->filter(fn($value) => !str($value)->contains('anon_'.session()->getId())); + if (! auth()->check() && $attendees->contains(fn ($value) => str($value)->contains('anon_'.session()->getId()))) { + $attendees = $attendees->filter(fn ($value) => ! str($value)->contains('anon_'.session()->getId())); $this->willShowUp = false; } - if (auth()->check() && $mightAttendees->contains(fn($value) => str($value)->contains('id_'.auth()->id()))) { - $mightAttendees = $mightAttendees->filter(fn($value) => !str($value)->contains('id_'.auth()->id())); + if (auth()->check() && $mightAttendees->contains(fn ($value) => str($value)->contains('id_'.auth()->id()))) { + $mightAttendees = $mightAttendees->filter(fn ($value) => ! str($value)->contains('id_'.auth()->id())); $this->perhapsShowUp = false; } - if (!auth()->check() && $mightAttendees->contains(fn($value + if (! auth()->check() && $mightAttendees->contains(fn ($value ) => str($value)->contains('anon_'.session()->getId()))) { - $mightAttendees = $mightAttendees->filter(fn($value) => !str($value)->contains('anon_'.session()->getId())); + $mightAttendees = $mightAttendees->filter(fn ($value) => ! str($value)->contains('anon_'.session()->getId())); $this->perhapsShowUp = false; } $this->meetupEvent->update([ - 'attendees' => $attendees->toArray(), + 'attendees' => $attendees->toArray(), 'might_attendees' => $mightAttendees->toArray(), ]); } @@ -111,12 +116,12 @@ class LandingPageEvent extends Component $this->validate(); $attendees = collect($this->meetupEvent->attendees); - if (auth()->check() && !$attendees->contains('id_'.auth()->id().'|'.$this->name)) { + if (auth()->check() && ! $attendees->contains('id_'.auth()->id().'|'.$this->name)) { $attendees->push('id_'.auth()->id().'|'.$this->name); $this->willShowUp = true; } - if (!auth()->check() && !$attendees->contains('anon_'.session()->getId().'|'.$this->name)) { + if (! auth()->check() && ! $attendees->contains('anon_'.session()->getId().'|'.$this->name)) { $attendees->push('anon_'.session()->getId().'|'.$this->name); $this->willShowUp = true; } @@ -131,12 +136,12 @@ class LandingPageEvent extends Component $this->validate(); $mightAttendees = collect($this->meetupEvent->might_attendees); - if (auth()->check() && !$mightAttendees->contains('id_'.auth()->id().'|'.$this->name)) { + if (auth()->check() && ! $mightAttendees->contains('id_'.auth()->id().'|'.$this->name)) { $mightAttendees->push('id_'.auth()->id().'|'.$this->name); $this->perhapsShowUp = true; } - if (!auth()->check() && !$mightAttendees->contains('anon_'.session()->getId().'|'.$this->name)) { + if (! auth()->check() && ! $mightAttendees->contains('anon_'.session()->getId().'|'.$this->name)) { $mightAttendees->push('anon_'.session()->getId().'|'.$this->name); $this->perhapsShowUp = true; } @@ -153,7 +158,7 @@ class LandingPageEvent extends Component title: $this->meetupEvent->start->asDateTime().' - '.$this->meetup->name, description: __('Here you can confirm your participation and find more information about the Meetup.').' - '.$this->meetupEvent->description, image: $this->meetup->getFirstMediaUrl('logo'), - ) + ), ]); } } diff --git a/app/Http/Livewire/Meetup/MeetupEventTable.php b/app/Http/Livewire/Meetup/MeetupEventTable.php index c001bb33..a3638715 100644 --- a/app/Http/Livewire/Meetup/MeetupEventTable.php +++ b/app/Http/Livewire/Meetup/MeetupEventTable.php @@ -20,7 +20,7 @@ class MeetupEventTable extends Component public function mount() { - if (!$this->year) { + if (! $this->year) { $this->year = now()->year; } } @@ -34,26 +34,26 @@ class MeetupEventTable extends Component ]) ->where('meetup_events.start', '>=', now()) ->whereHas('meetup.city.country', - fn($query) => $query->where('countries.code', $this->country->code)) + fn ($query) => $query->where('countries.code', $this->country->code)) ->get() - ->map(fn($event) => [ - 'id' => $event->id, - 'name' => $event->meetup->name.': '.$event->location, + ->map(fn ($event) => [ + 'id' => $event->id, + 'name' => $event->meetup->name.': '.$event->location, 'coords' => [$event->meetup->city->latitude, $event->meetup->city->longitude], ]), - 'events' => MeetupEvent::query() + 'events' => MeetupEvent::query() ->with([ 'meetup.city.country', ]) ->where('meetup_events.start', '>=', now()) ->whereHas('meetup.city.country', - fn($query) => $query->where('countries.code', $this->country->code)) + fn ($query) => $query->where('countries.code', $this->country->code)) ->get() - ->map(fn($event) => [ - 'id' => $event->id, - 'startDate' => $event->start, - 'endDate' => $event->start->addHours(1), - 'location' => $event->location, + ->map(fn ($event) => [ + 'id' => $event->id, + 'startDate' => $event->start, + 'endDate' => $event->start->addHours(1), + 'location' => $event->location, 'description' => $event->description, ]), ])->layout('layouts.app', [ @@ -61,7 +61,7 @@ class MeetupEventTable extends Component title: __('Meetup dates'), description: __('List of all meetup dates'), image: asset('img/screenshot.png') - ) + ), ]); } @@ -69,28 +69,27 @@ class MeetupEventTable extends Component { return to_route('meetup.table.meetupEvent', [ '#table', - 'country' => $this->country->code, - 'year' => $this->year, + 'country' => $this->country->code, + 'year' => $this->year, 'meetup_events' => [ 'filters' => [ 'byid' => $id, ], - ] + ], ]); } - public function popover($content, $ids) { return to_route('meetup.table.meetupEvent', [ '#table', - 'year' => $this->year, + 'year' => $this->year, 'country' => $this->country->code, - 'meetup_events' => [ + 'meetup_events' => [ 'filters' => [ 'byid' => $ids, - ] - ] + ], + ], ]); } } diff --git a/app/Http/Livewire/Meetup/MeetupTable.php b/app/Http/Livewire/Meetup/MeetupTable.php index 300e6192..de811b59 100644 --- a/app/Http/Livewire/Meetup/MeetupTable.php +++ b/app/Http/Livewire/Meetup/MeetupTable.php @@ -18,7 +18,7 @@ class MeetupTable extends Component return to_route('meetup.landing', [ 'country' => $meetup->city->country->code, - 'meetup' => $meetup, + 'meetup' => $meetup, ]); } @@ -32,11 +32,11 @@ class MeetupTable extends Component 'city.country', ]) ->whereHas('city.country', - fn($query) => $query->where('countries.code', $this->country->code)) + fn ($query) => $query->where('countries.code', $this->country->code)) ->get() - ->map(fn($meetup) => [ - 'id' => $meetup->id, - 'name' => $meetup->name, + ->map(fn ($meetup) => [ + 'id' => $meetup->id, + 'name' => $meetup->name, 'coords' => [$meetup->city->latitude, $meetup->city->longitude], ]), ])->layout('layouts.app', [ @@ -44,7 +44,7 @@ class MeetupTable extends Component title: __('Meetups'), description: __('Bitcoiner Meetups are a great way to meet other Bitcoiners in your area. You can learn from each other, share ideas, and have fun!'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/Meetup/PrepareForBtcMapItem.php b/app/Http/Livewire/Meetup/PrepareForBtcMapItem.php index 4bce88dd..229392cd 100644 --- a/app/Http/Livewire/Meetup/PrepareForBtcMapItem.php +++ b/app/Http/Livewire/Meetup/PrepareForBtcMapItem.php @@ -20,6 +20,7 @@ class PrepareForBtcMapItem extends Component public string $search = ''; public $population; + public $population_date = ''; public ?int $osm_id = null; @@ -52,7 +53,7 @@ class PrepareForBtcMapItem extends Component public function rules(): array { return [ - 'search' => 'required|string', + 'search' => 'required|string', 'currentPercentage' => 'required|numeric', 'model.simplified_geojson' => 'nullable', @@ -60,7 +61,7 @@ class PrepareForBtcMapItem extends Component 'OSMBoundaries' => 'bool', 'polygonsOSMfr' => 'bool', - 'population' => 'nullable|numeric', + 'population' => 'nullable|numeric', 'population_date' => 'nullable|string', 'polygonsOSMfrX' => 'numeric|max:1', @@ -84,7 +85,7 @@ class PrepareForBtcMapItem extends Component private function getSearchResults(): void { - $responses = Http::pool(fn(Pool $pool) => [ + $responses = Http::pool(fn (Pool $pool) => [ $pool->acceptJson() ->get( sprintf('https://nominatim.openstreetmap.org/search?q=%s&format=json&polygon_geojson=1&polygon_threshold=0.0003&email='.config('services.nominatim.email'), @@ -93,7 +94,7 @@ class PrepareForBtcMapItem extends Component ]); $this->osmSearchResults = collect($responses[0]->json()) - ->filter(fn($item + ->filter(fn ($item ) => ( $item['geojson']['type'] === 'Polygon' || $item['geojson']['type'] === 'MultiPolygon' @@ -156,7 +157,6 @@ class PrepareForBtcMapItem extends Component // emit event for AlpineJS $this->emit('geoJsonUpdated'); - } catch (\Exception $e) { $this->notification() ->error('Error', $e->getMessage()); @@ -180,9 +180,9 @@ class PrepareForBtcMapItem extends Component ->post( 'https://polygons.openstreetmap.fr/?id='.$this->selectedItemOSMPolygons['osm_id'], [ - 'x' => $this->polygonsOSMfrX, - 'y' => $this->polygonsOSMfrY, - 'z' => $this->polygonsOSMfrZ, + 'x' => $this->polygonsOSMfrX, + 'y' => $this->polygonsOSMfrY, + 'z' => $this->polygonsOSMfrZ, 'generate' => 'Submit+Query', ] ); @@ -247,9 +247,9 @@ class PrepareForBtcMapItem extends Component $response = Http::acceptJson() ->asForm() ->post('https://osm-boundaries.com/Ajax/GetBoundary', [ - 'db' => 'osm20221205', + 'db' => 'osm20221205', 'waterOrLand' => 'water', - 'osmId' => '-'.$this->selectedItemOSMPolygons['osm_id'], + 'osmId' => '-'.$this->selectedItemOSMPolygons['osm_id'], ]); if ($response->json()) { if (count($response->json()['coordinates'], COUNT_RECURSIVE) > 100000) { @@ -286,7 +286,7 @@ class PrepareForBtcMapItem extends Component $this->model->population = str($value) ->replace(['.', ','], '') ->toInteger(); - if (!$this->model->population_date) { + if (! $this->model->population_date) { $this->model->population_date = '2021-12-31'; } $this->model->save(); diff --git a/app/Http/Livewire/Meetup/WorldMap.php b/app/Http/Livewire/Meetup/WorldMap.php index baf25531..2607b3ef 100644 --- a/app/Http/Livewire/Meetup/WorldMap.php +++ b/app/Http/Livewire/Meetup/WorldMap.php @@ -4,7 +4,6 @@ namespace App\Http\Livewire\Meetup; use App\Models\Country; use App\Models\Meetup; -use App\Models\MeetupEvent; use Livewire\Component; use RalphJSmit\Laravel\SEO\Support\SEOData; @@ -19,7 +18,7 @@ class WorldMap extends Component return to_route('meetup.landing', [ 'country' => $meetup->city->country->code, - 'meetup' => $meetup, + 'meetup' => $meetup, ]); } @@ -31,16 +30,16 @@ class WorldMap extends Component 'city.country', ]) ->get() - ->map(fn($meetup) => [ - 'id' => $meetup->id, - 'name' => $meetup->name, + ->map(fn ($meetup) => [ + 'id' => $meetup->id, + 'name' => $meetup->name, 'coords' => [$meetup->city->latitude, $meetup->city->longitude], ]), ])->layout('layouts.app', [ 'SEOData' => new SEOData( title: __('World map of meetups'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/News/ArticleOverview.php b/app/Http/Livewire/News/ArticleOverview.php index b888cbfc..187d0725 100644 --- a/app/Http/Livewire/News/ArticleOverview.php +++ b/app/Http/Livewire/News/ArticleOverview.php @@ -31,7 +31,7 @@ class ArticleOverview extends Component if ($libraryItem->lecturer->twitter_username && $libraryItem->type !== 'markdown_article') { $libraryItemName .= ' von @'.$libraryItem->lecturer->twitter_username; } - if (!$libraryItem->lecturer->twitter_username) { + if (! $libraryItem->lecturer->twitter_username) { $libraryItemName .= ' von '.$libraryItem->lecturer->name; } @@ -39,7 +39,7 @@ class ArticleOverview extends Component if (config('feeds.services.twitterAccountId')) { $this->setNewAccessToken(1); - if (!$libraryItem->approved) { + if (! $libraryItem->approved) { $this->notification() ->error(__('Article not approved yet')); @@ -98,7 +98,7 @@ class ArticleOverview extends Component title: __('News'), description: __('Here we post important news that is relevant for everyone.'), image: asset('img/einundzwanzig-news-colored.png'), - ) + ), ]); } } diff --git a/app/Http/Livewire/News/Form/NewsArticleForm.php b/app/Http/Livewire/News/Form/NewsArticleForm.php index a7b1f6be..4ae8a527 100644 --- a/app/Http/Livewire/News/Form/NewsArticleForm.php +++ b/app/Http/Livewire/News/Form/NewsArticleForm.php @@ -12,28 +12,33 @@ class NewsArticleForm extends Component use WithFileUploads; public ?LibraryItem $libraryItem = null; + public $image; + public $currentImage = 0; + public $images; + public $imagesCloned = []; + public array $temporaryUrls = []; public function rules() { return [ - 'image' => [Rule::requiredIf(!$this->libraryItem->id), 'nullable', 'mimes:jpeg,png,jpg,gif', 'max:10240'], + 'image' => [Rule::requiredIf(! $this->libraryItem->id), 'nullable', 'mimes:jpeg,png,jpg,gif', 'max:10240'], - 'libraryItem.lecturer_id' => 'required', - 'libraryItem.name' => 'required', - 'libraryItem.type' => 'required', - 'libraryItem.language_code' => 'required', - 'libraryItem.value' => 'required', - 'libraryItem.subtitle' => 'required', - 'libraryItem.excerpt' => 'required', + 'libraryItem.lecturer_id' => 'required', + 'libraryItem.name' => 'required', + 'libraryItem.type' => 'required', + 'libraryItem.language_code' => 'required', + 'libraryItem.value' => 'required', + 'libraryItem.subtitle' => 'required', + 'libraryItem.excerpt' => 'required', 'libraryItem.main_image_caption' => 'required', - 'libraryItem.read_time' => 'required', - 'libraryItem.approved' => 'boolean', - 'libraryItem.news' => 'boolean', + 'libraryItem.read_time' => 'required', + 'libraryItem.approved' => 'boolean', + 'libraryItem.news' => 'boolean', ]; } @@ -41,12 +46,12 @@ class NewsArticleForm extends Component { if ($this->libraryItem === null) { $this->libraryItem = new LibraryItem([ - 'type' => 'markdown_article', - 'value' => '', - 'read_time' => 1, - 'news' => true, + 'type' => 'markdown_article', + 'value' => '', + 'read_time' => 1, + 'news' => true, 'language_code' => 'de', - 'approved' => auth() + 'approved' => auth() ->user() ->hasRole('news-editor'), ]); diff --git a/app/Http/Livewire/News/InternArticleView.php b/app/Http/Livewire/News/InternArticleView.php index 3bb49f3b..b359bc97 100644 --- a/app/Http/Livewire/News/InternArticleView.php +++ b/app/Http/Livewire/News/InternArticleView.php @@ -17,7 +17,7 @@ class InternArticleView extends Component 'libraries', ]); if ($this->libraryItem->libraries->where('is_public', false) - ->count() > 0 && !auth()->check()) { + ->count() > 0 && ! auth()->check()) { abort(403, __('Sorry! You are not authorized to perform this action.')); } } @@ -38,7 +38,7 @@ class InternArticleView extends Component image: $this->libraryItem->getFirstMedia('main') ? $this->libraryItem->getFirstMediaUrl('main') : asset('img/einundzwanzig-wallpaper-benrath.png'), published_time: Carbon::parse($this->libraryItem->created_at), type: 'article', - ) + ), ]); } } diff --git a/app/Http/Livewire/Profile/Meetups.php b/app/Http/Livewire/Profile/Meetups.php index 8f1ed100..e1304aac 100644 --- a/app/Http/Livewire/Profile/Meetups.php +++ b/app/Http/Livewire/Profile/Meetups.php @@ -11,9 +11,13 @@ class Meetups extends Component use Actions; public $search = ''; + public $meetups; + public $myMeetups = []; + public $myMeetupNames = []; + public $hasMeetups = false; public function rules() @@ -25,7 +29,7 @@ class Meetups extends Component public function mount() { - if (!auth()->user()) { + if (! auth()->user()) { return to_route('auth.ln'); } diff --git a/app/Http/Livewire/School/CityTable.php b/app/Http/Livewire/School/CityTable.php index 59ae56b0..5e6ab2de 100644 --- a/app/Http/Livewire/School/CityTable.php +++ b/app/Http/Livewire/School/CityTable.php @@ -17,7 +17,7 @@ class CityTable extends Component title: __('Courses'), description: __('Choose your city, search for courses in the surrounding area and select a topic that suits you.'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/School/CourseTable.php b/app/Http/Livewire/School/CourseTable.php index 9b81855c..2705e8a6 100644 --- a/app/Http/Livewire/School/CourseTable.php +++ b/app/Http/Livewire/School/CourseTable.php @@ -17,7 +17,7 @@ class CourseTable extends Component title: __('Courses'), description: __('Choose your city, search for courses in the surrounding area and select a topic that suits you.'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/School/EventTable.php b/app/Http/Livewire/School/EventTable.php index 5346580d..22be0b6e 100644 --- a/app/Http/Livewire/School/EventTable.php +++ b/app/Http/Livewire/School/EventTable.php @@ -17,7 +17,7 @@ class EventTable extends Component public function mount() { - if (!$this->year) { + if (! $this->year) { $this->year = now()->year; } } @@ -31,28 +31,28 @@ class EventTable extends Component 'venue.city.country', ]) ->where('from', '>=', now()) - ->where(fn($query) => $query + ->where(fn ($query) => $query ->whereHas('venue.city.country', - fn($query) => $query->where('countries.code', $this->country->code)) + fn ($query) => $query->where('countries.code', $this->country->code)) ) ->get() - ->map(fn($event) => [ - 'id' => $event->id, - 'name' => $event->course->name, + ->map(fn ($event) => [ + 'id' => $event->id, + 'name' => $event->course->name, 'coords' => [$event->venue->city->latitude, $event->venue->city->longitude], ]), - 'events' => CourseEvent::query() + 'events' => CourseEvent::query() ->with([ 'course', 'venue.city.country', ]) ->where('from', '>=', now()) ->get() - ->map(fn($event) => [ - 'id' => $event->id, - 'startDate' => $event->from, - 'endDate' => $event->to, - 'location' => $event->course->name, + ->map(fn ($event) => [ + 'id' => $event->id, + 'startDate' => $event->from, + 'endDate' => $event->to, + 'location' => $event->course->name, 'description' => $event->venue->name, ]), ])->layout('layouts.app', [ @@ -60,7 +60,7 @@ class EventTable extends Component title: __('Dates'), description: __('Dates for courses about Bitcoin.'), image: asset('img/screenshot.png') - ) + ), ]); } @@ -69,12 +69,12 @@ class EventTable extends Component return to_route('school.table.event', [ '#table', 'country' => $this->country->code, - 'year' => $this->year, - 'course_events' => [ + 'year' => $this->year, + 'course_events' => [ 'filters' => [ 'byid' => $id, ], - ] + ], ]); } @@ -83,12 +83,12 @@ class EventTable extends Component return to_route('school.table.event', [ '#table', 'country' => $this->country->code, - 'year' => $this->year, - 'course_events' => [ + 'year' => $this->year, + 'course_events' => [ 'filters' => [ 'byid' => $ids, - ] - ] + ], + ], ]); } } diff --git a/app/Http/Livewire/School/LecturerLandingPage.php b/app/Http/Livewire/School/LecturerLandingPage.php index 39e9480f..b5aa3d7b 100644 --- a/app/Http/Livewire/School/LecturerLandingPage.php +++ b/app/Http/Livewire/School/LecturerLandingPage.php @@ -11,9 +11,11 @@ use RalphJSmit\Laravel\SEO\Support\SEOData; class LecturerLandingPage extends Component { public Lecturer $lecturer; + public Country $country; public ?int $year = null; + public ?int $activeEvent = null; public function render() @@ -26,18 +28,18 @@ class LecturerLandingPage extends Component }) ->orderBy('from') ->get(), - 'events' => CourseEvent::query() + 'events' => CourseEvent::query() ->where('from', '>=', now()) ->whereHas('course', function ($query) { $query->where('lecturer_id', $this->lecturer->id); }) ->orderBy('from') ->get() - ->map(fn($event) => [ - 'id' => $event->id, - 'startDate' => $event->from, - 'endDate' => $event->to, - 'location' => $event->course->name, + ->map(fn ($event) => [ + 'id' => $event->id, + 'startDate' => $event->from, + 'endDate' => $event->to, + 'location' => $event->course->name, 'description' => $event->venue->name, ]), ]) @@ -46,7 +48,7 @@ class LecturerLandingPage extends Component title: $this->lecturer->name, description: $this->lecturer->intro ?? __('This lecturer has not yet written an introduction.'), image: $this->lecturer->getFirstMediaUrl('avatar'), - ) + ), ]); } diff --git a/app/Http/Livewire/School/LecturerTable.php b/app/Http/Livewire/School/LecturerTable.php index 6b2baeaf..caf31048 100644 --- a/app/Http/Livewire/School/LecturerTable.php +++ b/app/Http/Livewire/School/LecturerTable.php @@ -17,7 +17,7 @@ class LecturerTable extends Component title: __('Lecturers'), description: __('Lecturers in the surrounding area.'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/School/SearchByTagComponent.php b/app/Http/Livewire/School/SearchByTagComponent.php index 7d26f9aa..5e1ce65e 100644 --- a/app/Http/Livewire/School/SearchByTagComponent.php +++ b/app/Http/Livewire/School/SearchByTagComponent.php @@ -8,6 +8,7 @@ use Livewire\Component; class SearchByTagComponent extends Component { public string $country = 'de'; + public ?array $courses = []; protected $queryString = [ diff --git a/app/Http/Livewire/School/VenueTable.php b/app/Http/Livewire/School/VenueTable.php index 55de2738..8e8f09e4 100644 --- a/app/Http/Livewire/School/VenueTable.php +++ b/app/Http/Livewire/School/VenueTable.php @@ -17,7 +17,7 @@ class VenueTable extends Component title: __('Venues'), description: __('Venues in the surrounding area.'), image: asset('img/screenshot.png') - ) + ), ]); } } diff --git a/app/Http/Livewire/Tables/BitcoinEventTable.php b/app/Http/Livewire/Tables/BitcoinEventTable.php index f87a2198..da99fd25 100644 --- a/app/Http/Livewire/Tables/BitcoinEventTable.php +++ b/app/Http/Livewire/Tables/BitcoinEventTable.php @@ -10,8 +10,8 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter; class BitcoinEventTable extends DataTableComponent { - public string $country; + public string $tableName = 'bitcoin_events'; public function configure(): void @@ -20,17 +20,17 @@ class BitcoinEventTable extends DataTableComponent ->setDefaultSort('from', 'asc') ->setAdditionalSelects([ 'bitcoin_events.id', - 'bitcoin_events.venue_id' + 'bitcoin_events.venue_id', ]) ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) @@ -54,29 +54,29 @@ class BitcoinEventTable extends DataTableComponent return [ Column::make(__('Country'), 'venue.city.country.name') ->format( - fn($value, $row, Column $column) => view('columns.bitcoin_events.country')->withRow($row) + fn ($value, $row, Column $column) => view('columns.bitcoin_events.country')->withRow($row) ) ->sortable() ->collapseOnMobile(), Column::make(__('Title'), 'title') ->format( - fn($value, $row, Column $column) => view('columns.bitcoin_events.title')->withRow($row) + fn ($value, $row, Column $column) => view('columns.bitcoin_events.title')->withRow($row) ) ->sortable(), Column::make(__('From'), 'from') ->format( - fn($value, $row, Column $column) => $value->asDateTime() + fn ($value, $row, Column $column) => $value->asDateTime() ), Column::make(__('To'), 'to') ->format( - fn($value, $row, Column $column) => $value->asDateTime() + fn ($value, $row, Column $column) => $value->asDateTime() ) ->collapseOnMobile(), Column::make(__('Venue'), 'venue.name') ->collapseOnMobile(), Column::make(__('Link'), 'link') ->format( - fn($value, $row, Column $column) => view('columns.bitcoin_events.link')->withRow($row) + fn ($value, $row, Column $column) => view('columns.bitcoin_events.link')->withRow($row) ) ->sortable() ->collapseOnMobile(), @@ -87,12 +87,12 @@ class BitcoinEventTable extends DataTableComponent { return BitcoinEvent::query() ->with([ - 'venue.city.country' + 'venue.city.country', ]) ->where('bitcoin_events.from', '>=', now()) - ->where(fn($query) => $query + ->where(fn ($query) => $query ->whereHas('venue.city.country', - fn($query) => $query->where('code', $this->country)) + fn ($query) => $query->where('code', $this->country)) ->orWhere('show_worldwide', true) ); } diff --git a/app/Http/Livewire/Tables/BookCaseTable.php b/app/Http/Livewire/Tables/BookCaseTable.php index 15650291..9a18301c 100644 --- a/app/Http/Livewire/Tables/BookCaseTable.php +++ b/app/Http/Livewire/Tables/BookCaseTable.php @@ -3,9 +3,7 @@ namespace App\Http\Livewire\Tables; use App\Models\BookCase; -use App\Models\OrangePill; use Illuminate\Database\Eloquent\Builder; -use Livewire\WithFileUploads; use Rappasoft\LaravelLivewireTables\DataTableComponent; use Rappasoft\LaravelLivewireTables\Views\Column; use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter; @@ -16,6 +14,7 @@ class BookCaseTable extends DataTableComponent use Actions; public string $country; + public string $tableName = 'bookcases'; public function configure(): void @@ -24,14 +23,13 @@ class BookCaseTable extends DataTableComponent ->setAdditionalSelects(['id', 'homepage']) ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { - return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) @@ -39,7 +37,6 @@ class BookCaseTable extends DataTableComponent ->setPerPage(10); } - public function filters(): array { return [ @@ -54,27 +51,27 @@ class BookCaseTable extends DataTableComponent public function columns(): array { return [ - Column::make("Name", "title") + Column::make('Name', 'title') ->sortable() ->searchable( function (Builder $query, $searchTerm) { $query->where('title', 'ilike', '%'.$searchTerm.'%'); } ), - Column::make("Adresse", "address") + Column::make('Adresse', 'address') ->sortable() ->searchable(), - Column::make("Bitcoin-Bücher") + Column::make('Bitcoin-Bücher') ->label( - fn( + fn ( $row, Column $column ) => $row->orangePills->sum('amount') ) ->collapseOnMobile(), - Column::make("Letzter Input") + Column::make('Letzter Input') ->label( - fn( + fn ( $row, Column $column ) => $row->orangePills() @@ -82,9 +79,9 @@ class BookCaseTable extends DataTableComponent ->first()?->date->asDate() ) ->collapseOnMobile(), - Column::make("Link") + Column::make('Link') ->label( - fn( + fn ( $row, Column $column ) => $row->homepage ? 'Link' : null @@ -92,7 +89,7 @@ class BookCaseTable extends DataTableComponent ->html() ->collapseOnMobile(), Column::make('Orange-Pilled', 'orange_pilled') - ->label(fn($row, Column $column) => view('columns.book_cases.oranged-pilled') + ->label(fn ($row, Column $column) => view('columns.book_cases.oranged-pilled') ->withRow($row) ->withCountry($this->country)) ->collapseOnMobile(), @@ -104,7 +101,7 @@ class BookCaseTable extends DataTableComponent if (str($url)->contains('http')) { return $url; } - if (!str($url)->contains('http')) { + if (! str($url)->contains('http')) { return str($url)->prepend('https://'); } } diff --git a/app/Http/Livewire/Tables/CityTable.php b/app/Http/Livewire/Tables/CityTable.php index 5b474362..6b00ba11 100644 --- a/app/Http/Livewire/Tables/CityTable.php +++ b/app/Http/Livewire/Tables/CityTable.php @@ -14,6 +14,7 @@ class CityTable extends DataTableComponent use Actions; public string $country; + public string $type; public string $tableName = 'cities'; @@ -24,44 +25,44 @@ class CityTable extends DataTableComponent ->setAdditionalSelects(['id']) ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) ->setColumnSelectStatus(false) ->setPerPage(10) ->setConfigurableAreas([ - 'toolbar-left-end' => [ - 'columns.cities.areas.toolbar-left-end', [ - 'country' => $this->country, - ], - ], - ]); + 'toolbar-left-end' => [ + 'columns.cities.areas.toolbar-left-end', [ + 'country' => $this->country, + ], + ], + ]); } public function columns(): array { $columns = collect([ - Column::make("Stadt Name", "name") + Column::make('Stadt Name', 'name') ->sortable() - ->searchable(fn($builder, $term) => $builder->where('cities.name', 'ilike', '%'.$term.'%')), + ->searchable(fn ($builder, $term) => $builder->where('cities.name', 'ilike', '%'.$term.'%')), ]); if ($this->type === 'school') { $columns = $columns->merge([ Column::make('Veranstaltungs-Orte') ->label( - fn($row, Column $column) => $row->venues_count + fn ($row, Column $column) => $row->venues_count ) ->collapseOnMobile(), Column::make('Termine') ->label( - fn($row, Column $column) => $row->course_events_count + fn ($row, Column $column) => $row->course_events_count ) ->collapseOnMobile(), ]); @@ -70,7 +71,7 @@ class CityTable extends DataTableComponent return $columns->merge([ Column::make('') ->label( - fn($row, Column $column) => view('columns.cities.action') + fn ($row, Column $column) => view('columns.cities.action') ->withRow($row) ->withType($this->type) ), @@ -85,7 +86,7 @@ class CityTable extends DataTableComponent 'venues', 'courseEvents', ]) - ->whereHas('country', fn($query) => $query->where('code', $this->country)) + ->whereHas('country', fn ($query) => $query->where('code', $this->country)) ->orderByDesc('course_events_count') ->orderBy('cities.id'); } @@ -96,16 +97,17 @@ class CityTable extends DataTableComponent ->find($id); $query = City::radius($city->latitude, $city->longitude, 100) ->where('id', '!=', $id); + return to_route('school.table.event', [ '#table', 'country' => $this->country, - 'course_events' => [ + 'course_events' => [ 'filters' => [ 'stadt' => $query->pluck('name') ->push($city->name) - ->implode(',') + ->implode(','), ], - ] + ], ]); } @@ -118,17 +120,18 @@ class CityTable extends DataTableComponent if ($ids->isEmpty()) { $this->notification() ->error(__('No bookcases found in the radius of 5km')); + return; } return to_route('bookCases.table.bookcases', [ '#table', 'country' => $this->country, - 'bookcases' => [ + 'bookcases' => [ 'filters' => [ - 'byids' => $ids->implode(',') + 'byids' => $ids->implode(','), ], - ] + ], ]); } } diff --git a/app/Http/Livewire/Tables/CourseTable.php b/app/Http/Livewire/Tables/CourseTable.php index dac6a3d6..c4b106a7 100644 --- a/app/Http/Livewire/Tables/CourseTable.php +++ b/app/Http/Livewire/Tables/CourseTable.php @@ -12,6 +12,7 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\MultiSelectFilter; class CourseTable extends DataTableComponent { public string $country; + public string $tableName = 'courses'; public function configure(): void @@ -20,13 +21,13 @@ class CourseTable extends DataTableComponent ->setAdditionalSelects(['id']) ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) @@ -42,7 +43,7 @@ class CourseTable extends DataTableComponent Tag::query() ->withType('course') ->get() - ->mapWithKeys(fn($item, $key) => [$item->name => $item->name]) + ->mapWithKeys(fn ($item, $key) => [$item->name => $item->name]) ->toArray() ) ->filter(function (Builder $builder, array $values) { @@ -54,33 +55,33 @@ class CourseTable extends DataTableComponent public function columns(): array { return [ - Column::make('Dozent', "lecturer.name") + Column::make('Dozent', 'lecturer.name') ->label( - fn($row, Column $column) => view('columns.courses.lecturer')->withRow($row) + fn ($row, Column $column) => view('columns.courses.lecturer')->withRow($row) ) ->sortable() ->collapseOnMobile(), - Column::make("Name", "name") - ->searchable(fn(Builder $query, string $term) => $query->where('name', 'ilike', '%'.$term.'%')) + Column::make('Name', 'name') + ->searchable(fn (Builder $query, string $term) => $query->where('name', 'ilike', '%'.$term.'%')) ->sortable(), - Column::make("Tags") + Column::make('Tags') ->label( - fn($row, Column $column) => view('columns.courses.tags')->withRow($row) + fn ($row, Column $column) => view('columns.courses.tags')->withRow($row) ) ->collapseOnMobile(), - Column::make("Termine") + Column::make('Termine') ->label( - fn($row, Column $column) => ''.$row->course_events_count.'' + fn ($row, Column $column) => ''.$row->course_events_count.'' ) ->html() ->sortable() ->collapseOnMobile(), - Column::make("Erstellt am", "created_at") + Column::make('Erstellt am', 'created_at') ->sortable() ->collapseOnMobile(), Column::make('') ->label( - fn($row, Column $column) => view('columns.courses.action')->withRow($row) + fn ($row, Column $column) => view('columns.courses.action')->withRow($row) ), ]; } @@ -96,7 +97,7 @@ class CourseTable extends DataTableComponent 'courseEvents', ]) ->whereHas('courseEvents.venue.city.country', - fn($query) => $query->where('countries.code', $this->country)) + fn ($query) => $query->where('countries.code', $this->country)) ->orderByDesc('course_events_count') ->orderBy('courses.id'); } @@ -105,12 +106,12 @@ class CourseTable extends DataTableComponent { return to_route('school.table.event', [ '#table', - 'country' => $this->country, + 'country' => $this->country, 'course_events' => [ 'filters' => [ 'course_id' => $id, ], - ] + ], ]); } } diff --git a/app/Http/Livewire/Tables/EventTable.php b/app/Http/Livewire/Tables/EventTable.php index b74bcc3f..7136a263 100644 --- a/app/Http/Livewire/Tables/EventTable.php +++ b/app/Http/Livewire/Tables/EventTable.php @@ -15,8 +15,11 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter; class EventTable extends DataTableComponent { public string $country; + public bool $viewingModal = false; + public $currentModal; + public string $tableName = 'course_events'; public function configure(): void @@ -31,13 +34,13 @@ class EventTable extends DataTableComponent ]) ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) @@ -66,7 +69,7 @@ class EventTable extends DataTableComponent }); } else { $builder->whereHas('venue.city', - fn($query) => $query->where('cities.name', 'ilike', "%$value%")); + fn ($query) => $query->where('cities.name', 'ilike', "%$value%")); } }), TextFilter::make(__('Venue'), 'venue') @@ -75,7 +78,7 @@ class EventTable extends DataTableComponent ]) ->filter(function (Builder $builder, string $value) { $builder->whereHas('venue', - fn($query) => $query->where('venues.name', 'ilike', "%$value%")); + fn ($query) => $query->where('venues.name', 'ilike', "%$value%")); }), TextFilter::make(__('Course')) ->config([ @@ -83,13 +86,13 @@ class EventTable extends DataTableComponent ]) ->filter(function (Builder $builder, string $value) { $builder->whereHas('course', - fn($query) => $query->where('courses.name', 'ilike', "%$value%")); + fn ($query) => $query->where('courses.name', 'ilike', "%$value%")); }), TextFilter::make('Course by ID', 'course_id') ->hiddenFromMenus() ->filter(function (Builder $builder, string $value) { $builder->whereHas('course', - fn($query) => $query->where('courses.id', '=', $value)); + fn ($query) => $query->where('courses.id', '=', $value)); }), MultiSelectFilter::make(__('Type')) ->options( @@ -99,7 +102,7 @@ class EventTable extends DataTableComponent ) ->filter(function (Builder $builder, array $values) { $builder->whereHas('course.categories', - fn($query) => $query->whereIn('categories.id', $values)); + fn ($query) => $query->whereIn('categories.id', $values)); }), SelectFilter::make(__('Lecturer')) ->options( @@ -109,7 +112,7 @@ class EventTable extends DataTableComponent ) ->filter(function (Builder $builder, string $value) { $builder->whereHas('course.lecturer', - fn($query) => $query->where('lecturers.id', $value)); + fn ($query) => $query->where('lecturers.id', $value)); }), ]; } @@ -117,33 +120,33 @@ class EventTable extends DataTableComponent public function columns(): array { return [ - Column::make(_('City'), "venue.city.name") + Column::make(_('City'), 'venue.city.name') ->sortable() ->collapseOnMobile(), - Column::make(__('Venue'), "venue.name") + Column::make(__('Venue'), 'venue.name') ->sortable() ->collapseOnMobile(), - Column::make(__('Lecturer'), "course.lecturer.name") + Column::make(__('Lecturer'), 'course.lecturer.name') ->label( - fn($row, Column $column) => view('columns.events.lecturer')->withRow($row) + fn ($row, Column $column) => view('columns.events.lecturer')->withRow($row) ) ->sortable() ->collapseOnMobile(), - Column::make(__('Course'), "course.name") + Column::make(__('Course'), 'course.name') ->sortable(), Column::make(__('Type')) ->label( - fn($row, Column $column) => view('columns.events.categories')->withRow($row) + fn ($row, Column $column) => view('columns.events.categories')->withRow($row) ) ->collapseOnMobile(), - Column::make(__('From'), "from") + Column::make(__('From'), 'from') ->format( - fn($value, $row, Column $column) => $value->asDateTime() + fn ($value, $row, Column $column) => $value->asDateTime() ) ->sortable(), - Column::make(__('To'), "to") + Column::make(__('To'), 'to') ->format( - fn($value, $row, Column $column) => $value->asDateTime() + fn ($value, $row, Column $column) => $value->asDateTime() ) ->sortable() ->collapseOnMobile(), @@ -155,7 +158,7 @@ class EventTable extends DataTableComponent ->sortable(),*/ Column::make(__('Actions')) ->label( - fn($row, Column $column) => view('columns.events.action')->withRow($row) + fn ($row, Column $column) => view('columns.events.action')->withRow($row) ) ->collapseOnMobile(), ]; @@ -170,7 +173,7 @@ class EventTable extends DataTableComponent ]) ->where('from', '>=', now()) ->whereHas('venue.city.country', - fn($query) => $query->where('countries.code', $this->country)); + fn ($query) => $query->where('countries.code', $this->country)); } public function viewHistoryModal($modelId): void diff --git a/app/Http/Livewire/Tables/LecturerTable.php b/app/Http/Livewire/Tables/LecturerTable.php index 3f7ee664..54d4bf2b 100644 --- a/app/Http/Livewire/Tables/LecturerTable.php +++ b/app/Http/Livewire/Tables/LecturerTable.php @@ -12,6 +12,7 @@ use Rappasoft\LaravelLivewireTables\Views\Columns\ImageColumn; class LecturerTable extends DataTableComponent { public string $country; + public string $tableName = 'lecturers'; public function configure(): void @@ -20,13 +21,13 @@ class LecturerTable extends DataTableComponent ->setAdditionalSelects(['id']) ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) @@ -39,32 +40,32 @@ class LecturerTable extends DataTableComponent return [ ImageColumn::make('Bild') ->location( - fn($row) => $row->getFirstMediaUrl('avatar', 'thumb') + fn ($row) => $row->getFirstMediaUrl('avatar', 'thumb') ) - ->attributes(fn($row) => [ + ->attributes(fn ($row) => [ 'class' => 'rounded h-16 w-16', - 'alt' => $row->name.' Avatar', + 'alt' => $row->name.' Avatar', ]) ->collapseOnMobile(), - Column::make("Name", "name") - ->searchable(fn($query, $term) => $query->where('name', 'ilike', '%'.$term.'%')) + Column::make('Name', 'name') + ->searchable(fn ($query, $term) => $query->where('name', 'ilike', '%'.$term.'%')) ->sortable(), - BooleanColumn::make("Aktiv", 'active') + BooleanColumn::make('Aktiv', 'active') ->sortable() ->collapseOnMobile(), Column::make('Kurse') ->label( - fn($row, Column $column) => $row->courses_count + fn ($row, Column $column) => $row->courses_count ) ->collapseOnMobile(), Column::make('Inhalte') ->label( - fn($row, Column $column) => $row->library_items_count + fn ($row, Column $column) => $row->library_items_count ) ->collapseOnMobile(), Column::make('') ->label( - fn($row, Column $column) => view('columns.lectures.action') + fn ($row, Column $column) => view('columns.lectures.action') ->withRow($row) ->withCountry($this->country) ), @@ -89,22 +90,22 @@ class LecturerTable extends DataTableComponent if ($event) { return to_route('school.table.event', [ '#table', - 'country' => $this->country, + 'country' => $this->country, 'course_events' => [ 'filters' => [ 'dozent' => $lecturer->id, ], - ] + ], ]); } else { return to_route('library.table.libraryItems', [ '#table', - 'country' => $this->country, + 'country' => $this->country, 'library_items' => [ 'filters' => [ 'lecturer_id' => $lecturer->id, ], - ] + ], ]); } } diff --git a/app/Http/Livewire/Tables/LibraryItemTable.php b/app/Http/Livewire/Tables/LibraryItemTable.php index feb1e4f1..8499bbe4 100644 --- a/app/Http/Livewire/Tables/LibraryItemTable.php +++ b/app/Http/Livewire/Tables/LibraryItemTable.php @@ -17,6 +17,7 @@ use Spatie\LaravelOptions\Options; class LibraryItemTable extends DataTableComponent { public string $currentTab; + public string $tableName = 'library_items'; public function configure(): void @@ -27,13 +28,13 @@ class LibraryItemTable extends DataTableComponent ->setDefaultSort('order_column', 'asc') ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) @@ -88,7 +89,7 @@ class LibraryItemTable extends DataTableComponent }); } else { $builder->whereHas('libraries', - fn($query) => $query->where('libraries.name', 'ilike', "%$value%")); + fn ($query) => $query->where('libraries.name', 'ilike', "%$value%")); } }), SelectFilter::make('Art') @@ -97,7 +98,7 @@ class LibraryItemTable extends DataTableComponent Options::forEnum(LibraryItemType::class) ->toArray() ) - ->mapWithKeys(fn($value, $key) => [$value['value'] => $value['label']]) + ->mapWithKeys(fn ($value, $key) => [$value['value'] => $value['label']]) ->prepend('*', '') ->toArray() ) @@ -115,18 +116,18 @@ class LibraryItemTable extends DataTableComponent return [ Column::make(__('Image')) ->label( - fn($row, Column $column) => view('columns.library_items.image')->withRow($row) + fn ($row, Column $column) => view('columns.library_items.image')->withRow($row) ) ->collapseOnMobile(), - Column::make(__('Creator'), "lecturer.name") + Column::make(__('Creator'), 'lecturer.name') ->label( - fn($row, Column $column) => view('columns.courses.lecturer')->withRow($row) + fn ($row, Column $column) => view('columns.courses.lecturer')->withRow($row) ) ->sortable() ->collapseOnMobile(), - Column::make("Name", "name") + Column::make('Name', 'name') ->sortable(), - Column::make("Art", "type") + Column::make('Art', 'type') ->format( function ($value, $row, Column $column) { return 'label( - fn($row, Column $column) => view('columns.library_items.tags')->withRow($row) + fn ($row, Column $column) => view('columns.library_items.tags')->withRow($row) ) ->collapseOnMobile(), Column::make('') ->label( - fn($row, Column $column) => view('columns.library_items.action')->withRow($row) + fn ($row, Column $column) => view('columns.library_items.action')->withRow($row) ), ]; } @@ -167,14 +168,14 @@ class LibraryItemTable extends DataTableComponent 'lecturer', 'tags', ]) - ->whereHas('libraries', fn($query) => $query->where('libraries.is_public', $shouldBePublic)) - ->when($this->currentTab !== '*', fn($query) => $query + ->whereHas('libraries', fn ($query) => $query->where('libraries.is_public', $shouldBePublic)) + ->when($this->currentTab !== '*', fn ($query) => $query ->whereHas('libraries', - fn($query) => $query + fn ($query) => $query ->where('libraries.name', $this->currentTab) ) ->orWhereHas('libraries', - fn($query) => $query + fn ($query) => $query ->where('libraries.parent_id', $parentLibrary->id) ) ) diff --git a/app/Http/Livewire/Tables/MeetupEventTable.php b/app/Http/Livewire/Tables/MeetupEventTable.php index add0a8ed..2824b25e 100644 --- a/app/Http/Livewire/Tables/MeetupEventTable.php +++ b/app/Http/Livewire/Tables/MeetupEventTable.php @@ -21,13 +21,13 @@ class MeetupEventTable extends DataTableComponent ->setDefaultSort('start', 'asc') ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) @@ -63,31 +63,31 @@ class MeetupEventTable extends DataTableComponent $columns = [ Column::make(__('Meetup'), 'meetup.name') ->format( - fn($value, $row, Column $column) => view('columns.meetup_events.name') + fn ($value, $row, Column $column) => view('columns.meetup_events.name') ->withRow($row) ->withCountry($this->country) ) - ->searchable(fn($builder, $term) => $builder->where('meetups.name', 'ilike', '%'.$term.'%')) + ->searchable(fn ($builder, $term) => $builder->where('meetups.name', 'ilike', '%'.$term.'%')) ->sortable(), Column::make(__('Location'), 'location') - ->searchable(fn($builder, $term) => $builder->where('location', 'ilike', '%'.$term.'%')) + ->searchable(fn ($builder, $term) => $builder->where('location', 'ilike', '%'.$term.'%')) ->sortable() ->collapseOnMobile(), Column::make(__('Start'), 'start') ->format( - fn($value, $row, Column $column) => $value->asDateTime() + fn ($value, $row, Column $column) => $value->asDateTime() ) ->sortable() ->collapseOnMobile(), Column::make(__('Confirmations')) ->label( - fn($row, Column $column) => view('columns.meetup_events.confirmations') + fn ($row, Column $column) => view('columns.meetup_events.confirmations') ->withRow($row) ) ->collapseOnMobile(), Column::make(__('Link')) ->label( - fn($row, Column $column) => view('columns.meetup_events.link') + fn ($row, Column $column) => view('columns.meetup_events.link') ->withRow($row) ) ->collapseOnMobile(), @@ -96,7 +96,7 @@ class MeetupEventTable extends DataTableComponent $adminColumns = auth()->check() ? [ Column::make(__('Actions')) ->label( - fn($row, Column $column) => view('columns.meetup_events.manage') + fn ($row, Column $column) => view('columns.meetup_events.manage') ->withRow($row) ) ->collapseOnMobile(), @@ -109,7 +109,7 @@ class MeetupEventTable extends DataTableComponent { return MeetupEvent::query() ->where('meetup_events.start', '>=', now()) - ->whereHas('meetup.city.country', fn($query) => $query->where('code', $this->country)) + ->whereHas('meetup.city.country', fn ($query) => $query->where('code', $this->country)) ->with([ 'meetup.city.country', ]); diff --git a/app/Http/Livewire/Tables/MeetupForBtcMapTable.php b/app/Http/Livewire/Tables/MeetupForBtcMapTable.php index 2ad6c36a..230d8240 100644 --- a/app/Http/Livewire/Tables/MeetupForBtcMapTable.php +++ b/app/Http/Livewire/Tables/MeetupForBtcMapTable.php @@ -29,16 +29,16 @@ class MeetupForBtcMapTable extends DataTableComponent public function columns(): array { return [ - Column::make("Id", "id") + Column::make('Id', 'id') ->sortable(), - Column::make("Name", "name") + Column::make('Name', 'name') ->sortable(), - Column::make("City", "city.name") + Column::make('City', 'city.name') ->sortable(), - Column::make("Country", "city.country.name") + Column::make('Country', 'city.country.name') ->sortable(), - Column::make("Actions") - ->label(fn($row, Column $column) => view('columns.meetups.osm-actions', ['row' => $row])), + Column::make('Actions') + ->label(fn ($row, Column $column) => view('columns.meetups.osm-actions', ['row' => $row])), ]; } diff --git a/app/Http/Livewire/Tables/MeetupTable.php b/app/Http/Livewire/Tables/MeetupTable.php index f61d9b97..b8ed35a2 100644 --- a/app/Http/Livewire/Tables/MeetupTable.php +++ b/app/Http/Livewire/Tables/MeetupTable.php @@ -11,6 +11,7 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter; class MeetupTable extends DataTableComponent { public ?string $country = null; + public string $tableName = 'meetups'; public function configure(): void @@ -19,13 +20,13 @@ class MeetupTable extends DataTableComponent ->setAdditionalSelects(['id', 'slug']) ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) @@ -49,16 +50,16 @@ class MeetupTable extends DataTableComponent return [ Column::make(__('Name'), 'name') ->format( - fn($value, $row, Column $column) => view('columns.meetups.name') + fn ($value, $row, Column $column) => view('columns.meetups.name') ->withRow($row) ) - ->searchable(fn($builder, $term) => $builder->where('meetups.name', 'ilike', '%'.$term.'%')), + ->searchable(fn ($builder, $term) => $builder->where('meetups.name', 'ilike', '%'.$term.'%')), Column::make(__('Plebs')) - ->label(fn($row, Column $column) => $row->users_count) + ->label(fn ($row, Column $column) => $row->users_count) ->collapseOnMobile(), Column::make(__('Links')) ->label( - fn($row, Column $column) => view('columns.meetups.action') + fn ($row, Column $column) => view('columns.meetups.action') ->withRow($row) ->withIcs(route('meetup.ics', ['country' => $this->country ?? $row->city->country->code, 'meetup' => $row->id])) @@ -77,15 +78,15 @@ class MeetupTable extends DataTableComponent 'meetupEvents', ]) ->when($this->country, - fn($query, $country) => $query->whereRelation('city.country', 'code', $this->country)) + fn ($query, $country) => $query->whereRelation('city.country', 'code', $this->country)) ->withCount([ 'users', - 'meetupEvents' => fn($query) => $query->where('start', '>=', + 'meetupEvents' => fn ($query) => $query->where('start', '>=', now()), ]) - ->when(!$this->country, fn($query) => $query->orderByDesc('users_count') + ->when(! $this->country, fn ($query) => $query->orderByDesc('users_count') ->orderBy('meetups.id')) - ->when($this->country, fn($query) => $query->orderByDesc('meetup_events_count') + ->when($this->country, fn ($query) => $query->orderByDesc('meetup_events_count') ->orderBy('meetups.id')); } @@ -95,10 +96,10 @@ class MeetupTable extends DataTableComponent ->find($id); return to_route('meetup.table.meetupEvent', [ - 'country' => $this->country ?? $meetup->city->country->code, + 'country' => $this->country ?? $meetup->city->country->code, 'meetup_events' => [ 'filters' => ['bymeetupid' => $id], - ] + ], ]); } } diff --git a/app/Http/Livewire/Tables/VenueTable.php b/app/Http/Livewire/Tables/VenueTable.php index d86a9056..582494eb 100644 --- a/app/Http/Livewire/Tables/VenueTable.php +++ b/app/Http/Livewire/Tables/VenueTable.php @@ -20,13 +20,13 @@ class VenueTable extends DataTableComponent ->setAdditionalSelects(['id']) ->setThAttributes(function (Column $column) { return [ - 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'default' => false, ]; }) ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { return [ - 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'default' => false, ]; }) @@ -39,27 +39,27 @@ class VenueTable extends DataTableComponent return [ ImageColumn::make('Bild') ->location( - fn($row) => $row->getFirstMediaUrl('images', 'thumb') + fn ($row) => $row->getFirstMediaUrl('images', 'thumb') ) - ->attributes(fn($row) => [ + ->attributes(fn ($row) => [ 'class' => 'rounded h-16 w-16', - 'alt' => $row->name.' Avatar', + 'alt' => $row->name.' Avatar', ]) ->collapseOnMobile(), - Column::make("Name", "name") - ->searchable(fn($query, $term) => $query->where('name', 'ilike', '%'.$term.'%')) + Column::make('Name', 'name') + ->searchable(fn ($query, $term) => $query->where('name', 'ilike', '%'.$term.'%')) ->sortable(), - Column::make("Street", "street") + Column::make('Street', 'street') ->sortable() ->collapseOnMobile(), Column::make('Termine') ->label( - fn($row, Column $column) => $row->course_events_count + fn ($row, Column $column) => $row->course_events_count ) ->collapseOnMobile(), Column::make('') ->label( - fn($row, Column $column) => view('columns.venues.action')->withRow($row) + fn ($row, Column $column) => view('columns.venues.action')->withRow($row) ), ]; } @@ -70,7 +70,7 @@ class VenueTable extends DataTableComponent ->withCount([ 'courseEvents', ]) - ->whereHas('city.country', fn($query) => $query->where('code', $this->country)) + ->whereHas('city.country', fn ($query) => $query->where('code', $this->country)) ->orderByDesc('course_events_count') ->orderBy('venues.id'); } @@ -82,12 +82,12 @@ class VenueTable extends DataTableComponent return to_route('school.table.event', [ '#table', - 'country' => $this->country, + 'country' => $this->country, 'course_events' => [ 'filters' => [ 'venue' => $venue->name, ], - ] + ], ]); } } diff --git a/app/Http/Middleware/CustomEnsureEmailVerified.php b/app/Http/Middleware/CustomEnsureEmailVerified.php index 0fcb0b9c..753ed785 100644 --- a/app/Http/Middleware/CustomEnsureEmailVerified.php +++ b/app/Http/Middleware/CustomEnsureEmailVerified.php @@ -15,16 +15,15 @@ class CustomEnsureEmailVerified * * @param \Illuminate\Http\Request $request * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next - * * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse */ public function handle(Request $request, Closure $next, $redirectToRoute = null) { - if (!$request->user() || + if (! $request->user() || ( $request->user() instanceof MustVerifyEmail - && !$request->user()->public_key - && !$request->user() + && ! $request->user()->public_key + && ! $request->user() ->hasVerifiedEmail() ) ) { diff --git a/app/Http/Middleware/NeedMeetupMiddleware.php b/app/Http/Middleware/NeedMeetupMiddleware.php index 5cbbc0ed..a0c549bc 100644 --- a/app/Http/Middleware/NeedMeetupMiddleware.php +++ b/app/Http/Middleware/NeedMeetupMiddleware.php @@ -4,8 +4,6 @@ namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; -use Illuminate\Support\Facades\App; -use Illuminate\Support\Facades\Cookie; class NeedMeetupMiddleware { @@ -14,7 +12,6 @@ class NeedMeetupMiddleware * * @param \Illuminate\Http\Request $request * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next - * * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse */ public function handle(Request $request, Closure $next) diff --git a/app/Http/Middleware/SetTimezoneForNovaMiddleware.php b/app/Http/Middleware/SetTimezoneForNovaMiddleware.php index 19cf521f..ee19e567 100644 --- a/app/Http/Middleware/SetTimezoneForNovaMiddleware.php +++ b/app/Http/Middleware/SetTimezoneForNovaMiddleware.php @@ -14,7 +14,6 @@ class SetTimezoneForNovaMiddleware * * @param \Illuminate\Http\Request $request * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next - * * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse */ public function handle(Request $request, Closure $next) diff --git a/app/Http/Middleware/SetTimezoneMiddleware.php b/app/Http/Middleware/SetTimezoneMiddleware.php index 91fda077..b51f7897 100644 --- a/app/Http/Middleware/SetTimezoneMiddleware.php +++ b/app/Http/Middleware/SetTimezoneMiddleware.php @@ -14,7 +14,6 @@ class SetTimezoneMiddleware * * @param \Illuminate\Http\Request $request * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next - * * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse */ public function handle(Request $request, Closure $next) @@ -24,14 +23,14 @@ class SetTimezoneMiddleware && $timezone = $request->user()->timezone ) { config([ - 'app.timezone' => $timezone, + 'app.timezone' => $timezone, 'app.user-timezone' => $timezone, ]); return $next($request); } config([ - 'app.timezone' => 'Europe/Berlin', + 'app.timezone' => 'Europe/Berlin', 'app.user-timezone' => 'Europe/Berlin', ]); diff --git a/app/Listeners/AddLoginReputation.php b/app/Listeners/AddLoginReputation.php index 5dbcd79f..b2658116 100644 --- a/app/Listeners/AddLoginReputation.php +++ b/app/Listeners/AddLoginReputation.php @@ -9,6 +9,7 @@ class AddLoginReputation { /** * Create the event listener. + * * @return void */ public function __construct() @@ -20,7 +21,6 @@ class AddLoginReputation * Handle the event. * * @param object $event - * * @return void */ public function handle($event) diff --git a/app/Models/BitcoinEvent.php b/app/Models/BitcoinEvent.php index a0d9ddf7..cbdbfd25 100644 --- a/app/Models/BitcoinEvent.php +++ b/app/Models/BitcoinEvent.php @@ -17,25 +17,27 @@ class BitcoinEvent extends Model implements HasMedia /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'venue_id' => 'integer', - 'from' => 'datetime', - 'to' => 'datetime', + 'from' => 'datetime', + 'to' => 'datetime', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); diff --git a/app/Models/BookCase.php b/app/Models/BookCase.php index 3a197cc3..953a6a7d 100644 --- a/app/Models/BookCase.php +++ b/app/Models/BookCase.php @@ -3,7 +3,6 @@ namespace App\Models; use Akuechler\Geoly; -use App\Models\Scopes\ActiveBookCases; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; @@ -23,26 +22,28 @@ class BookCase extends Model implements HasMedia /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', - 'lat' => 'double', - 'lon' => 'array', - 'digital' => 'boolean', + 'id' => 'integer', + 'lat' => 'double', + 'lon' => 'array', + 'digital' => 'boolean', 'deactivated' => 'boolean', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); diff --git a/app/Models/Category.php b/app/Models/Category.php index 09c28de5..b6e3a263 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -12,12 +12,14 @@ class Category extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ diff --git a/app/Models/City.php b/app/Models/City.php index b4663f59..b037c613 100644 --- a/app/Models/City.php +++ b/app/Models/City.php @@ -19,25 +19,27 @@ class City extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', - 'country_id' => 'integer', - 'osm_relation' => 'json', + 'id' => 'integer', + 'country_id' => 'integer', + 'osm_relation' => 'json', 'simplified_geojson' => 'json', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); @@ -69,12 +71,12 @@ class City extends Model return $this->hasMany(Venue::class); } - function courseEvents() + public function courseEvents() { return $this->hasManyThrough(CourseEvent::class, Venue::class); } - function meetups() + public function meetups() { return $this->hasMany(Meetup::class); } diff --git a/app/Models/Country.php b/app/Models/Country.php index 8166b117..5998d32c 100644 --- a/app/Models/Country.php +++ b/app/Models/Country.php @@ -12,16 +12,18 @@ class Country extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'language_codes' => 'array', ]; diff --git a/app/Models/Course.php b/app/Models/Course.php index 582ecc40..e1919a0a 100644 --- a/app/Models/Course.php +++ b/app/Models/Course.php @@ -21,23 +21,25 @@ class Course extends Model implements HasMedia /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'lecturer_id' => 'integer', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); diff --git a/app/Models/CourseEvent.php b/app/Models/CourseEvent.php index 38e68e95..903ae665 100644 --- a/app/Models/CourseEvent.php +++ b/app/Models/CourseEvent.php @@ -13,26 +13,28 @@ class CourseEvent extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'course_id' => 'integer', - 'venue_id' => 'integer', - 'from' => 'datetime', - 'to' => 'datetime', + 'venue_id' => 'integer', + 'from' => 'datetime', + 'to' => 'datetime', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); diff --git a/app/Models/Episode.php b/app/Models/Episode.php index 3b2d3aca..da660a42 100644 --- a/app/Models/Episode.php +++ b/app/Models/Episode.php @@ -15,24 +15,26 @@ class Episode extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'podcast_id' => 'integer', - 'data' => 'array', + 'data' => 'array', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); diff --git a/app/Models/Lecturer.php b/app/Models/Lecturer.php index 8a8fdc85..99633ea4 100644 --- a/app/Models/Lecturer.php +++ b/app/Models/Lecturer.php @@ -23,26 +23,29 @@ class Lecturer extends Model implements HasMedia /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; + /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'team_id' => 'integer', - 'active' => 'boolean', + 'active' => 'boolean', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } - if (!$model->team_id) { + if (! $model->team_id) { $model->team_id = auth()->user()->current_team_id; } }); diff --git a/app/Models/Library.php b/app/Models/Library.php index dfdb5dc8..c572470c 100644 --- a/app/Models/Library.php +++ b/app/Models/Library.php @@ -6,7 +6,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; -use Illuminate\Database\Eloquent\Relations\HasMany; class Library extends Model { @@ -14,23 +13,25 @@ class Library extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'language_codes' => 'array', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); @@ -46,7 +47,7 @@ class Library extends Model return $this->belongsToMany(LibraryItem::class); } - public function parent() : BelongsTo + public function parent(): BelongsTo { return $this->belongsTo(__CLASS__, 'parent_id'); } diff --git a/app/Models/LibraryItem.php b/app/Models/LibraryItem.php index 7bc580e6..27d49d29 100644 --- a/app/Models/LibraryItem.php +++ b/app/Models/LibraryItem.php @@ -31,18 +31,20 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'lecturer_id' => 'integer', - 'library_id' => 'integer', + 'library_id' => 'integer', ]; public static function getFeedItems() @@ -61,7 +63,7 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); @@ -95,7 +97,7 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable $this->addMediaCollection('single_file') ->acceptsMimeTypes([ 'application/pdf', 'application/zip', 'application/octet-stream', 'application/x-zip-compressed', - 'multipart/x-zip' + 'multipart/x-zip', ]) ->singleFile(); $this->addMediaCollection('images') diff --git a/app/Models/LoginKey.php b/app/Models/LoginKey.php index a335843e..1bb9eac0 100644 --- a/app/Models/LoginKey.php +++ b/app/Models/LoginKey.php @@ -11,12 +11,14 @@ class LoginKey extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = []; diff --git a/app/Models/Meetup.php b/app/Models/Meetup.php index 0305d7cc..572d80e1 100644 --- a/app/Models/Meetup.php +++ b/app/Models/Meetup.php @@ -23,24 +23,27 @@ class Meetup extends Model implements HasMedia /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; + /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', - 'city_id' => 'integer', - 'github_data' => 'json', + 'id' => 'integer', + 'city_id' => 'integer', + 'github_data' => 'json', 'simplified_geojson' => 'array', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); @@ -103,13 +106,13 @@ class Meetup extends Model implements HasMedia } return Attribute::make( - get: fn() => url()->route('img', + get: fn () => url()->route('img', [ 'path' => $path, - 'w' => 900, - 'h' => 900, - 'fit' => 'crop', - 'fm' => 'webp' + 'w' => 900, + 'h' => 900, + 'fit' => 'crop', + 'fm' => 'webp', ]), ); } diff --git a/app/Models/MeetupEvent.php b/app/Models/MeetupEvent.php index 39fa9e63..7b9abea3 100644 --- a/app/Models/MeetupEvent.php +++ b/app/Models/MeetupEvent.php @@ -14,26 +14,28 @@ class MeetupEvent extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', - 'meetup_id' => 'integer', - 'start' => 'datetime', - 'attendees' => 'array', + 'id' => 'integer', + 'meetup_id' => 'integer', + 'start' => 'datetime', + 'attendees' => 'array', 'might_attendees' => 'array', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); @@ -64,6 +66,6 @@ class MeetupEvent extends Model */ public function commentUrl(): string { - return url()->route('meetup.event.landing', ['country' => $this->meetup->city->country,'meetupEvent' => $this]); + return url()->route('meetup.event.landing', ['country' => $this->meetup->city->country, 'meetupEvent' => $this]); } } diff --git a/app/Models/Membership.php b/app/Models/Membership.php index 7f9eedd1..f4ca8431 100644 --- a/app/Models/Membership.php +++ b/app/Models/Membership.php @@ -8,6 +8,7 @@ class Membership extends JetstreamMembership { /** * Indicates if the IDs are auto-incrementing. + * * @var bool */ public $incrementing = true; diff --git a/app/Models/OrangePill.php b/app/Models/OrangePill.php index eac04012..0a4c4b7f 100644 --- a/app/Models/OrangePill.php +++ b/app/Models/OrangePill.php @@ -18,19 +18,21 @@ class OrangePill extends Model implements HasMedia /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', - 'user_id' => 'integer', + 'id' => 'integer', + 'user_id' => 'integer', 'book_case_id' => 'integer', - 'date' => 'datetime', + 'date' => 'datetime', ]; protected static function booted() diff --git a/app/Models/Participant.php b/app/Models/Participant.php index d4dd3c09..aff2edb7 100644 --- a/app/Models/Participant.php +++ b/app/Models/Participant.php @@ -11,12 +11,14 @@ class Participant extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ diff --git a/app/Models/Podcast.php b/app/Models/Podcast.php index 011ebcf8..7730bba9 100644 --- a/app/Models/Podcast.php +++ b/app/Models/Podcast.php @@ -13,23 +13,25 @@ class Podcast extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'data' => 'array', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); diff --git a/app/Models/Registration.php b/app/Models/Registration.php index 8da05350..0df323e7 100644 --- a/app/Models/Registration.php +++ b/app/Models/Registration.php @@ -12,19 +12,21 @@ class Registration extends Model /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', - 'event_id' => 'integer', + 'id' => 'integer', + 'event_id' => 'integer', 'participant_id' => 'integer', - 'active' => 'boolean', + 'active' => 'boolean', ]; public function courseEvent(): BelongsTo diff --git a/app/Models/Scopes/ActiveBookCases.php b/app/Models/Scopes/ActiveBookCases.php index 50557f2a..e35afa1c 100644 --- a/app/Models/Scopes/ActiveBookCases.php +++ b/app/Models/Scopes/ActiveBookCases.php @@ -13,7 +13,6 @@ class ActiveBookCases implements Scope * * @param \Illuminate\Database\Eloquent\Builder $builder * @param \Illuminate\Database\Eloquent\Model $model - * * @return void */ public function apply(Builder $builder, Model $model) diff --git a/app/Models/Team.php b/app/Models/Team.php index 6fac59b1..e63d9a5a 100644 --- a/app/Models/Team.php +++ b/app/Models/Team.php @@ -14,6 +14,7 @@ class Team extends JetstreamTeam /** * The attributes that should be cast. + * * @var array */ protected $casts = [ @@ -22,6 +23,7 @@ class Team extends JetstreamTeam /** * The attributes that are mass assignable. + * * @var string[] */ protected $fillable = [ @@ -31,6 +33,7 @@ class Team extends JetstreamTeam /** * The event map for the model. + * * @var array */ protected $dispatchesEvents = [ diff --git a/app/Models/TeamInvitation.php b/app/Models/TeamInvitation.php index f9bca527..265e73bc 100644 --- a/app/Models/TeamInvitation.php +++ b/app/Models/TeamInvitation.php @@ -9,6 +9,7 @@ class TeamInvitation extends JetstreamTeamInvitation { /** * The attributes that are mass assignable. + * * @var string[] */ protected $fillable = [ @@ -18,6 +19,7 @@ class TeamInvitation extends JetstreamTeamInvitation /** * Get the team that the invitation belongs to. + * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function team() diff --git a/app/Models/User.php b/app/Models/User.php index 7c70dc19..5e1ccdfd 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -10,14 +10,14 @@ use Laravel\Fortify\TwoFactorAuthenticatable; use Laravel\Jetstream\HasProfilePhoto; use Laravel\Jetstream\HasTeams; use Laravel\Sanctum\HasApiTokens; +use ParagonIE\CipherSweet\BlindIndex; +use ParagonIE\CipherSweet\EncryptedRow; use QCod\Gamify\Gamify; use Spatie\Comments\Models\Concerns\InteractsWithComments; use Spatie\Comments\Models\Concerns\Interfaces\CanComment; use Spatie\LaravelCipherSweet\Concerns\UsesCipherSweet; use Spatie\LaravelCipherSweet\Contracts\CipherSweetEncrypted; use Spatie\Permission\Traits\HasRoles; -use ParagonIE\CipherSweet\EncryptedRow; -use ParagonIE\CipherSweet\BlindIndex; class User extends Authenticatable implements MustVerifyEmail, CanComment, CipherSweetEncrypted { @@ -36,6 +36,7 @@ class User extends Authenticatable implements MustVerifyEmail, CanComment, Ciphe /** * The attributes that should be hidden for serialization. + * * @var array */ protected $hidden = [ @@ -47,6 +48,7 @@ class User extends Authenticatable implements MustVerifyEmail, CanComment, Ciphe /** * The attributes that should be cast. + * * @var array */ protected $casts = [ @@ -55,6 +57,7 @@ class User extends Authenticatable implements MustVerifyEmail, CanComment, Ciphe /** * The accessors to append to the model's array form. + * * @var array */ protected $appends = [ diff --git a/app/Models/Venue.php b/app/Models/Venue.php index 9b867c51..2b39bec1 100644 --- a/app/Models/Venue.php +++ b/app/Models/Venue.php @@ -24,23 +24,25 @@ class Venue extends Model implements HasMedia /** * The attributes that aren't mass assignable. + * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. + * * @var array */ protected $casts = [ - 'id' => 'integer', + 'id' => 'integer', 'city_id' => 'integer', ]; protected static function booted() { static::creating(function ($model) { - if (!$model->created_by) { + if (! $model->created_by) { $model->created_by = auth()->id(); } }); @@ -70,7 +72,7 @@ class Venue extends Model implements HasMedia public function getSlugOptions(): SlugOptions { return SlugOptions::create() - ->generateSlugsFrom(['city.slug', 'name',]) + ->generateSlugsFrom(['city.slug', 'name']) ->saveSlugsTo('slug') ->usingLanguage(Cookie::get('lang', config('app.locale'))); } diff --git a/app/Notifications/ModelCreatedNotification.php b/app/Notifications/ModelCreatedNotification.php index b4c5b65e..70710718 100644 --- a/app/Notifications/ModelCreatedNotification.php +++ b/app/Notifications/ModelCreatedNotification.php @@ -12,6 +12,7 @@ class ModelCreatedNotification extends Notification /** * Create a new notification instance. + * * @return void */ public function __construct(public $model, public string $resource) @@ -23,7 +24,6 @@ class ModelCreatedNotification extends Notification * Get the notification's delivery channels. * * @param mixed $notifiable - * * @return array */ public function via($notifiable) @@ -35,7 +35,6 @@ class ModelCreatedNotification extends Notification * Get the mail representation of the notification. * * @param mixed $notifiable - * * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) @@ -54,7 +53,6 @@ class ModelCreatedNotification extends Notification * Get the array representation of the notification. * * @param mixed $notifiable - * * @return array */ public function toArray($notifiable) diff --git a/app/Nova/Actions/AttachLibraryItemToLibrary.php b/app/Nova/Actions/AttachLibraryItemToLibrary.php index f04ffcb1..55f2b952 100644 --- a/app/Nova/Actions/AttachLibraryItemToLibrary.php +++ b/app/Nova/Actions/AttachLibraryItemToLibrary.php @@ -20,7 +20,6 @@ class AttachLibraryItemToLibrary extends Action * * @param \Laravel\Nova\Fields\ActionFields $fields * @param \Illuminate\Support\Collection $models - * * @return mixed */ public function handle(ActionFields $fields, Collection $models) @@ -35,7 +34,6 @@ class AttachLibraryItemToLibrary extends Action * Get the fields available on the action. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function fields(NovaRequest $request) diff --git a/app/Nova/Actions/SetStatusAction.php b/app/Nova/Actions/SetStatusAction.php index b318f67e..1f4a1be3 100644 --- a/app/Nova/Actions/SetStatusAction.php +++ b/app/Nova/Actions/SetStatusAction.php @@ -19,7 +19,6 @@ class SetStatusAction extends Action * * @param \Laravel\Nova\Fields\ActionFields $fields * @param \Illuminate\Support\Collection $models - * * @return mixed */ public function handle(ActionFields $fields, Collection $models) @@ -35,7 +34,6 @@ class SetStatusAction extends Action * Get the fields available on the action. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function fields(NovaRequest $request) @@ -43,10 +41,10 @@ class SetStatusAction extends Action return [ Select::make('Status') ->options([ - 'draft' => 'DRAFT', + 'draft' => 'DRAFT', 'published' => 'PUBLISHED', ]) - ->displayUsingLabels() + ->displayUsingLabels(), ]; } } diff --git a/app/Nova/BitcoinEvent.php b/app/Nova/BitcoinEvent.php index 41c40a61..b4df7f71 100644 --- a/app/Nova/BitcoinEvent.php +++ b/app/Nova/BitcoinEvent.php @@ -19,18 +19,21 @@ class BitcoinEvent extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\BitcoinEvent::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'title'; /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -56,7 +59,6 @@ class BitcoinEvent extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -68,19 +70,19 @@ class BitcoinEvent extends Resource Images::make(__('Logo'), 'logo') ->showStatistics() ->conversionOnIndexView('thumb') - ->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), + ->setFileName(fn ($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), Boolean::make(__('Show worldwide'), 'show_worldwide') ->help(__('If checked, the event will be shown everywhere.')), DateTime::make(__('From'), 'from') ->step(CarbonInterval::minutes(15)) - ->displayUsing(fn($value) => $value->asDateTime()) + ->displayUsing(fn ($value) => $value->asDateTime()) ->rules('required'), DateTime::make(__('To'), 'to') ->step(CarbonInterval::minutes(15)) - ->displayUsing(fn($value) => $value->asDateTime()) + ->displayUsing(fn ($value) => $value->asDateTime()) ->rules('required'), Text::make(__('Title'), 'title') @@ -114,7 +116,6 @@ class BitcoinEvent extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -126,7 +127,6 @@ class BitcoinEvent extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -138,7 +138,6 @@ class BitcoinEvent extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -150,7 +149,6 @@ class BitcoinEvent extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/BookCase.php b/app/Nova/BookCase.php index 2f871567..9d910a8f 100644 --- a/app/Nova/BookCase.php +++ b/app/Nova/BookCase.php @@ -18,17 +18,21 @@ class BookCase extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\BookCase::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'title'; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -59,7 +63,6 @@ class BookCase extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -144,7 +147,6 @@ class BookCase extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -156,7 +158,6 @@ class BookCase extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -168,7 +169,6 @@ class BookCase extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -180,7 +180,6 @@ class BookCase extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Category.php b/app/Nova/Category.php index ede603ca..72922bbe 100644 --- a/app/Nova/Category.php +++ b/app/Nova/Category.php @@ -14,18 +14,21 @@ class Category extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Category::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -46,7 +49,6 @@ class Category extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -70,7 +72,6 @@ class Category extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -82,7 +83,6 @@ class Category extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -94,7 +94,6 @@ class Category extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -106,7 +105,6 @@ class Category extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/City.php b/app/Nova/City.php index fb54f8c5..2ea55a81 100644 --- a/app/Nova/City.php +++ b/app/Nova/City.php @@ -17,17 +17,21 @@ class City extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\City::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -58,7 +62,6 @@ class City extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -108,7 +111,6 @@ class City extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -120,7 +122,6 @@ class City extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -132,7 +133,6 @@ class City extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -144,7 +144,6 @@ class City extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Comment.php b/app/Nova/Comment.php index cdeb583b..0beae5c6 100644 --- a/app/Nova/Comment.php +++ b/app/Nova/Comment.php @@ -59,12 +59,11 @@ class Comment extends Resource Markdown::make(__('Original text'), 'original_text'), Text::make('', function (CommentModel $comment) { - if (!$url = $comment?->commentUrl()) { + if (! $url = $comment?->commentUrl()) { return ''; } - return "".__('Show').""; - + return "".__('Show').''; }) ->asHtml(), diff --git a/app/Nova/Country.php b/app/Nova/Country.php index 08c9ea02..9f164be9 100644 --- a/app/Nova/Country.php +++ b/app/Nova/Country.php @@ -16,18 +16,21 @@ class Country extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Country::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'english_name'; /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -55,7 +58,6 @@ class Country extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -96,7 +98,6 @@ class Country extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -108,7 +109,6 @@ class Country extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -120,7 +120,6 @@ class Country extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -132,7 +131,6 @@ class Country extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Course.php b/app/Nova/Course.php index 0261989c..524c88de 100644 --- a/app/Nova/Course.php +++ b/app/Nova/Course.php @@ -20,17 +20,21 @@ class Course extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Course::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -75,7 +79,6 @@ class Course extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -87,14 +90,14 @@ class Course extends Resource Images::make(__('Main picture'), 'logo') ->showStatistics() ->conversionOnIndexView('thumb') - ->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), + ->setFileName(fn ($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), // todo: english Images::make(__('Images'), 'images') ->showStatistics() ->conversionOnIndexView('thumb') ->help(__('Upload images here to insert them later in the Markdown Description. But you have to save before.')) - ->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), + ->setFileName(fn ($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), Tags::make(__('Tags')) ->type('course') @@ -131,7 +134,6 @@ class Course extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -143,7 +145,6 @@ class Course extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -155,7 +156,6 @@ class Course extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -167,7 +167,6 @@ class Course extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/CourseEvent.php b/app/Nova/CourseEvent.php index 8a402997..d75ffa9a 100644 --- a/app/Nova/CourseEvent.php +++ b/app/Nova/CourseEvent.php @@ -8,7 +8,6 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use Laravel\Nova\Fields\BelongsTo; use Laravel\Nova\Fields\DateTime; -use Laravel\Nova\Fields\Field; use Laravel\Nova\Fields\ID; use Laravel\Nova\Fields\URL; use Laravel\Nova\Http\Requests\NovaRequest; @@ -17,11 +16,14 @@ class CourseEvent extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\CourseEvent::class; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -57,7 +59,6 @@ class CourseEvent extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -72,12 +73,12 @@ class CourseEvent extends Resource DateTime::make(__('From'), 'from') ->step(CarbonInterval::minutes(15)) ->rules('required') - ->displayUsing(fn($value) => $value->asDateTime()), + ->displayUsing(fn ($value) => $value->asDateTime()), DateTime::make(__('To'), 'to') ->step(CarbonInterval::minutes(15)) ->rules('required') - ->displayUsing(fn($value) => $value->asDateTime()), + ->displayUsing(fn ($value) => $value->asDateTime()), BelongsTo::make(__('Course'), 'course', Course::class) ->searchable()->showCreateRelationButton()->withSubtitles(), @@ -99,7 +100,6 @@ class CourseEvent extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -111,7 +111,6 @@ class CourseEvent extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -123,7 +122,6 @@ class CourseEvent extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -135,7 +133,6 @@ class CourseEvent extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Dashboards/Main.php b/app/Nova/Dashboards/Main.php index 61f41ca3..4c0df8a0 100644 --- a/app/Nova/Dashboards/Main.php +++ b/app/Nova/Dashboards/Main.php @@ -14,6 +14,7 @@ class Main extends Dashboard /** * Get the cards for the dashboard. + * * @return array */ public function cards() diff --git a/app/Nova/Episode.php b/app/Nova/Episode.php index b6ff79fa..3a1c1266 100644 --- a/app/Nova/Episode.php +++ b/app/Nova/Episode.php @@ -17,17 +17,21 @@ class Episode extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Episode::class; + /** * The columns that should be searched. + * * @var array */ public static $search = [ 'id', 'podcast.title', ]; + public static $orderBy = ['created_at' => 'desc']; public static function afterUpdate(NovaRequest $request, Model $model) @@ -36,7 +40,7 @@ class Episode extends Resource if ($model->data['link']) { $lecturer = \App\Models\Lecturer::updateOrCreate(['name' => $model->podcast->title], [ 'team_id' => 1, - 'active' => true, + 'active' => true, 'website' => $model->podcast->link, ]); if ($model->podcast->data['image']) { @@ -45,20 +49,20 @@ class Episode extends Resource } $library = \App\Models\Library::firstOrCreate( [ - 'name' => 'Podcasts' + 'name' => 'Podcasts', ]); $libraryItem = $model->libraryItem() ->firstOrCreate([ - 'lecturer_id' => $lecturer->id, - 'episode_id' => $model->id, - 'name' => $model->data['title'], - 'type' => 'podcast_episode', + 'lecturer_id' => $lecturer->id, + 'episode_id' => $model->id, + 'name' => $model->data['title'], + 'type' => 'podcast_episode', 'language_code' => str($model->podcast->language_code) ->before('-') ->toString(), - 'value' => null, - 'excerpt' => $model->data['description'], - 'subtitle' => $model->data['description'], + 'value' => null, + 'excerpt' => $model->data['description'], + 'subtitle' => $model->data['description'], ]); $libraryItem->syncTagsWithType(is_array($request->tags) ? $request->tags : str($request->tags)->explode('-----'), 'library_item'); @@ -107,7 +111,6 @@ class Episode extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -153,7 +156,6 @@ class Episode extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -165,7 +167,6 @@ class Episode extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -177,7 +178,6 @@ class Episode extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -189,7 +189,6 @@ class Episode extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Filters/LibraryItemWithout.php b/app/Nova/Filters/LibraryItemWithout.php index c0782c16..79e3173b 100644 --- a/app/Nova/Filters/LibraryItemWithout.php +++ b/app/Nova/Filters/LibraryItemWithout.php @@ -18,21 +18,19 @@ class LibraryItemWithout extends BooleanFilter * @param \Laravel\Nova\Http\Requests\NovaRequest $request * @param \Illuminate\Database\Eloquent\Builder $query * @param mixed $value - * * @return \Illuminate\Database\Eloquent\Builder */ public function apply(NovaRequest $request, $query, $value) { return $query - ->when($value['libraries'], fn($query) => $query->whereDoesntHave('libraries')) - ->when($value['tags'], fn($query) => $query->whereDoesntHave('tags')); + ->when($value['libraries'], fn ($query) => $query->whereDoesntHave('libraries')) + ->when($value['tags'], fn ($query) => $query->whereDoesntHave('tags')); } /** * Get the filter's available options. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function options(NovaRequest $request) diff --git a/app/Nova/Language.php b/app/Nova/Language.php index 6cc41a03..d0f24eef 100644 --- a/app/Nova/Language.php +++ b/app/Nova/Language.php @@ -5,10 +5,7 @@ namespace App\Nova; use App\Notifications\ModelCreatedNotification; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; -use Laravel\Nova\Fields\HasMany; use Laravel\Nova\Fields\ID; -use Laravel\Nova\Fields\MultiSelect; -use Laravel\Nova\Fields\Number; use Laravel\Nova\Fields\Text; use Laravel\Nova\Http\Requests\NovaRequest; @@ -16,18 +13,21 @@ class Language extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \JoeDixon\Translation\Language::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -54,7 +54,6 @@ class Language extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -75,7 +74,6 @@ class Language extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -87,7 +85,6 @@ class Language extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -99,7 +96,6 @@ class Language extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -111,7 +107,6 @@ class Language extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Lecturer.php b/app/Nova/Lecturer.php index 0342e1b7..c14319e8 100644 --- a/app/Nova/Lecturer.php +++ b/app/Nova/Lecturer.php @@ -19,17 +19,21 @@ class Lecturer extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Lecturer::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -44,7 +48,7 @@ class Lecturer extends Resource public static function relatableTeams(NovaRequest $request, $query, Field $field) { - if ($field instanceof BelongsTo && !$request->user() + if ($field instanceof BelongsTo && ! $request->user() ->hasRole('super-admin')) { $query->where('id', $request->user()->current_team_id); } @@ -70,7 +74,6 @@ class Lecturer extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -82,13 +85,13 @@ class Lecturer extends Resource Images::make('Avatar', 'avatar') ->showStatistics() ->conversionOnIndexView('thumb') - ->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), + ->setFileName(fn ($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), Images::make(__('Images'), 'images') ->showStatistics() ->conversionOnIndexView('thumb') ->help('Upload images here to insert them later in the Markdown Description. But you have to save before.') - ->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), + ->setFileName(fn ($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), Text::make('Name') ->rules('required', 'string'), @@ -152,7 +155,6 @@ class Lecturer extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -164,7 +166,6 @@ class Lecturer extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -176,7 +177,6 @@ class Lecturer extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -188,7 +188,6 @@ class Lecturer extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Library.php b/app/Nova/Library.php index 3c6b30e5..da0cfe63 100644 --- a/app/Nova/Library.php +++ b/app/Nova/Library.php @@ -17,17 +17,21 @@ class Library extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Library::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -62,7 +66,6 @@ class Library extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -103,7 +106,6 @@ class Library extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -115,7 +117,6 @@ class Library extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -127,7 +128,6 @@ class Library extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -139,7 +139,6 @@ class Library extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/LibraryItem.php b/app/Nova/LibraryItem.php index ebc3ae08..3fa73890 100644 --- a/app/Nova/LibraryItem.php +++ b/app/Nova/LibraryItem.php @@ -29,6 +29,7 @@ class LibraryItem extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\LibraryItem::class; @@ -37,11 +38,14 @@ class LibraryItem extends Resource /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -78,7 +82,6 @@ class LibraryItem extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -87,41 +90,41 @@ class LibraryItem extends Resource ID::make() ->sortable(), - StatusField::make('Status',) + StatusField::make('Status', ) ->icons([ - 'clock' => $this->status === '' || $this->status === 'draft', + 'clock' => $this->status === '' || $this->status === 'draft', 'check-circle' => $this->status === 'published', ]) ->tooltip([ - 'clock' => 'Pending publication', - 'check-circle' => 'Published' + 'clock' => 'Pending publication', + 'check-circle' => 'Published', ]) ->info([ - 'clock' => 'Pending publication.', - 'check-circle' => 'Published.' + 'clock' => 'Pending publication.', + 'check-circle' => 'Published.', ]) ->color([ - 'clock' => 'blue-500', - 'check-circle' => 'green-500' + 'clock' => 'blue-500', + 'check-circle' => 'green-500', ]) ->exceptOnForms(), Images::make(__('Main picture'), 'main') ->conversionOnIndexView('thumb') ->showStatistics() - ->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), + ->setFileName(fn ($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), Images::make(__('Images'), 'images') ->conversionOnIndexView('thumb') ->help('Upload images here to insert them later in the Markdown Description. But you have to save before.') ->hideFromIndex() ->showStatistics() - ->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), + ->setFileName(fn ($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), Files::make(__('Downloadable File'), 'single_file') ->showStatistics() ->help(__('Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)')) - ->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), + ->setFileName(fn ($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), Select::make(__('Language Code'), 'language_code') ->options( @@ -195,7 +198,6 @@ class LibraryItem extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -207,13 +209,12 @@ class LibraryItem extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) { return [ - new LibraryItemWithout() + new LibraryItemWithout(), ]; } @@ -221,7 +222,6 @@ class LibraryItem extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -233,7 +233,6 @@ class LibraryItem extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Meetup.php b/app/Nova/Meetup.php index 9eaedd6a..9baceef2 100644 --- a/app/Nova/Meetup.php +++ b/app/Nova/Meetup.php @@ -17,18 +17,21 @@ class Meetup extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Meetup::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -70,7 +73,6 @@ class Meetup extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -82,13 +84,13 @@ class Meetup extends Resource Images::make(__('Logo'), 'logo') ->conversionOnIndexView('thumb') ->showStatistics() - ->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), + ->setFileName(fn ($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension), Select::make(__('Community'), 'community') ->options( [ - 'einundzwanzig' => 'Einundzwanzig', - 'bitcoin' => 'Bitcoin', + 'einundzwanzig' => 'Einundzwanzig', + 'bitcoin' => 'Bitcoin', 'satoshis_coffeeshop' => 'Satoshis Coffeeshop', ] ) @@ -150,7 +152,6 @@ class Meetup extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -162,7 +163,6 @@ class Meetup extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -174,7 +174,6 @@ class Meetup extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -186,7 +185,6 @@ class Meetup extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/MeetupEvent.php b/app/Nova/MeetupEvent.php index df90a8ea..1013ef9d 100644 --- a/app/Nova/MeetupEvent.php +++ b/app/Nova/MeetupEvent.php @@ -18,17 +18,21 @@ class MeetupEvent extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\MeetupEvent::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'id'; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -76,7 +80,6 @@ class MeetupEvent extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -87,7 +90,7 @@ class MeetupEvent extends Resource DateTime::make(__('Start'), 'start') ->step(CarbonInterval::minutes(15)) - ->displayUsing(fn($value) => $value->asDateTime()), + ->displayUsing(fn ($value) => $value->asDateTime()), Text::make(__('Location'), 'location'), @@ -120,7 +123,6 @@ class MeetupEvent extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -132,7 +134,6 @@ class MeetupEvent extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -144,7 +145,6 @@ class MeetupEvent extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -156,7 +156,6 @@ class MeetupEvent extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/OrangePill.php b/app/Nova/OrangePill.php index 6e19f9b5..c387a5c1 100644 --- a/app/Nova/OrangePill.php +++ b/app/Nova/OrangePill.php @@ -16,16 +16,21 @@ class OrangePill extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\OrangePill::class; + /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'id'; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -50,7 +55,6 @@ class OrangePill extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -77,7 +81,6 @@ class OrangePill extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -89,7 +92,6 @@ class OrangePill extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -101,7 +103,6 @@ class OrangePill extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -113,7 +114,6 @@ class OrangePill extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Participant.php b/app/Nova/Participant.php index eb1dbc96..3691e08d 100644 --- a/app/Nova/Participant.php +++ b/app/Nova/Participant.php @@ -13,11 +13,14 @@ class Participant extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Participant::class; + /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -44,7 +47,6 @@ class Participant extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -66,7 +68,6 @@ class Participant extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -78,7 +79,6 @@ class Participant extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -90,7 +90,6 @@ class Participant extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -102,7 +101,6 @@ class Participant extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Podcast.php b/app/Nova/Podcast.php index 9a8819e9..b6afd144 100644 --- a/app/Nova/Podcast.php +++ b/app/Nova/Podcast.php @@ -19,18 +19,21 @@ class Podcast extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Podcast::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'title'; /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -56,7 +59,6 @@ class Podcast extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -74,7 +76,7 @@ class Podcast extends Resource }) ->exceptOnForms(), - Boolean::make(__('Locked'), 'locked', fn($value) => $value ?? false), + Boolean::make(__('Locked'), 'locked', fn ($value) => $value ?? false), Text::make('Guid', 'guid', function ($value) use ($guid) { if ($value) { @@ -113,7 +115,6 @@ class Podcast extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -125,7 +126,6 @@ class Podcast extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -137,7 +137,6 @@ class Podcast extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -149,7 +148,6 @@ class Podcast extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Nova/Registration.php b/app/Nova/Registration.php index 126c9093..7b45bf17 100644 --- a/app/Nova/Registration.php +++ b/app/Nova/Registration.php @@ -4,10 +4,10 @@ namespace App\Nova; use App\Notifications\ModelCreatedNotification; use Illuminate\Database\Eloquent\Model; -use Laravel\Nova\Fields\ID; use Illuminate\Http\Request; -use Laravel\Nova\Fields\Boolean; use Laravel\Nova\Fields\BelongsTo; +use Laravel\Nova\Fields\Boolean; +use Laravel\Nova\Fields\ID; use Laravel\Nova\Http\Requests\NovaRequest; class Registration extends Resource diff --git a/app/Nova/Team.php b/app/Nova/Team.php index cd8dbf4f..d3c4f9c8 100644 --- a/app/Nova/Team.php +++ b/app/Nova/Team.php @@ -10,22 +10,23 @@ use Laravel\Nova\Http\Requests\NovaRequest; class Team extends Resource { - - /** * The model the resource corresponds to. + * * @var class-string<\App\Models\Team> */ public static $model = \App\Models\Team::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -45,7 +46,6 @@ class Team extends Resource * Get the fields displayed by the resource. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function fields(NovaRequest $request) @@ -64,7 +64,6 @@ class Team extends Resource * Get the cards available for the request. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function cards(NovaRequest $request) @@ -76,7 +75,6 @@ class Team extends Resource * Get the filters available for the resource. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function filters(NovaRequest $request) @@ -88,7 +86,6 @@ class Team extends Resource * Get the lenses available for the resource. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function lenses(NovaRequest $request) @@ -100,7 +97,6 @@ class Team extends Resource * Get the actions available for the resource. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function actions(NovaRequest $request) diff --git a/app/Nova/User.php b/app/Nova/User.php index 4bcabed1..2ea06ce3 100644 --- a/app/Nova/User.php +++ b/app/Nova/User.php @@ -12,21 +12,23 @@ use Laravel\Nova\Http\Requests\NovaRequest; class User extends Resource { - /** * The model the resource corresponds to. + * * @var class-string<\App\Models\User> */ public static $model = \App\Models\User::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -51,7 +53,6 @@ class User extends Resource * Get the fields displayed by the resource. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function fields(NovaRequest $request) @@ -100,7 +101,6 @@ class User extends Resource * Get the cards available for the request. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function cards(NovaRequest $request) @@ -112,7 +112,6 @@ class User extends Resource * Get the filters available for the resource. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function filters(NovaRequest $request) @@ -124,7 +123,6 @@ class User extends Resource * Get the lenses available for the resource. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function lenses(NovaRequest $request) @@ -136,7 +134,6 @@ class User extends Resource * Get the actions available for the resource. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request - * * @return array */ public function actions(NovaRequest $request) diff --git a/app/Nova/Venue.php b/app/Nova/Venue.php index 36fe2dd0..c3b406c1 100644 --- a/app/Nova/Venue.php +++ b/app/Nova/Venue.php @@ -15,12 +15,14 @@ class Venue extends Resource { /** * The model the resource corresponds to. + * * @var string */ public static $model = \App\Models\Venue::class; /** * The single value that should be used to represent the resource when being displayed. + * * @var string */ public static $title = 'name'; @@ -32,6 +34,7 @@ class Venue extends Resource /** * The columns that should be searched. + * * @var array */ public static $search = [ @@ -57,7 +60,6 @@ class Venue extends Resource * Get the fields displayed by the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function fields(Request $request) @@ -94,7 +96,6 @@ class Venue extends Resource * Get the cards available for the request. * * @param \Illuminate\Http\Request $request - * * @return array */ public function cards(Request $request) @@ -106,7 +107,6 @@ class Venue extends Resource * Get the filters available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function filters(Request $request) @@ -118,7 +118,6 @@ class Venue extends Resource * Get the lenses available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function lenses(Request $request) @@ -130,7 +129,6 @@ class Venue extends Resource * Get the actions available for the resource. * * @param \Illuminate\Http\Request $request - * * @return array */ public function actions(Request $request) diff --git a/app/Observers/BitcoinEventObserver.php b/app/Observers/BitcoinEventObserver.php index d5e1647c..124de015 100644 --- a/app/Observers/BitcoinEventObserver.php +++ b/app/Observers/BitcoinEventObserver.php @@ -13,7 +13,6 @@ class BitcoinEventObserver * Handle the BitcoinEvent "created" event. * * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return void */ public function created(BitcoinEvent $bitcoinEvent) @@ -37,7 +36,6 @@ class BitcoinEventObserver * Handle the BitcoinEvent "updated" event. * * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return void */ public function updated(BitcoinEvent $bitcoinEvent) @@ -49,7 +47,6 @@ class BitcoinEventObserver * Handle the BitcoinEvent "deleted" event. * * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return void */ public function deleted(BitcoinEvent $bitcoinEvent) @@ -61,7 +58,6 @@ class BitcoinEventObserver * Handle the BitcoinEvent "restored" event. * * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return void */ public function restored(BitcoinEvent $bitcoinEvent) @@ -73,7 +69,6 @@ class BitcoinEventObserver * Handle the BitcoinEvent "force deleted" event. * * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return void */ public function forceDeleted(BitcoinEvent $bitcoinEvent) diff --git a/app/Observers/CourseEventObserver.php b/app/Observers/CourseEventObserver.php index 8fd5175d..366c60f3 100644 --- a/app/Observers/CourseEventObserver.php +++ b/app/Observers/CourseEventObserver.php @@ -13,7 +13,6 @@ class CourseEventObserver * Handle the CourseEvent "created" event. * * @param \App\Models\CourseEvent $courseEvent - * * @return void */ public function created(CourseEvent $courseEvent) @@ -37,7 +36,6 @@ class CourseEventObserver * Handle the CourseEvent "updated" event. * * @param \App\Models\CourseEvent $courseEvent - * * @return void */ public function updated(CourseEvent $courseEvent) @@ -49,7 +47,6 @@ class CourseEventObserver * Handle the CourseEvent "deleted" event. * * @param \App\Models\CourseEvent $courseEvent - * * @return void */ public function deleted(CourseEvent $courseEvent) @@ -61,7 +58,6 @@ class CourseEventObserver * Handle the CourseEvent "restored" event. * * @param \App\Models\CourseEvent $courseEvent - * * @return void */ public function restored(CourseEvent $courseEvent) @@ -73,7 +69,6 @@ class CourseEventObserver * Handle the CourseEvent "force deleted" event. * * @param \App\Models\CourseEvent $courseEvent - * * @return void */ public function forceDeleted(CourseEvent $courseEvent) diff --git a/app/Observers/CourseObserver.php b/app/Observers/CourseObserver.php index c4d487ca..d26468c6 100644 --- a/app/Observers/CourseObserver.php +++ b/app/Observers/CourseObserver.php @@ -13,7 +13,6 @@ class CourseObserver * Handle the Course "created" event. * * @param \App\Models\Course $course - * * @return void */ public function created(Course $course) @@ -37,7 +36,6 @@ class CourseObserver * Handle the Course "updated" event. * * @param \App\Models\Course $course - * * @return void */ public function updated(Course $course) @@ -49,7 +47,6 @@ class CourseObserver * Handle the Course "deleted" event. * * @param \App\Models\Course $course - * * @return void */ public function deleted(Course $course) @@ -61,7 +58,6 @@ class CourseObserver * Handle the Course "restored" event. * * @param \App\Models\Course $course - * * @return void */ public function restored(Course $course) @@ -73,7 +69,6 @@ class CourseObserver * Handle the Course "force deleted" event. * * @param \App\Models\Course $course - * * @return void */ public function forceDeleted(Course $course) diff --git a/app/Observers/EpisodeObserver.php b/app/Observers/EpisodeObserver.php index 0b5f8e72..7385ebc9 100644 --- a/app/Observers/EpisodeObserver.php +++ b/app/Observers/EpisodeObserver.php @@ -10,7 +10,6 @@ class EpisodeObserver * Handle the Episode "created" event. * * @param \App\Models\Episode $episode - * * @return void */ public function created(Episode $episode) @@ -22,19 +21,17 @@ class EpisodeObserver * Handle the Episode "updated" event. * * @param \App\Models\Episode $episode - * * @return void */ public function updated(Episode $episode) { - // + // } /** * Handle the Episode "deleted" event. * * @param \App\Models\Episode $episode - * * @return void */ public function deleted(Episode $episode) @@ -46,7 +43,6 @@ class EpisodeObserver * Handle the Episode "restored" event. * * @param \App\Models\Episode $episode - * * @return void */ public function restored(Episode $episode) @@ -58,7 +54,6 @@ class EpisodeObserver * Handle the Episode "force deleted" event. * * @param \App\Models\Episode $episode - * * @return void */ public function forceDeleted(Episode $episode) diff --git a/app/Observers/EventObserver.php b/app/Observers/EventObserver.php index 92716e4c..c3d65940 100644 --- a/app/Observers/EventObserver.php +++ b/app/Observers/EventObserver.php @@ -10,7 +10,6 @@ class EventObserver * Handle the Event "created" event. * * @param \App\Models\CourseEvent $event - * * @return void */ public function created(CourseEvent $event) @@ -22,7 +21,6 @@ class EventObserver * Handle the Event "updated" event. * * @param \App\Models\CourseEvent $event - * * @return void */ public function updated(CourseEvent $event) @@ -34,7 +32,6 @@ class EventObserver * Handle the Event "deleted" event. * * @param \App\Models\CourseEvent $event - * * @return void */ public function deleted(CourseEvent $event) @@ -46,7 +43,6 @@ class EventObserver * Handle the Event "restored" event. * * @param \App\Models\CourseEvent $event - * * @return void */ public function restored(CourseEvent $event) @@ -58,7 +54,6 @@ class EventObserver * Handle the Event "force deleted" event. * * @param \App\Models\CourseEvent $event - * * @return void */ public function forceDeleted(CourseEvent $event) diff --git a/app/Observers/LibraryItemObserver.php b/app/Observers/LibraryItemObserver.php index 565e7c8b..a82056b5 100644 --- a/app/Observers/LibraryItemObserver.php +++ b/app/Observers/LibraryItemObserver.php @@ -13,7 +13,6 @@ class LibraryItemObserver * Handle the LibraryItem "created" event. * * @param \App\Models\LibraryItem $libraryItem - * * @return void */ public function created(LibraryItem $libraryItem) @@ -26,7 +25,7 @@ class LibraryItemObserver if ($libraryItem->lecturer->twitter_username && $libraryItem->type !== 'markdown_article') { $libraryItemName .= ' von @'.$libraryItem->lecturer->twitter_username; } - if (!$libraryItem->lecturer->twitter_username) { + if (! $libraryItem->lecturer->twitter_username) { $libraryItemName .= ' von '.$libraryItem->lecturer->name; } @@ -36,9 +35,8 @@ class LibraryItemObserver // http://localhost/de/library/library-item?l=de&table[filters][id]=2 if ($libraryItem->type !== 'markdown_article') { - if ($libraryItem->whereDoesntHave('libraries', - fn($query) => $query->where('libraries.is_public', false)) + fn ($query) => $query->where('libraries.is_public', false)) ->exists()) { $text = sprintf("Es gibt was Neues zum Lesen oder Anhören:\n\n%s\n\n%s\n\n#Bitcoin #Wissen #Einundzwanzig #gesundesgeld", $libraryItemName, @@ -47,7 +45,6 @@ class LibraryItemObserver ); $this->postTweet($text); } - } } } catch (\Exception $e) { @@ -59,7 +56,6 @@ class LibraryItemObserver * Handle the LibraryItem "updated" event. * * @param \App\Models\LibraryItem $libraryItem - * * @return void */ public function updated(LibraryItem $libraryItem) @@ -71,7 +67,6 @@ class LibraryItemObserver * Handle the LibraryItem "deleted" event. * * @param \App\Models\LibraryItem $libraryItem - * * @return void */ public function deleted(LibraryItem $libraryItem) @@ -83,7 +78,6 @@ class LibraryItemObserver * Handle the LibraryItem "restored" event. * * @param \App\Models\LibraryItem $libraryItem - * * @return void */ public function restored(LibraryItem $libraryItem) @@ -95,7 +89,6 @@ class LibraryItemObserver * Handle the LibraryItem "force deleted" event. * * @param \App\Models\LibraryItem $libraryItem - * * @return void */ public function forceDeleted(LibraryItem $libraryItem) diff --git a/app/Observers/MeetupEventObserver.php b/app/Observers/MeetupEventObserver.php index d1c93e26..4fa0d05f 100644 --- a/app/Observers/MeetupEventObserver.php +++ b/app/Observers/MeetupEventObserver.php @@ -14,7 +14,6 @@ class MeetupEventObserver * Handle the MeetupEvent "created" event. * * @param \App\Models\MeetupEvent $meetupEvent - * * @return void */ public function created(MeetupEvent $meetupEvent) @@ -47,7 +46,6 @@ class MeetupEventObserver * Handle the MeetupEvent "updated" event. * * @param \App\Models\MeetupEvent $meetupEvent - * * @return void */ public function updated(MeetupEvent $meetupEvent) @@ -59,7 +57,6 @@ class MeetupEventObserver * Handle the MeetupEvent "deleted" event. * * @param \App\Models\MeetupEvent $meetupEvent - * * @return void */ public function deleted(MeetupEvent $meetupEvent) @@ -71,7 +68,6 @@ class MeetupEventObserver * Handle the MeetupEvent "restored" event. * * @param \App\Models\MeetupEvent $meetupEvent - * * @return void */ public function restored(MeetupEvent $meetupEvent) @@ -83,7 +79,6 @@ class MeetupEventObserver * Handle the MeetupEvent "force deleted" event. * * @param \App\Models\MeetupEvent $meetupEvent - * * @return void */ public function forceDeleted(MeetupEvent $meetupEvent) diff --git a/app/Observers/MeetupObserver.php b/app/Observers/MeetupObserver.php index 04740812..09d6a3f2 100644 --- a/app/Observers/MeetupObserver.php +++ b/app/Observers/MeetupObserver.php @@ -14,7 +14,6 @@ class MeetupObserver * Handle the Meetup "created" event. * * @param \App\Models\Meetup $meetup - * * @return void */ public function created(Meetup $meetup) @@ -44,7 +43,6 @@ class MeetupObserver * Handle the Meetup "updated" event. * * @param \App\Models\Meetup $meetup - * * @return void */ public function updated(Meetup $meetup) @@ -56,7 +54,6 @@ class MeetupObserver * Handle the Meetup "deleted" event. * * @param \App\Models\Meetup $meetup - * * @return void */ public function deleted(Meetup $meetup) @@ -68,7 +65,6 @@ class MeetupObserver * Handle the Meetup "restored" event. * * @param \App\Models\Meetup $meetup - * * @return void */ public function restored(Meetup $meetup) @@ -80,7 +76,6 @@ class MeetupObserver * Handle the Meetup "force deleted" event. * * @param \App\Models\Meetup $meetup - * * @return void */ public function forceDeleted(Meetup $meetup) diff --git a/app/Observers/OrangePillObserver.php b/app/Observers/OrangePillObserver.php index 40905a72..186afa43 100644 --- a/app/Observers/OrangePillObserver.php +++ b/app/Observers/OrangePillObserver.php @@ -13,7 +13,6 @@ class OrangePillObserver * Handle the OrangePill "created" event. * * @param \App\Models\OrangePill $orangePill - * * @return void */ public function created(OrangePill $orangePill) @@ -35,7 +34,6 @@ class OrangePillObserver * Handle the OrangePill "updated" event. * * @param \App\Models\OrangePill $orangePill - * * @return void */ public function updated(OrangePill $orangePill) @@ -47,7 +45,6 @@ class OrangePillObserver * Handle the OrangePill "deleted" event. * * @param \App\Models\OrangePill $orangePill - * * @return void */ public function deleted(OrangePill $orangePill) @@ -59,7 +56,6 @@ class OrangePillObserver * Handle the OrangePill "restored" event. * * @param \App\Models\OrangePill $orangePill - * * @return void */ public function restored(OrangePill $orangePill) @@ -71,7 +67,6 @@ class OrangePillObserver * Handle the OrangePill "force deleted" event. * * @param \App\Models\OrangePill $orangePill - * * @return void */ public function forceDeleted(OrangePill $orangePill) diff --git a/app/Policies/BasePolicy.php b/app/Policies/BasePolicy.php index 3a443dfe..bae72da5 100644 --- a/app/Policies/BasePolicy.php +++ b/app/Policies/BasePolicy.php @@ -11,7 +11,6 @@ class BasePolicy * * @param \App\Models\User $user * @param string $ability - * * @return void|bool */ public function before(User $user, $ability) diff --git a/app/Policies/BitcoinEventPolicy.php b/app/Policies/BitcoinEventPolicy.php index e4bc7d39..102451cb 100644 --- a/app/Policies/BitcoinEventPolicy.php +++ b/app/Policies/BitcoinEventPolicy.php @@ -14,7 +14,6 @@ class BitcoinEventPolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class BitcoinEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, BitcoinEvent $bitcoinEvent) @@ -39,7 +37,6 @@ class BitcoinEventPolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -52,7 +49,6 @@ class BitcoinEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, BitcoinEvent $bitcoinEvent) @@ -65,7 +61,6 @@ class BitcoinEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, BitcoinEvent $bitcoinEvent) @@ -78,7 +73,6 @@ class BitcoinEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, BitcoinEvent $bitcoinEvent) @@ -91,7 +85,6 @@ class BitcoinEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BitcoinEvent $bitcoinEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, BitcoinEvent $bitcoinEvent) diff --git a/app/Policies/BookCasePolicy.php b/app/Policies/BookCasePolicy.php index 95d2fae9..7fef59d0 100644 --- a/app/Policies/BookCasePolicy.php +++ b/app/Policies/BookCasePolicy.php @@ -14,7 +14,6 @@ class BookCasePolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class BookCasePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BookCase $bookCase - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, BookCase $bookCase) @@ -39,7 +37,6 @@ class BookCasePolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -52,7 +49,6 @@ class BookCasePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BookCase $bookCase - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, BookCase $bookCase) @@ -65,7 +61,6 @@ class BookCasePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BookCase $bookCase - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, BookCase $bookCase) @@ -78,7 +73,6 @@ class BookCasePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BookCase $bookCase - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, BookCase $bookCase) @@ -91,7 +85,6 @@ class BookCasePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\BookCase $bookCase - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, BookCase $bookCase) diff --git a/app/Policies/CourseEventPolicy.php b/app/Policies/CourseEventPolicy.php index 2068b0df..42080e7a 100644 --- a/app/Policies/CourseEventPolicy.php +++ b/app/Policies/CourseEventPolicy.php @@ -26,7 +26,6 @@ class CourseEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\CourseEvent $courseEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, CourseEvent $courseEvent) @@ -50,7 +49,6 @@ class CourseEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\CourseEvent $courseEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, CourseEvent $courseEvent) @@ -63,7 +61,6 @@ class CourseEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\CourseEvent $courseEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, CourseEvent $courseEvent) @@ -76,7 +73,6 @@ class CourseEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\CourseEvent $courseEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, CourseEvent $courseEvent) @@ -89,7 +85,6 @@ class CourseEventPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\CourseEvent $courseEvent - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, CourseEvent $courseEvent) diff --git a/app/Policies/EpisodePolicy.php b/app/Policies/EpisodePolicy.php index 9fd0e44b..fe7a6ae1 100644 --- a/app/Policies/EpisodePolicy.php +++ b/app/Policies/EpisodePolicy.php @@ -14,7 +14,6 @@ class EpisodePolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class EpisodePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Episode $episode - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Episode $episode) @@ -39,7 +37,6 @@ class EpisodePolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -52,7 +49,6 @@ class EpisodePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Episode $episode - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, Episode $episode) @@ -65,7 +61,6 @@ class EpisodePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Episode $episode - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, Episode $episode) @@ -78,7 +73,6 @@ class EpisodePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Episode $episode - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, Episode $episode) @@ -91,7 +85,6 @@ class EpisodePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Episode $episode - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, Episode $episode) diff --git a/app/Policies/LecturerPolicy.php b/app/Policies/LecturerPolicy.php index 6014d1cc..5cbdd1bd 100644 --- a/app/Policies/LecturerPolicy.php +++ b/app/Policies/LecturerPolicy.php @@ -14,7 +14,6 @@ class LecturerPolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class LecturerPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Lecturer $lecturer - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Lecturer $lecturer) @@ -39,7 +37,6 @@ class LecturerPolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -52,7 +49,6 @@ class LecturerPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Lecturer $lecturer - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, Lecturer $lecturer) @@ -65,7 +61,6 @@ class LecturerPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Lecturer $lecturer - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, Lecturer $lecturer) @@ -78,7 +73,6 @@ class LecturerPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Lecturer $lecturer - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, Lecturer $lecturer) @@ -91,7 +85,6 @@ class LecturerPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Lecturer $lecturer - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, Lecturer $lecturer) diff --git a/app/Policies/LibraryPolicy.php b/app/Policies/LibraryPolicy.php index bbe9fce2..999f4874 100644 --- a/app/Policies/LibraryPolicy.php +++ b/app/Policies/LibraryPolicy.php @@ -14,7 +14,6 @@ class LibraryPolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class LibraryPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Library $library - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Library $library) @@ -39,7 +37,6 @@ class LibraryPolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -54,7 +51,6 @@ class LibraryPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Library $library - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, Library $library) @@ -67,7 +63,6 @@ class LibraryPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Library $library - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, Library $library) @@ -80,7 +75,6 @@ class LibraryPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Library $library - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, Library $library) @@ -93,7 +87,6 @@ class LibraryPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Library $library - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, Library $library) diff --git a/app/Policies/MeetupPolicy.php b/app/Policies/MeetupPolicy.php index 85200e41..f9ac723a 100644 --- a/app/Policies/MeetupPolicy.php +++ b/app/Policies/MeetupPolicy.php @@ -14,7 +14,6 @@ class MeetupPolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class MeetupPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Meetup $meetup - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Meetup $meetup) @@ -39,7 +37,6 @@ class MeetupPolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -52,7 +49,6 @@ class MeetupPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Meetup $meetup - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, Meetup $meetup) @@ -65,7 +61,6 @@ class MeetupPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Meetup $meetup - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, Meetup $meetup) @@ -78,7 +73,6 @@ class MeetupPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Meetup $meetup - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, Meetup $meetup) @@ -91,7 +85,6 @@ class MeetupPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Meetup $meetup - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, Meetup $meetup) diff --git a/app/Policies/OrangePillPolicy.php b/app/Policies/OrangePillPolicy.php index 03763bdf..5c4191a9 100644 --- a/app/Policies/OrangePillPolicy.php +++ b/app/Policies/OrangePillPolicy.php @@ -14,7 +14,6 @@ class OrangePillPolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class OrangePillPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\OrangePill $orangePill - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, OrangePill $orangePill) @@ -39,7 +37,6 @@ class OrangePillPolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -52,7 +49,6 @@ class OrangePillPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\OrangePill $orangePill - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, OrangePill $orangePill) @@ -65,7 +61,6 @@ class OrangePillPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\OrangePill $orangePill - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, OrangePill $orangePill) @@ -78,7 +73,6 @@ class OrangePillPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\OrangePill $orangePill - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, OrangePill $orangePill) @@ -91,7 +85,6 @@ class OrangePillPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\OrangePill $orangePill - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, OrangePill $orangePill) diff --git a/app/Policies/ParticipantPolicy.php b/app/Policies/ParticipantPolicy.php index 483a830d..9c288ec6 100644 --- a/app/Policies/ParticipantPolicy.php +++ b/app/Policies/ParticipantPolicy.php @@ -14,7 +14,6 @@ class ParticipantPolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,16 +26,16 @@ class ParticipantPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Participant $participant - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Participant $participant) { if ($participant->registrations) { return $participant->whereHas('registrations.event.course.lecturer', - fn($q) => $q->where('team_id', $user->current_team_id)) + fn ($q) => $q->where('team_id', $user->current_team_id)) ->exists(); } + return false; } @@ -44,7 +43,6 @@ class ParticipantPolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -57,7 +55,6 @@ class ParticipantPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Participant $participant - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, Participant $participant) @@ -70,7 +67,6 @@ class ParticipantPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Participant $participant - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, Participant $participant) @@ -83,7 +79,6 @@ class ParticipantPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Participant $participant - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, Participant $participant) @@ -96,7 +91,6 @@ class ParticipantPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Participant $participant - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, Participant $participant) diff --git a/app/Policies/PermissionPolicy.php b/app/Policies/PermissionPolicy.php index 702f99df..17bedaec 100644 --- a/app/Policies/PermissionPolicy.php +++ b/app/Policies/PermissionPolicy.php @@ -14,7 +14,6 @@ class PermissionPolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class PermissionPolicy extends BasePolicy * * @param \App\Models\User $user * @param \Spatie\Permission\Models\Permission $permission - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Permission $permission) @@ -39,7 +37,6 @@ class PermissionPolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -52,7 +49,6 @@ class PermissionPolicy extends BasePolicy * * @param \App\Models\User $user * @param \Spatie\Permission\Models\Permission $permission - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, Permission $permission) @@ -65,7 +61,6 @@ class PermissionPolicy extends BasePolicy * * @param \App\Models\User $user * @param \Spatie\Permission\Models\Permission $permission - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, Permission $permission) @@ -78,7 +73,6 @@ class PermissionPolicy extends BasePolicy * * @param \App\Models\User $user * @param \Spatie\Permission\Models\Permission $permission - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, Permission $permission) @@ -91,7 +85,6 @@ class PermissionPolicy extends BasePolicy * * @param \App\Models\User $user * @param \Spatie\Permission\Models\Permission $permission - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, Permission $permission) diff --git a/app/Policies/PodcastPolicy.php b/app/Policies/PodcastPolicy.php index 95f0f226..25b59765 100644 --- a/app/Policies/PodcastPolicy.php +++ b/app/Policies/PodcastPolicy.php @@ -53,7 +53,7 @@ class PodcastPolicy extends BasePolicy */ public function update(User $user, Podcast $podcast) { - return !$podcast->locked; + return ! $podcast->locked; } /** @@ -65,7 +65,7 @@ class PodcastPolicy extends BasePolicy */ public function delete(User $user, Podcast $podcast) { - return !$podcast->locked; + return ! $podcast->locked; } /** @@ -77,7 +77,7 @@ class PodcastPolicy extends BasePolicy */ public function restore(User $user, Podcast $podcast) { - return !$podcast->locked; + return ! $podcast->locked; } /** @@ -89,6 +89,6 @@ class PodcastPolicy extends BasePolicy */ public function forceDelete(User $user, Podcast $podcast) { - return !$podcast->locked; + return ! $podcast->locked; } } diff --git a/app/Policies/RegistrationPolicy.php b/app/Policies/RegistrationPolicy.php index a80705cc..7e02a347 100644 --- a/app/Policies/RegistrationPolicy.php +++ b/app/Policies/RegistrationPolicy.php @@ -14,7 +14,6 @@ class RegistrationPolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,13 +26,12 @@ class RegistrationPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Registration $registration - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Registration $registration) { return $registration->whereHas('event.course.lecturer', - fn($q) => $q->where('team_id', $user->current_team_id)) + fn ($q) => $q->where('team_id', $user->current_team_id)) ->exists(); } @@ -41,7 +39,6 @@ class RegistrationPolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -54,7 +51,6 @@ class RegistrationPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Registration $registration - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, Registration $registration) @@ -67,7 +63,6 @@ class RegistrationPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Registration $registration - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, Registration $registration) @@ -80,7 +75,6 @@ class RegistrationPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Registration $registration - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, Registration $registration) @@ -93,7 +87,6 @@ class RegistrationPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Registration $registration - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, Registration $registration) diff --git a/app/Policies/TeamPolicy.php b/app/Policies/TeamPolicy.php index 626896c8..223f46d9 100644 --- a/app/Policies/TeamPolicy.php +++ b/app/Policies/TeamPolicy.php @@ -14,7 +14,6 @@ class TeamPolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return mixed */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class TeamPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Team $team - * * @return mixed */ public function view(User $user, Team $team) @@ -39,7 +37,6 @@ class TeamPolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return mixed */ public function create(User $user) @@ -52,7 +49,6 @@ class TeamPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Team $team - * * @return mixed */ public function update(User $user, Team $team) @@ -65,7 +61,6 @@ class TeamPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Team $team - * * @return mixed */ public function addTeamMember(User $user, Team $team) @@ -78,7 +73,6 @@ class TeamPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Team $team - * * @return mixed */ public function updateTeamMember(User $user, Team $team) @@ -91,7 +85,6 @@ class TeamPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Team $team - * * @return mixed */ public function removeTeamMember(User $user, Team $team) @@ -104,7 +97,6 @@ class TeamPolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Team $team - * * @return mixed */ public function delete(User $user, Team $team) diff --git a/app/Policies/VenuePolicy.php b/app/Policies/VenuePolicy.php index 4049dc00..b2245ea6 100644 --- a/app/Policies/VenuePolicy.php +++ b/app/Policies/VenuePolicy.php @@ -14,7 +14,6 @@ class VenuePolicy extends BasePolicy * Determine whether the user can view any models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function viewAny(User $user) @@ -27,7 +26,6 @@ class VenuePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Venue $venue - * * @return \Illuminate\Auth\Access\Response|bool */ public function view(User $user, Venue $venue) @@ -39,7 +37,6 @@ class VenuePolicy extends BasePolicy * Determine whether the user can create models. * * @param \App\Models\User $user - * * @return \Illuminate\Auth\Access\Response|bool */ public function create(User $user) @@ -52,7 +49,6 @@ class VenuePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Venue $venue - * * @return \Illuminate\Auth\Access\Response|bool */ public function update(User $user, Venue $venue) @@ -65,7 +61,6 @@ class VenuePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Venue $venue - * * @return \Illuminate\Auth\Access\Response|bool */ public function delete(User $user, Venue $venue) @@ -78,7 +73,6 @@ class VenuePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Venue $venue - * * @return \Illuminate\Auth\Access\Response|bool */ public function restore(User $user, Venue $venue) @@ -91,7 +85,6 @@ class VenuePolicy extends BasePolicy * * @param \App\Models\User $user * @param \App\Models\Venue $venue - * * @return \Illuminate\Auth\Access\Response|bool */ public function forceDelete(User $user, Venue $venue) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 35ac1d22..ef0840f3 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,8 +2,6 @@ namespace App\Providers; -use App\Models\Episode; -use App\Observers\EpisodeObserver; use App\Support\Carbon; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Date; @@ -16,6 +14,7 @@ class AppServiceProvider extends ServiceProvider { /** * Register any application services. + * * @return void */ public function register() @@ -27,6 +26,7 @@ class AppServiceProvider extends ServiceProvider /** * Bootstrap any application services. + * * @return void */ public function boot() @@ -35,7 +35,7 @@ class AppServiceProvider extends ServiceProvider Stringable::macro('initials', function () { $words = preg_split("/\s+/", $this); - $initials = ""; + $initials = ''; foreach ($words as $w) { $initials .= $w[0]; diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 8bab453a..cfbdfbb8 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -14,16 +14,18 @@ class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. + * * @var array */ protected $policies = [ - Team::class => TeamPolicy::class, - Role::class => RolePolicy::class, + Team::class => TeamPolicy::class, + Role::class => RolePolicy::class, Permission::class => PermissionPolicy::class, ]; /** * Register any authentication / authorization services. + * * @return void */ public function boot() diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index a531a1ec..58f63446 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -26,10 +26,11 @@ class EventServiceProvider extends ServiceProvider { /** * The event to listener mappings for the application. + * * @var array> */ protected $listen = [ - Login::class => [ + Login::class => [ AddLoginReputation::class, ], Registered::class => [ @@ -39,6 +40,7 @@ class EventServiceProvider extends ServiceProvider /** * Register any events for your application. + * * @return void */ public function boot() @@ -54,6 +56,7 @@ class EventServiceProvider extends ServiceProvider /** * Determine if events and listeners should be automatically discovered. + * * @return bool */ public function shouldDiscoverEvents() diff --git a/app/Providers/JetstreamServiceProvider.php b/app/Providers/JetstreamServiceProvider.php index 5ebcf307..f671b9fb 100644 --- a/app/Providers/JetstreamServiceProvider.php +++ b/app/Providers/JetstreamServiceProvider.php @@ -20,6 +20,7 @@ class JetstreamServiceProvider extends ServiceProvider { /** * Register any application services. + * * @return void */ public function register() @@ -29,6 +30,7 @@ class JetstreamServiceProvider extends ServiceProvider /** * Bootstrap any application services. + * * @return void */ public function boot() @@ -50,7 +52,6 @@ class JetstreamServiceProvider extends ServiceProvider if ($user && Hash::check($request->password, $user->password)) { - return $user; } }); @@ -58,6 +59,7 @@ class JetstreamServiceProvider extends ServiceProvider /** * Configure the roles and permissions that are available within the application. + * * @return void */ protected function configurePermissions() diff --git a/app/Providers/NovaServiceProvider.php b/app/Providers/NovaServiceProvider.php index 3239c4c8..3e07b566 100644 --- a/app/Providers/NovaServiceProvider.php +++ b/app/Providers/NovaServiceProvider.php @@ -36,6 +36,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider { /** * Bootstrap any application services. + * * @return void */ public function boot() @@ -46,12 +47,12 @@ class NovaServiceProvider extends NovaApplicationServiceProvider $comments = $request->user() ->hasRole('super-admin') || $request->user() ->can('CommentPolicy.viewAny') ? [ - MenuSection::make('Comments', [ - MenuItem::resource(Comment::class), - ]) - ->icon('chat') - ->collapsable(), - ] : []; + MenuSection::make('Comments', [ + MenuItem::resource(Comment::class), + ]) + ->icon('chat') + ->collapsable(), + ] : []; $adminItems = $request->user() ->hasRole('super-admin') || $request->user() @@ -74,14 +75,14 @@ class NovaServiceProvider extends NovaApplicationServiceProvider $permissions = $request->user() ->hasRole('super-admin') || $request->user() ->can('PermissionPolicy.viewAny') ? [ - MenuSection::make(__('nova-spatie-permissions::lang.sidebar_label'), [ - MenuItem::link(__('nova-spatie-permissions::lang.sidebar_label_roles'), 'resources/roles'), - MenuItem::link(__('nova-spatie-permissions::lang.sidebar_label_permissions'), - 'resources/permissions'), - ]) - ->icon('key') - ->collapsable(), - ] : []; + MenuSection::make(__('nova-spatie-permissions::lang.sidebar_label'), [ + MenuItem::link(__('nova-spatie-permissions::lang.sidebar_label_roles'), 'resources/roles'), + MenuItem::link(__('nova-spatie-permissions::lang.sidebar_label_permissions'), + 'resources/permissions'), + ]) + ->icon('key') + ->collapsable(), + ] : []; return array_merge([ MenuSection::dashboard(Main::class) @@ -158,17 +159,17 @@ class NovaServiceProvider extends NovaApplicationServiceProvider Nova::footer(function ($request) { // return MIT license and date - return sprintf("%s %s - %s", date('Y'), config('app.name'), __('MIT License')); + return sprintf('%s %s - %s', date('Y'), config('app.name'), __('MIT License')); }); Nova::userTimezone(function (Request $request) { - return $request->user()->timezone; }); } /** * Get the tools that should be listed in the Nova sidebar. + * * @return array */ public function tools() @@ -180,6 +181,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider /** * Register the Nova routes. + * * @return void */ protected function routes() @@ -192,6 +194,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider /** * Register any application services. + * * @return void */ public function register() @@ -202,6 +205,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider /** * Register the Nova gate. * This gate determines who can access Nova in non-local environments. + * * @return void */ protected function gate() @@ -213,6 +217,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider /** * Get the dashboards that should be listed in the Nova sidebar. + * * @return array */ protected function dashboards() diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 89f3979d..a3fc497a 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -13,12 +13,14 @@ class RouteServiceProvider extends ServiceProvider /** * The path to the "home" route for your application. * Typically, users are redirected here after authentication. + * * @var string */ public const HOME = '/'; /** * Define your route model bindings, pattern filters, and other route configuration. + * * @return void */ public function boot() @@ -37,6 +39,7 @@ class RouteServiceProvider extends ServiceProvider /** * Configure the rate limiters for the application. + * * @return void */ protected function configureRateLimiting() diff --git a/app/Rules/UniqueAttendeeName.php b/app/Rules/UniqueAttendeeName.php index a8d6d3e5..218325e6 100644 --- a/app/Rules/UniqueAttendeeName.php +++ b/app/Rules/UniqueAttendeeName.php @@ -9,6 +9,7 @@ class UniqueAttendeeName implements InvokableRule { /** * Create a new rule instance. + * * @return void */ public function __construct(public MeetupEvent $meetupEvent) @@ -22,14 +23,14 @@ class UniqueAttendeeName implements InvokableRule $attendees = collect($this->meetupEvent->attendees); $mightAttendees = collect($this->meetupEvent->might_attendees); $isInAttendees = $attendees - ->contains(fn($v) => str($v) + ->contains(fn ($v) => str($v) ->after('|') ->lower() ->toString() === str($value) ->lower() ->toString()); $isInMightAttendees = $mightAttendees - ->contains(fn($v) => str($v) + ->contains(fn ($v) => str($v) ->after('|') ->lower() ->toString() === str($value) diff --git a/app/Support/Carbon.php b/app/Support/Carbon.php index 6dba325a..94026555 100644 --- a/app/Support/Carbon.php +++ b/app/Support/Carbon.php @@ -9,6 +9,7 @@ class Carbon extends CarbonImmutable public function asDate(): string { $dt = $this->timezone(config('app.user-timezone'))->locale('de'); + return str($dt->day)->padLeft(2, '0').'. '.$dt->monthName.' '.$dt->year; } @@ -21,7 +22,8 @@ class Carbon extends CarbonImmutable public function asDayNameAndMonthName(): string { $dt = $this->timezone(config('app.user-timezone'))->locale('de'); - return sprintf("%s, %s. week of %s [%s]", + + return sprintf('%s, %s. week of %s [%s]', $dt->dayName, $dt->weekNumberInMonth, $dt->monthName, @@ -32,7 +34,8 @@ class Carbon extends CarbonImmutable public function asDateTime(): string { $dt = $this->timezone(config('app.user-timezone'))->locale('de'); - return sprintf("%s.%s.%s %s (%s)", + + return sprintf('%s.%s.%s %s (%s)', str($dt->day)->padLeft(2, '0'), str($dt->month)->padLeft(2, '0'), $dt->year, diff --git a/app/Traits/TwitterTrait.php b/app/Traits/TwitterTrait.php index 65536365..da6d49f4 100644 --- a/app/Traits/TwitterTrait.php +++ b/app/Traits/TwitterTrait.php @@ -13,16 +13,16 @@ trait TwitterTrait $response = Http::acceptJson() ->post('https://api.twitter.com/2/oauth2/token', [ - 'grant_type' => 'refresh_token', + 'grant_type' => 'refresh_token', 'refresh_token' => $twitterAccount->refresh_token, - 'client_id' => 'a0I1Nnp4YmMzZzdtRzFod1ZWT2c6MTpjaQ', + 'client_id' => 'a0I1Nnp4YmMzZzdtRzFod1ZWT2c6MTpjaQ', ]); $json = $response->json(); \Log::info($json); TwitterAccount::find($accountId) ->update([ - 'token' => $json['access_token'], + 'token' => $json['access_token'], 'refresh_token' => $json['refresh_token'], ]); } diff --git a/config/broadcasting.php b/config/broadcasting.php index 1343168a..ce8461a1 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -31,17 +31,17 @@ return [ 'connections' => [ 'pusher' => [ - 'driver' => 'pusher', - 'key' => env('PUSHER_APP_KEY', 'app-key'), - 'secret' => env('PUSHER_APP_SECRET', 'app-secret'), - 'app_id' => env('PUSHER_APP_ID', 'app-id'), + 'driver' => 'pusher', + 'key' => env('PUSHER_APP_KEY', 'app-key'), + 'secret' => env('PUSHER_APP_SECRET', 'app-secret'), + 'app_id' => env('PUSHER_APP_ID', 'app-id'), 'options' => [ - 'host' => 'ws.portal.einundzwanzig.space', - 'port' => 6004, - 'scheme' => 'https', - 'encrypted' => true, - 'useTLS' => true, - 'debug' => true, + 'host' => 'ws.portal.einundzwanzig.space', + 'port' => 6004, + 'scheme' => 'https', + 'encrypted' => true, + 'useTLS' => true, + 'debug' => true, 'curl_options' => [ CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, diff --git a/config/comments.php b/config/comments.php index 732f6c3f..22198a0a 100644 --- a/config/comments.php +++ b/config/comments.php @@ -1,16 +1,16 @@ env('TWITTER_ACCOUNT_ID', null), 'podcastindex-org' => [ - 'key' => env('PODCASTINDEX_ORG_KEY'), + 'key' => env('PODCASTINDEX_ORG_KEY'), 'secret' => env('PODCASTINDEX_ORG_SECRET'), - ] + ], ]; diff --git a/config/fortify.php b/config/fortify.php index 8f8acf72..b04e922d 100644 --- a/config/fortify.php +++ b/config/fortify.php @@ -103,7 +103,7 @@ return [ */ 'limiters' => [ - 'login' => 'login', + 'login' => 'login', 'two-factor' => 'two-factor', ], @@ -137,11 +137,11 @@ return [ Features::emailVerification(), Features::updateProfileInformation(), //Features::updatePasswords(), -// Features::twoFactorAuthentication([ -// 'confirm' => true, -// 'confirmPassword' => true, -// // 'window' => 0, -// ]), + // Features::twoFactorAuthentication([ + // 'confirm' => true, + // 'confirmPassword' => true, + // // 'window' => 0, + // ]), ], ]; diff --git a/config/gamify.php b/config/gamify.php index d8a5b6c1..86c7e397 100644 --- a/config/gamify.php +++ b/config/gamify.php @@ -2,48 +2,48 @@ return [ // Model which will be having points, generally it will be User - 'payee_model' => '\App\User', + 'payee_model' => '\App\User', // Reputation model - 'reputation_model' => '\QCod\Gamify\Reputation', + 'reputation_model' => '\QCod\Gamify\Reputation', // Allow duplicate reputation points - 'allow_reputation_duplicate' => true, + 'allow_reputation_duplicate' => true, // Broadcast on private channel 'broadcast_on_private_channel' => false, // Channel name prefix, user id will be suffixed - 'channel_name' => 'user.reputation.', + 'channel_name' => 'user.reputation.', // Badge model - 'badge_model' => '\QCod\Gamify\Badge', + 'badge_model' => '\QCod\Gamify\Badge', // Where all badges icon stored - 'badge_icon_folder' => 'images/badges/', + 'badge_icon_folder' => 'images/badges/', // Extention of badge icons - 'badge_icon_extension' => '.svg', + 'badge_icon_extension' => '.svg', // All the levels for badge - 'badge_levels' => [ - 'No-Coiner 😱' => 0, - 'Shitcoiner 💩' => 0, - 'Trader 🎢' => 0, - 'Im Rabbit hole 🐰🕳' => 0, - 'DCA 🗓' => 0, + 'badge_levels' => [ + 'No-Coiner 😱' => 0, + 'Shitcoiner 💩' => 0, + 'Trader 🎢' => 0, + 'Im Rabbit hole 🐰🕳' => 0, + 'DCA 🗓' => 0, 'Not your keys, not your coins 🗝' => 0, - 'Wale 🐋' => 0, - 'Running a Node 📡' => 0, - 'Lightning-User ⚡️' => 0, - 'Miner ⛏️' => 0, - 'Solo-Miner 🎲' => 0, - 'Orange Pilled 💊' => 1, - 'Cyber Hornet 🐝' => 21000, // 210.000 - 'Toxic Maximalist 🧪' => 21000, // 210.000 - 'Satoshi Nakamoto 🧠' => 21000000, // 21.000.000 + 'Wale 🐋' => 0, + 'Running a Node 📡' => 0, + 'Lightning-User ⚡️' => 0, + 'Miner ⛏️' => 0, + 'Solo-Miner 🎲' => 0, + 'Orange Pilled 💊' => 1, + 'Cyber Hornet 🐝' => 21000, // 210.000 + 'Toxic Maximalist 🧪' => 21000, // 210.000 + 'Satoshi Nakamoto 🧠' => 21000000, // 21.000.000 ], // Default level - 'badge_default_level' => 0 + 'badge_default_level' => 0, ]; diff --git a/config/horizon.php b/config/horizon.php index a7692c47..56a3b6b5 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -99,12 +99,12 @@ return [ */ 'trim' => [ - 'recent' => 60, - 'pending' => 60, - 'completed' => 60, + 'recent' => 60, + 'pending' => 60, + 'completed' => 60, 'recent_failed' => 10080, - 'failed' => 10080, - 'monitored' => 10080, + 'failed' => 10080, + 'monitored' => 10080, ], /* @@ -135,7 +135,7 @@ return [ 'metrics' => [ 'trim_snapshots' => [ - 'job' => 24, + 'job' => 24, 'queue' => 24, ], ], @@ -181,23 +181,23 @@ return [ 'defaults' => [ 'supervisor-1' => [ - 'connection' => 'redis', - 'queue' => ['default'], - 'balance' => 'auto', + 'connection' => 'redis', + 'queue' => ['default'], + 'balance' => 'auto', 'maxProcesses' => 1, - 'maxTime' => 0, - 'maxJobs' => 0, - 'memory' => 128, - 'tries' => 1, - 'timeout' => 60, - 'nice' => 0, + 'maxTime' => 0, + 'maxJobs' => 0, + 'memory' => 128, + 'tries' => 1, + 'timeout' => 60, + 'nice' => 0, ], ], 'environments' => [ 'production' => [ 'supervisor-1' => [ - 'maxProcesses' => 10, + 'maxProcesses' => 10, 'balanceMaxShift' => 1, 'balanceCooldown' => 3, ], diff --git a/config/ignition.php b/config/ignition.php index bfdb991e..6d05010b 100644 --- a/config/ignition.php +++ b/config/ignition.php @@ -229,6 +229,6 @@ return [ DumpRecorder::class, JobRecorder::class, LogRecorder::class, - QueryRecorder::class - ] + QueryRecorder::class, + ], ]; diff --git a/config/jetstream.php b/config/jetstream.php index 30185f65..9c12240a 100644 --- a/config/jetstream.php +++ b/config/jetstream.php @@ -58,8 +58,8 @@ return [ */ 'features' => [ - Features::termsAndPrivacyPolicy(), - Features::profilePhotos(), + Features::termsAndPrivacyPolicy(), + Features::profilePhotos(), // Features::api(), Features::teams(['invitations' => true]), Features::accountDeletion(), diff --git a/config/languages/languages.php b/config/languages/languages.php index d19c1950..0a94a147 100644 --- a/config/languages/languages.php +++ b/config/languages/languages.php @@ -184,5 +184,5 @@ return [ 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang, Chuang', - 'zu' => 'Zulu' + 'zu' => 'Zulu', ]; diff --git a/config/nova.php b/config/nova.php index 4d4bf70c..3628127e 100644 --- a/config/nova.php +++ b/config/nova.php @@ -174,13 +174,13 @@ return [ 'logo' => resource_path('/img/einundzwanzig-horizontal-inverted.svg'), 'colors' => [ - "400" => "247, 147, 26, 0.5", // rgba(247, 147, 26, 1) - "500" => "247, 147, 26, 0.75", - "600" => "247, 147, 26, 1", + '400' => '247, 147, 26, 0.5', // rgba(247, 147, 26, 1) + '500' => '247, 147, 26, 0.75', + '600' => '247, 147, 26, 1', // rgba(0, 180, 207, 1) // rgba(21, 21, 21, 1) - ] + ], ], /* diff --git a/config/services.php b/config/services.php index 4c45fdea..3feaa642 100644 --- a/config/services.php +++ b/config/services.php @@ -19,10 +19,10 @@ return [ ], 'mailgun' => [ - 'domain' => env('MAILGUN_DOMAIN'), - 'secret' => env('MAILGUN_SECRET'), + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), - 'scheme' => 'https', + 'scheme' => 'https', ], 'postmark' => [ @@ -30,17 +30,16 @@ return [ ], 'ses' => [ - 'key' => env('AWS_ACCESS_KEY_ID'), + 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], 'twitter' => [ - 'oauth' => 2, - 'client_id' => env('TWITTER_CLIENT_ID'), + 'oauth' => 2, + 'client_id' => env('TWITTER_CLIENT_ID'), 'client_secret' => env('TWITTER_CLIENT_SECRET'), - 'redirect' => env('TWITTER_REDIRECT_URI'), + 'redirect' => env('TWITTER_REDIRECT_URI'), ], - ]; diff --git a/config/tags.php b/config/tags.php index 9c3ad934..e0fb29f7 100644 --- a/config/tags.php +++ b/config/tags.php @@ -6,7 +6,7 @@ return [ * The given function generates a URL friendly "slug" from the tag name property before saving it. * Defaults to Str::slug (https://laravel.com/docs/master/helpers#method-str-slug) */ - 'slugger' => null, + 'slugger' => null, /* * The fully qualified class name of the tag model. diff --git a/config/tags/tags.php b/config/tags/tags.php index 6d5bf3e5..fafdc6d2 100644 --- a/config/tags/tags.php +++ b/config/tags/tags.php @@ -1,97 +1,97 @@ [ + 'course' => [ [ - 'de' => 'Hardware Wallet', - 'en' => 'Hardware Wallet', + 'de' => 'Hardware Wallet', + 'en' => 'Hardware Wallet', 'icon' => 'wallet', ], [ - 'de' => 'Software Wallet', - 'en' => 'Software Wallet', + 'de' => 'Software Wallet', + 'en' => 'Software Wallet', 'icon' => 'message-code', ], [ - 'de' => 'Lightning', - 'en' => 'Lightning', + 'de' => 'Lightning', + 'en' => 'Lightning', 'icon' => 'bolt-lightning', ], [ - 'de' => 'On-Chain', - 'en' => 'On-Chain', + 'de' => 'On-Chain', + 'en' => 'On-Chain', 'icon' => 'link-horizontal', ], [ - 'de' => 'Off-Chain', - 'en' => 'Off-Chain', + 'de' => 'Off-Chain', + 'en' => 'Off-Chain', 'icon' => 'link-horizontal-slash', ], [ - 'de' => 'Für Unternehmen', - 'en' => 'For Businesses', + 'de' => 'Für Unternehmen', + 'en' => 'For Businesses', 'icon' => 'buildings', ], [ - 'de' => 'Mining', - 'en' => 'Mining', + 'de' => 'Mining', + 'en' => 'Mining', 'icon' => 'pickaxe', ], [ - 'de' => 'Datenschutz', - 'en' => 'Privacy', + 'de' => 'Datenschutz', + 'en' => 'Privacy', 'icon' => 'shield-keyhole', ], ], 'library_item' => [ [ - 'de' => 'Bitcoin', - 'en' => 'Bitcoin', + 'de' => 'Bitcoin', + 'en' => 'Bitcoin', 'icon' => 'book', ], [ - 'de' => 'Lightning', - 'en' => 'Lightning', + 'de' => 'Lightning', + 'en' => 'Lightning', 'icon' => 'bolt-lightning', ], [ - 'de' => 'Blockchain', - 'en' => 'Blockchain', + 'de' => 'Blockchain', + 'en' => 'Blockchain', 'icon' => 'link-horizontal', ], [ - 'de' => 'On-Chain', - 'en' => 'On-Chain', + 'de' => 'On-Chain', + 'en' => 'On-Chain', 'icon' => 'link-horizontal', ], [ - 'de' => 'Off-Chain', - 'en' => 'Off-Chain', + 'de' => 'Off-Chain', + 'en' => 'Off-Chain', 'icon' => 'link-horizontal-slash', ], [ - 'de' => 'Mining', - 'en' => 'Mining', + 'de' => 'Mining', + 'en' => 'Mining', 'icon' => 'pickaxe', ], [ - 'de' => 'Proof of Work', - 'en' => 'Proof of Work', + 'de' => 'Proof of Work', + 'en' => 'Proof of Work', 'icon' => 'pickaxe', ], [ - 'de' => 'Datenschutz', - 'en' => 'Privacy', + 'de' => 'Datenschutz', + 'en' => 'Privacy', 'icon' => 'shield-keyhole', ], [ - 'de' => 'Downloads', - 'en' => 'Downloads', + 'de' => 'Downloads', + 'en' => 'Downloads', 'icon' => 'download', ], [ - 'de' => 'Präsentationen', - 'en' => 'Presentations', + 'de' => 'Präsentationen', + 'en' => 'Presentations', 'icon' => 'presentation-screen', ], ], diff --git a/config/translation.php b/config/translation.php index dc3a702b..e2fe37f1 100644 --- a/config/translation.php +++ b/config/translation.php @@ -11,7 +11,7 @@ return [ | Supported: "file", "database" | */ - 'driver' => env('TRANSLATION_DRIVER', 'file'), + 'driver' => env('TRANSLATION_DRIVER', 'file'), /* |-------------------------------------------------------------------------- @@ -22,7 +22,7 @@ return [ | configuration here to configure the routes with your preferred group options. | */ - 'route_group_config' => [ + 'route_group_config' => [ 'middleware' => 'translation', ], @@ -46,7 +46,7 @@ return [ | looking for missing translations. | */ - 'scan_paths' => [app_path(), resource_path(), base_path('vendor')], + 'scan_paths' => [app_path(), resource_path(), base_path('vendor')], /* |-------------------------------------------------------------------------- @@ -56,7 +56,7 @@ return [ | Define the URL used to access the language management too. | */ - 'ui_url' => 'languages', + 'ui_url' => 'languages', /* |-------------------------------------------------------------------------- @@ -66,7 +66,7 @@ return [ | Define the settings for the database driver here. | */ - 'database' => [ + 'database' => [ 'connection' => '', diff --git a/config/wireui.php b/config/wireui.php index a20f2ec4..6c3ea479 100644 --- a/config/wireui.php +++ b/config/wireui.php @@ -25,11 +25,11 @@ return [ | */ 'modal' => [ - 'zIndex' => env('WIREUI_MODAL_Z_INDEX', 'z-50'), + 'zIndex' => env('WIREUI_MODAL_Z_INDEX', 'z-50'), 'maxWidth' => env('WIREUI_MODAL_MAX_WIDTH', '2xl'), - 'spacing' => env('WIREUI_MODAL_SPACING', 'p-4'), - 'align' => env('WIREUI_MODAL_ALIGN', 'start'), - 'blur' => env('WIREUI_MODAL_BLUR', false), + 'spacing' => env('WIREUI_MODAL_SPACING', 'p-4'), + 'align' => env('WIREUI_MODAL_ALIGN', 'start'), + 'blur' => env('WIREUI_MODAL_BLUR', false), ], /* @@ -41,10 +41,10 @@ return [ | */ 'card' => [ - 'padding' => env('WIREUI_CARD_PADDING', 'px-2 py-5 md:px-4'), - 'shadow' => env('WIREUI_CARD_SHADOW', 'shadow-md'), - 'rounded' => env('WIREUI_CARD_ROUNDED', 'rounded-lg'), - 'color' => env('WIREUI_CARD_COLOR', 'bg-white dark:bg-secondary-800'), + 'padding' => env('WIREUI_CARD_PADDING', 'px-2 py-5 md:px-4'), + 'shadow' => env('WIREUI_CARD_SHADOW', 'shadow-md'), + 'rounded' => env('WIREUI_CARD_ROUNDED', 'rounded-lg'), + 'color' => env('WIREUI_CARD_COLOR', 'bg-white dark:bg-secondary-800'), ], /* diff --git a/database/factories/BitcoinEventFactory.php b/database/factories/BitcoinEventFactory.php index abe91023..252b9682 100644 --- a/database/factories/BitcoinEventFactory.php +++ b/database/factories/BitcoinEventFactory.php @@ -2,10 +2,9 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\BitcoinEvent; use App\Models\Venue; +use Illuminate\Database\Eloquent\Factories\Factory; class BitcoinEventFactory extends Factory { diff --git a/database/factories/BookCaseFactory.php b/database/factories/BookCaseFactory.php index 384b0056..535b5b00 100644 --- a/database/factories/BookCaseFactory.php +++ b/database/factories/BookCaseFactory.php @@ -2,9 +2,8 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\BookCase; +use Illuminate\Database\Eloquent\Factories\Factory; class BookCaseFactory extends Factory { diff --git a/database/factories/CategoryFactory.php b/database/factories/CategoryFactory.php index 03343cac..5309bfde 100644 --- a/database/factories/CategoryFactory.php +++ b/database/factories/CategoryFactory.php @@ -2,9 +2,8 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Category; +use Illuminate\Database\Eloquent\Factories\Factory; class CategoryFactory extends Factory { diff --git a/database/factories/CityFactory.php b/database/factories/CityFactory.php index 591528df..3e92b6bb 100644 --- a/database/factories/CityFactory.php +++ b/database/factories/CityFactory.php @@ -2,10 +2,9 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\City; use App\Models\Country; +use Illuminate\Database\Eloquent\Factories\Factory; class CityFactory extends Factory { diff --git a/database/factories/CountryFactory.php b/database/factories/CountryFactory.php index 0c8d744d..f4249596 100644 --- a/database/factories/CountryFactory.php +++ b/database/factories/CountryFactory.php @@ -2,9 +2,8 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Country; +use Illuminate\Database\Eloquent\Factories\Factory; class CountryFactory extends Factory { diff --git a/database/factories/CourseFactory.php b/database/factories/CourseFactory.php index 5a24b7be..a1c3f797 100644 --- a/database/factories/CourseFactory.php +++ b/database/factories/CourseFactory.php @@ -2,10 +2,9 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Course; use App\Models\Lecturer; +use Illuminate\Database\Eloquent\Factories\Factory; class CourseFactory extends Factory { diff --git a/database/factories/EpisodeFactory.php b/database/factories/EpisodeFactory.php index 3076fd50..b837eb23 100644 --- a/database/factories/EpisodeFactory.php +++ b/database/factories/EpisodeFactory.php @@ -2,10 +2,9 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Episode; use App\Models\Podcast; +use Illuminate\Database\Eloquent\Factories\Factory; class EpisodeFactory extends Factory { diff --git a/database/factories/EventFactory.php b/database/factories/EventFactory.php index 7d20da21..ae324e93 100644 --- a/database/factories/EventFactory.php +++ b/database/factories/EventFactory.php @@ -2,11 +2,10 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Course; use App\Models\CourseEvent; use App\Models\Venue; +use Illuminate\Database\Eloquent\Factories\Factory; class EventFactory extends Factory { diff --git a/database/factories/LecturerFactory.php b/database/factories/LecturerFactory.php index 35f10361..50bbace3 100644 --- a/database/factories/LecturerFactory.php +++ b/database/factories/LecturerFactory.php @@ -2,10 +2,9 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Lecturer; use App\Models\Team; +use Illuminate\Database\Eloquent\Factories\Factory; class LecturerFactory extends Factory { diff --git a/database/factories/LibraryFactory.php b/database/factories/LibraryFactory.php index 91a54646..3f774bf3 100644 --- a/database/factories/LibraryFactory.php +++ b/database/factories/LibraryFactory.php @@ -2,9 +2,8 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Library; +use Illuminate\Database\Eloquent\Factories\Factory; class LibraryFactory extends Factory { diff --git a/database/factories/LibraryItemsFactory.php b/database/factories/LibraryItemsFactory.php index e3583215..6ce32d5b 100644 --- a/database/factories/LibraryItemsFactory.php +++ b/database/factories/LibraryItemsFactory.php @@ -2,11 +2,10 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Lecturer; use App\Models\Library; use App\Models\LibraryItems; +use Illuminate\Database\Eloquent\Factories\Factory; class LibraryItemsFactory extends Factory { diff --git a/database/factories/MeetupEventFactory.php b/database/factories/MeetupEventFactory.php index 7d5f5772..76121be8 100644 --- a/database/factories/MeetupEventFactory.php +++ b/database/factories/MeetupEventFactory.php @@ -2,10 +2,9 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Meetup; use App\Models\MeetupEvent; +use Illuminate\Database\Eloquent\Factories\Factory; class MeetupEventFactory extends Factory { diff --git a/database/factories/MeetupFactory.php b/database/factories/MeetupFactory.php index a8df6687..c93daa11 100644 --- a/database/factories/MeetupFactory.php +++ b/database/factories/MeetupFactory.php @@ -2,10 +2,9 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\City; use App\Models\Meetup; +use Illuminate\Database\Eloquent\Factories\Factory; class MeetupFactory extends Factory { diff --git a/database/factories/OrangePillFactory.php b/database/factories/OrangePillFactory.php index 0af15b09..546aff6d 100644 --- a/database/factories/OrangePillFactory.php +++ b/database/factories/OrangePillFactory.php @@ -2,11 +2,10 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\BookCase; use App\Models\OrangePill; use App\Models\User; +use Illuminate\Database\Eloquent\Factories\Factory; class OrangePillFactory extends Factory { diff --git a/database/factories/ParticipantFactory.php b/database/factories/ParticipantFactory.php index 6c63c5cf..d442914d 100644 --- a/database/factories/ParticipantFactory.php +++ b/database/factories/ParticipantFactory.php @@ -2,9 +2,8 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Participant; +use Illuminate\Database\Eloquent\Factories\Factory; class ParticipantFactory extends Factory { diff --git a/database/factories/PodcastFactory.php b/database/factories/PodcastFactory.php index 90ace2ee..31bf36b0 100644 --- a/database/factories/PodcastFactory.php +++ b/database/factories/PodcastFactory.php @@ -2,9 +2,8 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\Podcast; +use Illuminate\Database\Eloquent\Factories\Factory; class PodcastFactory extends Factory { diff --git a/database/factories/RegistrationFactory.php b/database/factories/RegistrationFactory.php index d2c6087f..6b55aae5 100644 --- a/database/factories/RegistrationFactory.php +++ b/database/factories/RegistrationFactory.php @@ -2,11 +2,10 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\CourseEvent; use App\Models\Participant; use App\Models\Registration; +use Illuminate\Database\Eloquent\Factories\Factory; class RegistrationFactory extends Factory { diff --git a/database/factories/VenueFactory.php b/database/factories/VenueFactory.php index 6843c49d..cf1da517 100644 --- a/database/factories/VenueFactory.php +++ b/database/factories/VenueFactory.php @@ -2,10 +2,9 @@ namespace Database\Factories; -use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use App\Models\City; use App\Models\Venue; +use Illuminate\Database\Eloquent\Factories\Factory; class VenueFactory extends Factory { diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index 35e74c03..dc01e212 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -37,6 +39,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2020_05_21_300000_create_permission_tables.php b/database/migrations/2020_05_21_300000_create_permission_tables.php index 04c3278b..6f3053b2 100644 --- a/database/migrations/2020_05_21_300000_create_permission_tables.php +++ b/database/migrations/2020_05_21_300000_create_permission_tables.php @@ -1,8 +1,8 @@ primary([PermissionRegistrar::$pivotPermission, $columnNames['model_morph_key'], 'model_type'], 'model_has_permissions_permission_model_type_primary'); } - }); Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames, $teams) { diff --git a/database/migrations/2022_12_01_145948_create_countries_table.php b/database/migrations/2022_12_01_145948_create_countries_table.php index cb91b47c..e54a3743 100644 --- a/database/migrations/2022_12_01_145948_create_countries_table.php +++ b/database/migrations/2022_12_01_145948_create_countries_table.php @@ -8,6 +8,7 @@ class CreateCountriesTable extends Migration { /** * Run the migrations. + * * @return void */ public function up(): void @@ -24,6 +25,7 @@ class CreateCountriesTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down(): void diff --git a/database/migrations/2022_12_01_145949_create_cities_table.php b/database/migrations/2022_12_01_145949_create_cities_table.php index 162e916e..5518864a 100644 --- a/database/migrations/2022_12_01_145949_create_cities_table.php +++ b/database/migrations/2022_12_01_145949_create_cities_table.php @@ -8,6 +8,7 @@ class CreateCitiesTable extends Migration { /** * Run the migrations. + * * @return void */ public function up(): void @@ -32,6 +33,7 @@ class CreateCitiesTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down(): void diff --git a/database/migrations/2022_12_01_180529_create_login_keys_table.php b/database/migrations/2022_12_01_180529_create_login_keys_table.php index de64c8f2..9676c3c1 100644 --- a/database/migrations/2022_12_01_180529_create_login_keys_table.php +++ b/database/migrations/2022_12_01_180529_create_login_keys_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -22,6 +24,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_01_210526_add_geo_fields_to_cities_table.php b/database/migrations/2022_12_01_210526_add_geo_fields_to_cities_table.php index 57f66685..cd08595d 100644 --- a/database/migrations/2022_12_01_210526_add_geo_fields_to_cities_table.php +++ b/database/migrations/2022_12_01_210526_add_geo_fields_to_cities_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -19,6 +21,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_02_133043_add_timezone_field_to_users_table.php b/database/migrations/2022_12_02_133043_add_timezone_field_to_users_table.php index e7576cd9..f97388a9 100644 --- a/database/migrations/2022_12_02_133043_add_timezone_field_to_users_table.php +++ b/database/migrations/2022_12_02_133043_add_timezone_field_to_users_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -19,6 +21,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_02_162000_create_trix_tables.php b/database/migrations/2022_12_02_162000_create_trix_tables.php index cd44feb7..a9469b6c 100644 --- a/database/migrations/2022_12_02_162000_create_trix_tables.php +++ b/database/migrations/2022_12_02_162000_create_trix_tables.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -32,11 +34,11 @@ return new class extends Migration { $table->index(['attachable_type', 'attachable_id']); }); - } /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_02_162124_add_description_field_to_lecturers_table.php b/database/migrations/2022_12_02_162124_add_description_field_to_lecturers_table.php index 951ea35b..0855bffd 100644 --- a/database/migrations/2022_12_02_162124_add_description_field_to_lecturers_table.php +++ b/database/migrations/2022_12_02_162124_add_description_field_to_lecturers_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -20,6 +22,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_03_180232_add_description_field_to_courses_table.php b/database/migrations/2022_12_03_180232_add_description_field_to_courses_table.php index 72ca29d0..70bf7b50 100644 --- a/database/migrations/2022_12_03_180232_add_description_field_to_courses_table.php +++ b/database/migrations/2022_12_03_180232_add_description_field_to_courses_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -20,6 +22,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_03_183452_add_link_field_to_course_events_table.php b/database/migrations/2022_12_03_183452_add_link_field_to_course_events_table.php index b6a1ad0a..263f91e2 100644 --- a/database/migrations/2022_12_03_183452_add_link_field_to_course_events_table.php +++ b/database/migrations/2022_12_03_183452_add_link_field_to_course_events_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -18,6 +20,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_04_154911_create_podcasts_table.php b/database/migrations/2022_12_04_154911_create_podcasts_table.php index 8bbd14c5..fb91c53a 100644 --- a/database/migrations/2022_12_04_154911_create_podcasts_table.php +++ b/database/migrations/2022_12_04_154911_create_podcasts_table.php @@ -8,6 +8,7 @@ class CreatePodcastsTable extends Migration { /** * Run the migrations. + * * @return void */ public function up(): void @@ -29,6 +30,7 @@ class CreatePodcastsTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down(): void diff --git a/database/migrations/2022_12_04_154912_create_episodes_table.php b/database/migrations/2022_12_04_154912_create_episodes_table.php index 981a1b85..f2f7153b 100644 --- a/database/migrations/2022_12_04_154912_create_episodes_table.php +++ b/database/migrations/2022_12_04_154912_create_episodes_table.php @@ -8,6 +8,7 @@ class CreateEpisodesTable extends Migration { /** * Run the migrations. + * * @return void */ public function up(): void @@ -31,6 +32,7 @@ class CreateEpisodesTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down(): void diff --git a/database/migrations/2022_12_05_160932_create_libraries_table.php b/database/migrations/2022_12_05_160932_create_libraries_table.php index ea72aa87..f3d282e1 100644 --- a/database/migrations/2022_12_05_160932_create_libraries_table.php +++ b/database/migrations/2022_12_05_160932_create_libraries_table.php @@ -8,6 +8,7 @@ class CreateLibrariesTable extends Migration { /** * Run the migrations. + * * @return void */ public function up(): void @@ -25,6 +26,7 @@ class CreateLibrariesTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down(): void diff --git a/database/migrations/2022_12_05_160933_create_library_items_table.php b/database/migrations/2022_12_05_160933_create_library_items_table.php index e0c21c72..3537b7a3 100644 --- a/database/migrations/2022_12_05_160933_create_library_items_table.php +++ b/database/migrations/2022_12_05_160933_create_library_items_table.php @@ -8,6 +8,7 @@ class CreateLibraryItemsTable extends Migration { /** * Run the migrations. + * * @return void */ public function up(): void @@ -39,6 +40,7 @@ class CreateLibraryItemsTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down(): void diff --git a/database/migrations/2022_12_05_175957_create_library_library_item_table.php b/database/migrations/2022_12_05_175957_create_library_library_item_table.php index 7e1229f4..ebfc9793 100644 --- a/database/migrations/2022_12_05_175957_create_library_library_item_table.php +++ b/database/migrations/2022_12_05_175957_create_library_library_item_table.php @@ -8,6 +8,7 @@ class CreateLibraryLibraryItemTable extends Migration { /** * Run the migrations. + * * @return void */ public function up() @@ -30,6 +31,7 @@ class CreateLibraryLibraryItemTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_06_222651_create_book_cases_table.php b/database/migrations/2022_12_06_222651_create_book_cases_table.php index b43a0cae..d558fe26 100644 --- a/database/migrations/2022_12_06_222651_create_book_cases_table.php +++ b/database/migrations/2022_12_06_222651_create_book_cases_table.php @@ -8,6 +8,7 @@ class CreateBookCasesTable extends Migration { /** * Run the migrations. + * * @return void */ public function up(): void @@ -41,6 +42,7 @@ class CreateBookCasesTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down(): void diff --git a/database/migrations/2022_12_07_122722_create_comments_tables.php b/database/migrations/2022_12_07_122722_create_comments_tables.php index cf826bd2..e7461321 100644 --- a/database/migrations/2022_12_07_122722_create_comments_tables.php +++ b/database/migrations/2022_12_07_122722_create_comments_tables.php @@ -1,8 +1,8 @@ timestamps(); }); - Schema::create('comment_notification_subscriptions', function(Blueprint $table) { + Schema::create('comment_notification_subscriptions', function (Blueprint $table) { $table->id(); $table->morphs('commentable', 'cn_subscriptions_commentable'); $table->morphs('subscriber', 'cn_subscriptions_subscriber'); diff --git a/database/migrations/2022_12_12_155929_create_meetup_events_table.php b/database/migrations/2022_12_12_155929_create_meetup_events_table.php index 46ee0fee..2d685a7b 100644 --- a/database/migrations/2022_12_12_155929_create_meetup_events_table.php +++ b/database/migrations/2022_12_12_155929_create_meetup_events_table.php @@ -8,6 +8,7 @@ class CreateMeetupEventsTable extends Migration { /** * Run the migrations. + * * @return void */ public function up(): void @@ -35,6 +36,7 @@ class CreateMeetupEventsTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down(): void diff --git a/database/migrations/2022_12_12_171115_create_bitcoin_events_table.php b/database/migrations/2022_12_12_171115_create_bitcoin_events_table.php index b1b77cd8..b2e4fd11 100644 --- a/database/migrations/2022_12_12_171115_create_bitcoin_events_table.php +++ b/database/migrations/2022_12_12_171115_create_bitcoin_events_table.php @@ -8,6 +8,7 @@ class CreateBitcoinEventsTable extends Migration { /** * Run the migrations. + * * @return void */ public function up(): void @@ -35,6 +36,7 @@ class CreateBitcoinEventsTable extends Migration /** * Reverse the migrations. + * * @return void */ public function down(): void diff --git a/database/migrations/2022_12_14_123437_create_created_by_fields_on_all_tables.php b/database/migrations/2022_12_14_123437_create_created_by_fields_on_all_tables.php index c6932fae..cc06a555 100644 --- a/database/migrations/2022_12_14_123437_create_created_by_fields_on_all_tables.php +++ b/database/migrations/2022_12_14_123437_create_created_by_fields_on_all_tables.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -93,6 +95,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_15_144111_add_show_worldwide_field_to_bitcoin_events_table.php b/database/migrations/2022_12_15_144111_add_show_worldwide_field_to_bitcoin_events_table.php index 4e672511..1e6329ba 100644 --- a/database/migrations/2022_12_15_144111_add_show_worldwide_field_to_bitcoin_events_table.php +++ b/database/migrations/2022_12_15_144111_add_show_worldwide_field_to_bitcoin_events_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -19,6 +21,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_17_181802_add_english_name_to_countries_table.php b/database/migrations/2022_12_17_181802_add_english_name_to_countries_table.php index 0931de60..cf9dcbca 100644 --- a/database/migrations/2022_12_17_181802_add_english_name_to_countries_table.php +++ b/database/migrations/2022_12_17_181802_add_english_name_to_countries_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -19,6 +21,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_17_183136_add_coordinates_to_countries_table.php b/database/migrations/2022_12_17_183136_add_coordinates_to_countries_table.php index b106e4a7..05d14df8 100644 --- a/database/migrations/2022_12_17_183136_add_coordinates_to_countries_table.php +++ b/database/migrations/2022_12_17_183136_add_coordinates_to_countries_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -21,6 +23,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2022_12_18_122532_add_current_language_to_users_table.php b/database/migrations/2022_12_18_122532_add_current_language_to_users_table.php index 5321492c..e0a30691 100644 --- a/database/migrations/2022_12_18_122532_add_current_language_to_users_table.php +++ b/database/migrations/2022_12_18_122532_add_current_language_to_users_table.php @@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. + * * @return void */ public function up() @@ -19,6 +21,7 @@ return new class extends Migration { /** * Reverse the migrations. + * * @return void */ public function down() diff --git a/database/migrations/2023_01_14_185805_add_reputation_field_on_user_table.php b/database/migrations/2023_01_14_185805_add_reputation_field_on_user_table.php index 25213db6..331a9143 100644 --- a/database/migrations/2023_01_14_185805_add_reputation_field_on_user_table.php +++ b/database/migrations/2023_01_14_185805_add_reputation_field_on_user_table.php @@ -1,8 +1,8 @@ 'super-admin', + 'name' => 'super-admin', 'guard_name' => 'web', ]); Permission::create([ - 'name' => 'translate', + 'name' => 'translate', 'guard_name' => 'web', ]); $user = User::create([ - 'name' => 'Admin', - 'email' => 'admin@einundzwanzig.space', + 'name' => 'Admin', + 'email' => 'admin@einundzwanzig.space', 'email_verified_at' => now(), - 'password' => bcrypt('1234'), - 'remember_token' => Str::random(10), - 'is_lecturer' => true, + 'password' => bcrypt('1234'), + 'remember_token' => Str::random(10), + 'is_lecturer' => true, ]); $team = Team::create([ - 'name' => 'Admin Team', - 'user_id' => $user->id, + 'name' => 'Admin Team', + 'user_id' => $user->id, 'personal_team' => true, ]); $user->givePermissionTo('translate'); $user->current_team_id = $team->id; $user->save(); Country::create([ - 'name' => 'Deutschland', - 'code' => 'de', + 'name' => 'Deutschland', + 'code' => 'de', 'language_codes' => ['de'], ]); Country::create([ - 'name' => 'Österreich', - 'code' => 'at', + 'name' => 'Österreich', + 'code' => 'at', 'language_codes' => ['de'], ]); Country::create([ - 'name' => 'Schweiz', - 'code' => 'ch', + 'name' => 'Schweiz', + 'code' => 'ch', 'language_codes' => ['de'], ]); Country::create([ - 'name' => 'France', - 'code' => 'fr', + 'name' => 'France', + 'code' => 'fr', 'language_codes' => ['fr'], ]); Country::create([ - 'name' => 'Sweden', - 'code' => 'se', + 'name' => 'Sweden', + 'code' => 'se', 'language_codes' => ['sv'], ]); Country::create([ - 'name' => 'Serbia', - 'code' => 'rs', + 'name' => 'Serbia', + 'code' => 'rs', 'language_codes' => ['rs'], - 'longitude' => 21, - 'latitude' => 44, + 'longitude' => 21, + 'latitude' => 44, ]); City::create([ 'country_id' => 1, - 'name' => 'Füssen', - 'latitude' => 47.57143, - 'longitude' => 10.70171, + 'name' => 'Füssen', + 'latitude' => 47.57143, + 'longitude' => 10.70171, 'created_by' => 1, ]); City::create([ 'country_id' => 1, - 'name' => 'Kempten', - 'latitude' => 47.728569, - 'longitude' => 10.315784, + 'name' => 'Kempten', + 'latitude' => 47.728569, + 'longitude' => 10.315784, 'created_by' => 1, ]); City::create([ 'country_id' => 1, - 'name' => 'Pfronten', - 'latitude' => 47.582359, - 'longitude' => 10.5598, + 'name' => 'Pfronten', + 'latitude' => 47.582359, + 'longitude' => 10.5598, 'created_by' => 1, ]); City::create([ 'country_id' => 2, - 'name' => 'Wien', - 'latitude' => 48.20835, - 'longitude' => 16.37250, + 'name' => 'Wien', + 'latitude' => 48.20835, + 'longitude' => 16.37250, 'created_by' => 1, ]); City::create([ 'country_id' => 3, - 'name' => 'Zürich', - 'latitude' => 47.41330, - 'longitude' => 8.65639, + 'name' => 'Zürich', + 'latitude' => 47.41330, + 'longitude' => 8.65639, 'created_by' => 1, ]); City::create([ 'country_id' => 1, - 'name' => 'Hessen', - 'latitude' => 50.526501, - 'longitude' => 9.004440, + 'name' => 'Hessen', + 'latitude' => 50.526501, + 'longitude' => 9.004440, 'created_by' => 1, ]); Venue::create([ - 'city_id' => 1, - 'name' => 'The Blue Studio Coworking (Füssen)', - 'street' => 'Teststraße 1', + 'city_id' => 1, + 'name' => 'The Blue Studio Coworking (Füssen)', + 'street' => 'Teststraße 1', 'created_by' => 1, ]); Venue::create([ - 'city_id' => 2, - 'name' => 'The Blue Studio Coworking (Kempten)', - 'street' => 'Teststraße 2', + 'city_id' => 2, + 'name' => 'The Blue Studio Coworking (Kempten)', + 'street' => 'Teststraße 2', 'created_by' => 1, ]); Venue::create([ - 'city_id' => 3, - 'name' => 'The Blue Studio Coworking (Pfronten)', - 'street' => 'Teststraße 3', + 'city_id' => 3, + 'name' => 'The Blue Studio Coworking (Pfronten)', + 'street' => 'Teststraße 3', 'created_by' => 1, ]); Venue::create([ - 'city_id' => 4, - 'name' => 'Innsbruck', - 'street' => 'Innsbrucker Straße 1', + 'city_id' => 4, + 'name' => 'Innsbruck', + 'street' => 'Innsbrucker Straße 1', 'created_by' => 1, ]); Lecturer::create([ - 'team_id' => 1, - 'name' => 'Markus Turm', - 'active' => true, + 'team_id' => 1, + 'name' => 'Markus Turm', + 'active' => true, 'created_by' => 1, ]); Lecturer::create([ - 'team_id' => 1, - 'name' => 'Beppo', - 'active' => true, + 'team_id' => 1, + 'name' => 'Beppo', + 'active' => true, 'created_by' => 1, ]); Lecturer::create([ - 'team_id' => 1, - 'name' => 'Helper', - 'active' => true, + 'team_id' => 1, + 'name' => 'Helper', + 'active' => true, 'created_by' => 1, ]); Lecturer::create([ - 'team_id' => 1, - 'name' => 'Gigi', - 'active' => true, + 'team_id' => 1, + 'name' => 'Gigi', + 'active' => true, 'created_by' => 1, ]); $category = Category::create([ @@ -196,8 +196,8 @@ class DatabaseSeeder extends Seeder ]); $course = Course::create([ 'lecturer_id' => 1, - 'name' => 'Hands on Bitcoin', - 'created_by' => 1, + 'name' => 'Hands on Bitcoin', + 'created_by' => 1, 'description' => ' Klimakiller Bitcoin! Bitcoin hat keinen Nutzen! Bitcoin wird nur von Kriminellen genutzt! @@ -217,8 +217,8 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera ->attach($category); $course = Course::create([ 'lecturer_id' => 1, - 'name' => 'Bitcoin <> Crypto', - 'created_by' => 1, + 'name' => 'Bitcoin <> Crypto', + 'created_by' => 1, 'description' => ' Klimakiller Bitcoin! Bitcoin hat keinen Nutzen! Bitcoin wird nur von Kriminellen genutzt! @@ -238,8 +238,8 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera ->attach($categoryOnline); $course = Course::create([ 'lecturer_id' => 2, - 'name' => 'Bitcoin Lightning Network', - 'created_by' => 1, + 'name' => 'Bitcoin Lightning Network', + 'created_by' => 1, 'description' => ' Klimakiller Bitcoin! Bitcoin hat keinen Nutzen! Bitcoin wird nur von Kriminellen genutzt! @@ -259,55 +259,55 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera ->attach($categoryOnline); Participant::create([ 'first_name' => 'Roman', - 'last_name' => 'Reher', + 'last_name' => 'Reher', ]); CourseEvent::create([ - 'course_id' => 2, - 'venue_id' => 1, - 'link' => 'https://einundzwanzig.space', - 'from' => now() + 'course_id' => 2, + 'venue_id' => 1, + 'link' => 'https://einundzwanzig.space', + 'from' => now() ->addDays(14) ->startOfDay(), - 'to' => now() + 'to' => now() ->addDays(14) ->startOfDay() ->addHour(), 'created_by' => 1, ]); CourseEvent::create([ - 'course_id' => 1, - 'venue_id' => 2, - 'link' => 'https://einundzwanzig.space', - 'from' => now() + 'course_id' => 1, + 'venue_id' => 2, + 'link' => 'https://einundzwanzig.space', + 'from' => now() ->addDays(31) ->startOfDay(), - 'to' => now() + 'to' => now() ->addDays(31) ->startOfDay() ->addHour(), 'created_by' => 1, ]); CourseEvent::create([ - 'course_id' => 1, - 'venue_id' => 3, - 'link' => 'https://einundzwanzig.space', - 'from' => now() + 'course_id' => 1, + 'venue_id' => 3, + 'link' => 'https://einundzwanzig.space', + 'from' => now() ->addDays(4) ->startOfDay(), - 'to' => now() + 'to' => now() ->addDays(4) ->startOfDay() ->addHour(), 'created_by' => 1, ]); CourseEvent::create([ - 'course_id' => 3, - 'venue_id' => 3, - 'link' => 'https://einundzwanzig.space', - 'from' => now() + 'course_id' => 3, + 'venue_id' => 3, + 'link' => 'https://einundzwanzig.space', + 'from' => now() ->addDays(4) ->startOfDay(), - 'to' => now() + 'to' => now() ->addDays(4) ->startOfDay() ->addHour(), @@ -315,72 +315,72 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera ]); Registration::create([ 'course_event_id' => 1, - 'participant_id' => 1, + 'participant_id' => 1, ]); $library = Library::create([ - 'name' => 'Einundzwanzig', + 'name' => 'Einundzwanzig', 'language_codes' => ['de'], - 'created_by' => 1, + 'created_by' => 1, ]); $libraryItem = LibraryItem::create([ - 'lecturer_id' => 3, - 'name' => 'BITCOIN - Eine Reise in den Kaninchenbau🐇🕳️', - 'type' => 'youtube_video', + 'lecturer_id' => 3, + 'name' => 'BITCOIN - Eine Reise in den Kaninchenbau🐇🕳️', + 'type' => 'youtube_video', 'language_code' => 'de', - 'value' => 'https://www.youtube.com/watch?v=Oztd2Sja4k0', - 'created_by' => 1, + 'value' => 'https://www.youtube.com/watch?v=Oztd2Sja4k0', + 'created_by' => 1, ]); $libraryItem->setStatus('published'); $libraryItem->syncTagsWithType(['Bitcoin'], 'library_item'); $library->libraryItems() ->attach($libraryItem); $library = Library::create([ - 'name' => 'Apricot', + 'name' => 'Apricot', 'language_codes' => ['de', 'en'], - 'created_by' => 1, + 'created_by' => 1, ]); $libraryItem = LibraryItem::create([ - 'lecturer_id' => 4, - 'name' => 'Liebe Krypto- und Fiat-Bros️', - 'type' => 'blog_article', + 'lecturer_id' => 4, + 'name' => 'Liebe Krypto- und Fiat-Bros️', + 'type' => 'blog_article', 'language_code' => 'de', - 'value' => 'https://aprycot.media/blog/liebe-krypto-und-fiat-bros/', - 'created_by' => 1, + 'value' => 'https://aprycot.media/blog/liebe-krypto-und-fiat-bros/', + 'created_by' => 1, ]); $libraryItem->setStatus('published'); $libraryItem->syncTagsWithType(['Bitcoin'], 'library_item'); $library->libraryItems() ->attach($libraryItem); $library = Library::create([ - 'name' => 'Gigi', + 'name' => 'Gigi', 'language_codes' => ['de', 'en'], - 'created_by' => 1, + 'created_by' => 1, ]); $libraryItem = LibraryItem::create([ - 'lecturer_id' => 4, - 'name' => 'Cryptography is Not Enough - Gigi @ Baltic Honeybadger 2022 ', - 'type' => 'youtube_video', + 'lecturer_id' => 4, + 'name' => 'Cryptography is Not Enough - Gigi @ Baltic Honeybadger 2022 ', + 'type' => 'youtube_video', 'language_code' => 'de', - 'value' => 'https://www.youtube.com/watch?v=C7ynm0Zkwfk', - 'created_by' => 1, + 'value' => 'https://www.youtube.com/watch?v=C7ynm0Zkwfk', + 'created_by' => 1, ]); $libraryItem->setStatus('published'); $libraryItem->syncTagsWithType(['Proof of Work'], 'library_item'); $library->libraryItems() ->attach($libraryItem); $nonPublicLibrary = Library::create([ - 'name' => 'Einundzwanzig Dozenten', - 'is_public' => false, + 'name' => 'Einundzwanzig Dozenten', + 'is_public' => false, 'language_codes' => ['de', 'en'], - 'created_by' => 1, + 'created_by' => 1, ]); $libraryItem = LibraryItem::create([ - 'lecturer_id' => 4, - 'name' => 'Präsentation: Bitcoin VHS Kurs 2022', - 'type' => 'downloadable_file', + 'lecturer_id' => 4, + 'name' => 'Präsentation: Bitcoin VHS Kurs 2022', + 'type' => 'downloadable_file', 'language_code' => 'de', - 'value' => null, - 'created_by' => 1, + 'value' => null, + 'created_by' => 1, ]); $libraryItem->setStatus('published'); $libraryItem->syncTagsWithType(['Präsentationen'], 'library_item'); @@ -390,44 +390,44 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera Artisan::call(SyncOpenBooks::class); Artisan::call(ImportGithubMeetups::class); MeetupEvent::create([ - 'meetup_id' => 1, - 'start' => now() + 'meetup_id' => 1, + 'start' => now() ->addDays(31) ->startOfDay() ->addHours(20), - 'location' => 'Einundzwanzig Kempten', + 'location' => 'Einundzwanzig Kempten', 'description' => fake()->text(), - 'link' => 'https://t.me/EinundzwanzigKempten', - 'created_by' => 1, + 'link' => 'https://t.me/EinundzwanzigKempten', + 'created_by' => 1, ]); MeetupEvent::create([ - 'meetup_id' => 1, - 'start' => now() + 'meetup_id' => 1, + 'start' => now() ->subDays(2) ->startOfDay() ->addHours(20), - 'location' => 'Einundzwanzig Kempten', + 'location' => 'Einundzwanzig Kempten', 'description' => fake()->text(), - 'link' => 'https://t.me/EinundzwanzigKempten', - 'created_by' => 1, + 'link' => 'https://t.me/EinundzwanzigKempten', + 'created_by' => 1, ]); BitcoinEvent::create([ - 'venue_id' => 4, - 'from' => Carbon::parse('2023-09-12') + 'venue_id' => 4, + 'from' => Carbon::parse('2023-09-12') ->startOfDay() ->addHours(8), - 'to' => Carbon::parse('2023-09-16') + 'to' => Carbon::parse('2023-09-16') ->startOfDay() ->addHours(18), - 'title' => 'BTC23', + 'title' => 'BTC23', 'description' => 'The largest Bitcoin conference in German is entering the second round: The BTC23 will be even better, more diverse and quite controversial. We are open - for Bitcoiners, interested parties and skeptics from all directions. Three days with bitcoiners, thought leaders and entrepreneurs from space - full of relevant lectures, debates and conversations. And of course parties! The following applies: The BTC23 is there for everyone, no matter what level of knowledge you have on the subject. #bitcoinonly Advance ticket sales begin on December 21, 2022 at 9:21 p.m. with time-limited early bird tickets. Ticket presale begins on December 21, 2022 at 9:21 p.m. Be quick - there are a limited amount of early bird tickets again. ', - 'link' => 'https://bconf.de/en/', - 'created_by' => 1, + 'link' => 'https://bconf.de/en/', + 'created_by' => 1, ]); Artisan::call(SynchroniseMissingTranslationKeys::class); } diff --git a/resources/lang/de/Loading.php b/resources/lang/de/Loading.php index f685cf04..438fe328 100644 --- a/resources/lang/de/Loading.php +++ b/resources/lang/de/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => 'Lade', - ), - ), -); +return [ + '' => [ + '' => [ + '' => 'Lade', + ], + ], +]; diff --git a/resources/lang/de/auth.php b/resources/lang/de/auth.php index fbb02b51..f71af703 100644 --- a/resources/lang/de/auth.php +++ b/resources/lang/de/auth.php @@ -1,7 +1,7 @@ 'Diese Kombination aus Zugangsdaten wurde nicht in unserer Datenbank gefunden.', - 'password' => 'Das Passwort ist falsch.', - 'throttle' => 'Zu viele Loginversuche. Versuchen Sie es bitte in :seconds Sekunden nochmal.', -); +return [ + 'failed' => 'Diese Kombination aus Zugangsdaten wurde nicht in unserer Datenbank gefunden.', + 'password' => 'Das Passwort ist falsch.', + 'throttle' => 'Zu viele Loginversuche. Versuchen Sie es bitte in :seconds Sekunden nochmal.', +]; diff --git a/resources/lang/de/http-statuses.php b/resources/lang/de/http-statuses.php index 9fddd13f..ba1929c9 100644 --- a/resources/lang/de/http-statuses.php +++ b/resources/lang/de/http-statuses.php @@ -1,82 +1,82 @@ 'Unbekannter Fehler', - 'unknownError' => 'Unbekannter Fehler', - 100 => 'Weiter', - 101 => 'Switching Protocols', - 102 => 'Verarbeitung', - 200 => 'OK', - 201 => 'Erstellt', - 202 => 'Akzeptiert', - 203 => 'Nicht maßgebende Informationen', - 204 => 'Kein Inhalt', - 205 => 'Inhalt zurücksetzen', - 206 => 'Teilinhalt', - 207 => 'Multi-Status', - 208 => 'Bereits gemeldet', - 226 => 'IM verwendet', - 300 => 'Mehrfachauswahl', - 301 => 'Permanent verschoben', - 302 => 'Gefunden', - 303 => 'Andere sehen', - 304 => 'Nicht modifiziert', - 305 => 'Proxy verwenden', - 307 => 'Temporäre Weiterleitung', - 308 => 'Permanente Weiterleitung', - 400 => 'Schlechte Anfrage', - 401 => 'Nicht autorisiert', - 402 => 'Zahlung erforderlich', - 403 => 'Verboten', - 404 => 'Seite nicht gefunden', - 405 => 'Methode nicht erlaubt', - 406 => 'Nicht annehmbar', - 407 => 'Proxy-Authentifizierung erforderlich', - 408 => 'Zeitüberschreitung anfordern', - 409 => 'Konflikt', - 410 => 'Gegangen', - 411 => 'Länge erforderlich', - 412 => 'Vorbedingung fehlgeschlagen', - 413 => 'Nutzlast zu groß', - 414 => 'URI zu lang', - 415 => 'Nicht unterstützter Medientyp', - 416 => 'Bereich nicht erfüllbar', - 417 => 'Erwartung gescheitert', - 418 => 'Ich bin eine Teekanne', - 419 => 'Sitzung ist abgelaufen', - 421 => 'Fehlgeleitete Anfrage', - 422 => 'Unverfügbare Entität', - 423 => 'Gesperrt', - 424 => 'Fehlgeschlagene Abhängigkeit', - 425 => 'Too Early', - 426 => 'Upgrade erforderlich', - 428 => 'Voraussetzung erforderlich', - 429 => 'Zu viele Anfragen', - 431 => 'Kopfzeilenfelder zu groß anfordern', - 444 => 'Connection Closed Without Response', - 449 => 'Wiederhole mit', - 451 => 'Aus rechtlichen Gründen nicht verfügbar', - 499 => 'Client Closed Request', - 500 => 'Interner Serverfehler', - 501 => 'Nicht implementiert', - 502 => 'Bad Gateway', - 503 => 'Wartungsmodus', - 504 => 'Gateway Timeout', - 505 => 'HTTP Version nicht unterstützt', - 506 => 'Variante verhandelt auch', - 507 => 'Ungenügende Speicherung', - 508 => 'Loop Detected', - 509 => 'Bandbreitengrenze überschritten', - 510 => 'Nicht erweitert', - 511 => 'Netzwerkauthentifizierung erforderlich', - 520 => 'Unbekannter Fehler', - 521 => 'Webserver ist ausgefallen', - 522 => 'Verbindung abgelaufen', - 523 => 'Ursprung ist nicht erreichbar', - 524 => 'Ein Timeout ist aufgetreten', - 525 => 'SSL Handshake fehlgeschlagen', - 526 => 'Ungültiges SSL-Zertifikat', - 527 => 'Railgun Error', - 598 => 'Network Read Timeout Error', - 599 => 'Network Connect Timeout Error', -); +return [ + 0 => 'Unbekannter Fehler', + 'unknownError' => 'Unbekannter Fehler', + 100 => 'Weiter', + 101 => 'Switching Protocols', + 102 => 'Verarbeitung', + 200 => 'OK', + 201 => 'Erstellt', + 202 => 'Akzeptiert', + 203 => 'Nicht maßgebende Informationen', + 204 => 'Kein Inhalt', + 205 => 'Inhalt zurücksetzen', + 206 => 'Teilinhalt', + 207 => 'Multi-Status', + 208 => 'Bereits gemeldet', + 226 => 'IM verwendet', + 300 => 'Mehrfachauswahl', + 301 => 'Permanent verschoben', + 302 => 'Gefunden', + 303 => 'Andere sehen', + 304 => 'Nicht modifiziert', + 305 => 'Proxy verwenden', + 307 => 'Temporäre Weiterleitung', + 308 => 'Permanente Weiterleitung', + 400 => 'Schlechte Anfrage', + 401 => 'Nicht autorisiert', + 402 => 'Zahlung erforderlich', + 403 => 'Verboten', + 404 => 'Seite nicht gefunden', + 405 => 'Methode nicht erlaubt', + 406 => 'Nicht annehmbar', + 407 => 'Proxy-Authentifizierung erforderlich', + 408 => 'Zeitüberschreitung anfordern', + 409 => 'Konflikt', + 410 => 'Gegangen', + 411 => 'Länge erforderlich', + 412 => 'Vorbedingung fehlgeschlagen', + 413 => 'Nutzlast zu groß', + 414 => 'URI zu lang', + 415 => 'Nicht unterstützter Medientyp', + 416 => 'Bereich nicht erfüllbar', + 417 => 'Erwartung gescheitert', + 418 => 'Ich bin eine Teekanne', + 419 => 'Sitzung ist abgelaufen', + 421 => 'Fehlgeleitete Anfrage', + 422 => 'Unverfügbare Entität', + 423 => 'Gesperrt', + 424 => 'Fehlgeschlagene Abhängigkeit', + 425 => 'Too Early', + 426 => 'Upgrade erforderlich', + 428 => 'Voraussetzung erforderlich', + 429 => 'Zu viele Anfragen', + 431 => 'Kopfzeilenfelder zu groß anfordern', + 444 => 'Connection Closed Without Response', + 449 => 'Wiederhole mit', + 451 => 'Aus rechtlichen Gründen nicht verfügbar', + 499 => 'Client Closed Request', + 500 => 'Interner Serverfehler', + 501 => 'Nicht implementiert', + 502 => 'Bad Gateway', + 503 => 'Wartungsmodus', + 504 => 'Gateway Timeout', + 505 => 'HTTP Version nicht unterstützt', + 506 => 'Variante verhandelt auch', + 507 => 'Ungenügende Speicherung', + 508 => 'Loop Detected', + 509 => 'Bandbreitengrenze überschritten', + 510 => 'Nicht erweitert', + 511 => 'Netzwerkauthentifizierung erforderlich', + 520 => 'Unbekannter Fehler', + 521 => 'Webserver ist ausgefallen', + 522 => 'Verbindung abgelaufen', + 523 => 'Ursprung ist nicht erreichbar', + 524 => 'Ein Timeout ist aufgetreten', + 525 => 'SSL Handshake fehlgeschlagen', + 526 => 'Ungültiges SSL-Zertifikat', + 527 => 'Railgun Error', + 598 => 'Network Read Timeout Error', + 599 => 'Network Connect Timeout Error', +]; diff --git a/resources/lang/de/pagination.php b/resources/lang/de/pagination.php index 08355e54..366892f6 100644 --- a/resources/lang/de/pagination.php +++ b/resources/lang/de/pagination.php @@ -1,6 +1,6 @@ 'Weiter »', - 'previous' => '« Zurück', -); +return [ + 'next' => 'Weiter »', + 'previous' => '« Zurück', +]; diff --git a/resources/lang/de/passwords.php b/resources/lang/de/passwords.php index c6861ba7..b2f7d932 100644 --- a/resources/lang/de/passwords.php +++ b/resources/lang/de/passwords.php @@ -1,9 +1,9 @@ 'Das Passwort wurde zurückgesetzt!', - 'sent' => 'Passworterinnerung wurde gesendet!', - 'throttled' => 'Bitte warten Sie, bevor Sie es erneut versuchen.', - 'token' => 'Der Passwort-Wiederherstellungs-Schlüssel ist ungültig oder abgelaufen.', - 'user' => 'Es konnte leider kein Nutzer mit dieser E-Mail-Adresse gefunden werden.', -); +return [ + 'reset' => 'Das Passwort wurde zurückgesetzt!', + 'sent' => 'Passworterinnerung wurde gesendet!', + 'throttled' => 'Bitte warten Sie, bevor Sie es erneut versuchen.', + 'token' => 'Der Passwort-Wiederherstellungs-Schlüssel ist ungültig oder abgelaufen.', + 'user' => 'Es konnte leider kein Nutzer mit dieser E-Mail-Adresse gefunden werden.', +]; diff --git a/resources/lang/de/trans.php b/resources/lang/de/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/de/trans.php +++ b/resources/lang/de/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/de/validation.php b/resources/lang/de/validation.php index 624e430c..89566806 100644 --- a/resources/lang/de/validation.php +++ b/resources/lang/de/validation.php @@ -1,218 +1,208 @@ ':Attribute muss akzeptiert werden.', - 'accepted_if' => ':Attribute muss akzeptiert werden, wenn :other :value ist.', - 'active_url' => ':Attribute ist keine gültige Internet-Adresse.', - 'after' => ':Attribute muss ein Datum nach :date sein.', - 'after_or_equal' => ':Attribute muss ein Datum nach :date oder gleich :date sein.', - 'alpha' => ':Attribute darf nur aus Buchstaben bestehen.', - 'alpha_dash' => ':Attribute darf nur aus Buchstaben, Zahlen, Binde- und Unterstrichen bestehen.', - 'alpha_num' => ':Attribute darf nur aus Buchstaben und Zahlen bestehen.', - 'array' => ':Attribute muss ein Array sein.', - 'attached' => ':Attribute ist bereits angehängt.', - 'attributes' => - [ - 'address' => 'adresse', - 'age' => 'alter', - 'amount' => 'amount', - 'area' => 'gebiet', - 'available' => 'verfügbar', - 'birthday' => 'geburtstag', - 'body' => 'körper', - 'city' => 'stadt', - 'content' => 'inhalt', - 'country' => 'land', - 'created_at' => 'erstellt am', - 'creator' => 'ersteller', - 'current_password' => 'derzeitiges passwort', - 'date' => 'datum', - 'date_of_birth' => 'geburtsdatum', - 'day' => 'tag', - 'deleted_at' => 'gelöscht am', - 'description' => 'beschreibung', - 'district' => 'bezirk', - 'duration' => 'dauer', - 'email' => 'e-mail-adresse', - 'excerpt' => 'auszug', - 'filter' => 'filter', - 'first_name' => 'vorname', - 'gender' => 'geschlecht', - 'group' => 'gruppe', - 'hour' => 'stunde', - 'image' => 'bild', - 'last_name' => 'nachname', - 'lesson' => 'lesson', - 'line_address_1' => 'adresszeile 1', - 'line_address_2' => 'adresszeile 2', - 'message' => 'nachricht', - 'middle_name' => 'zweitname', - 'minute' => 'minute', - 'mobile' => 'handynummer', - 'month' => 'monat', - 'name' => 'name', - 'national_code' => 'länderkennung', - 'number' => 'nummer', - 'password' => 'passwort', - 'password_confirmation' => 'passwortbestätigung', - 'phone' => 'telefonnummer', - 'photo' => 'foto', - 'postal_code' => 'postleitzahl', - 'price' => 'preis', - 'province' => 'provinz', - 'recaptcha_response_field' => 'captcha-feld', - 'remember' => 'erinnern', - 'restored_at' => 'wiederhergestellt am', - 'result_text_under_image' => 'ergebnistext unter bild', - 'role' => 'rolle', - 'second' => 'sekunde', - 'sex' => 'geschlecht', - 'short_text' => 'kurzer text', - 'size' => 'größe', - 'state' => 'bundesland', - 'street' => 'straße', - 'student' => 'schüler/student', - 'subject' => 'subject', - 'teacher' => 'lehrer', - 'terms' => 'bedingungen', - 'test_description' => 'test beschreibung', - 'test_locale' => 'test region', - 'test_name' => 'test name', - 'text' => 'text', - 'time' => 'uhrzeit', - 'title' => 'titel', - 'updated_at' => 'aktualisiert am', - 'username' => 'benutzername', - 'year' => 'jahr', - ], - 'before' => ':Attribute muss ein Datum vor :date sein.', - 'before_or_equal' => ':Attribute muss ein Datum vor :date oder gleich :date sein.', - 'between' => - [ - 'array' => ':Attribute muss zwischen :min & :max Elemente haben.', - 'file' => ':Attribute muss zwischen :min & :max Kilobytes groß sein.', - 'numeric' => ':Attribute muss zwischen :min & :max liegen.', - 'string' => ':Attribute muss zwischen :min & :max Zeichen lang sein.', - ], - 'boolean' => ':Attribute muss entweder \'true\' oder \'false\' sein.', - 'confirmed' => ':Attribute stimmt nicht mit der Bestätigung überein.', - 'current_password' => 'Das Passwort ist falsch.', - 'date' => ':Attribute muss ein gültiges Datum sein.', - 'date_equals' => ':Attribute muss ein Datum gleich :date sein.', - 'date_format' => ':Attribute entspricht nicht dem gültigen Format für :format.', - 'declined' => ':Attribute muss abgelehnt werden.', - 'declined_if' => ':Attribute muss abgelehnt werden wenn :other :value ist.', - 'different' => ':Attribute und :other müssen sich unterscheiden.', - 'digits' => ':Attribute muss :digits Stellen haben.', - 'digits_between' => ':Attribute muss zwischen :min und :max Stellen haben.', - 'dimensions' => ':Attribute hat ungültige Bildabmessungen.', - 'distinct' => ':Attribute beinhaltet einen bereits vorhandenen Wert.', - 'doesnt_end_with' => ':Attribute darf nicht mit einem der folgenden enden: :values.', - 'doesnt_start_with' => ':Attribute darf nicht mit einem der folgenden beginnen: :values.', - 'email' => ':Attribute muss eine gültige E-Mail-Adresse sein.', - 'ends_with' => ':Attribute muss eine der folgenden Endungen aufweisen: :values', - 'enum' => 'Der ausgewählte Wert ist ungültig.', - 'exists' => 'Der gewählte Wert für :attribute ist ungültig.', - 'file' => ':Attribute muss eine Datei sein.', - 'filled' => ':Attribute muss ausgefüllt sein.', - 'gt' => - [ - 'array' => ':Attribute muss mehr als :value Elemente haben.', - 'file' => ':Attribute muss größer als :value Kilobytes sein.', - 'numeric' => ':Attribute muss größer als :value sein.', - 'string' => ':Attribute muss länger als :value Zeichen sein.', - ], - 'gte' => - [ - 'array' => ':Attribute muss mindestens :value Elemente haben.', - 'file' => ':Attribute muss größer oder gleich :value Kilobytes sein.', - 'numeric' => ':Attribute muss größer oder gleich :value sein.', - 'string' => ':Attribute muss mindestens :value Zeichen lang sein.', - ], - 'image' => ':Attribute muss ein Bild sein.', - 'in' => 'Der gewählte Wert für :attribute ist ungültig.', - 'in_array' => 'Der gewählte Wert für :attribute kommt nicht in :other vor.', - 'integer' => ':Attribute muss eine ganze Zahl sein.', - 'ip' => ':Attribute muss eine gültige IP-Adresse sein.', - 'ipv4' => ':Attribute muss eine gültige IPv4-Adresse sein.', - 'ipv6' => ':Attribute muss eine gültige IPv6-Adresse sein.', - 'json' => ':Attribute muss ein gültiger JSON-String sein.', - 'lowercase' => ':Attribute muss in Kleinbuchstaben sein.', - 'lt' => - [ - 'array' => ':Attribute muss weniger als :value Elemente haben.', - 'file' => ':Attribute muss kleiner als :value Kilobytes sein.', - 'numeric' => ':Attribute muss kleiner als :value sein.', - 'string' => ':Attribute muss kürzer als :value Zeichen sein.', - ], - 'lte' => - [ - 'array' => ':Attribute darf maximal :value Elemente haben.', - 'file' => ':Attribute muss kleiner oder gleich :value Kilobytes sein.', - 'numeric' => ':Attribute muss kleiner oder gleich :value sein.', - 'string' => ':Attribute darf maximal :value Zeichen lang sein.', - ], - 'mac_address' => 'Der Wert muss eine gültige MAC-Adresse sein.', - 'max' => - [ - 'array' => ':Attribute darf maximal :max Elemente haben.', - 'file' => ':Attribute darf maximal :max Kilobytes groß sein.', - 'numeric' => ':Attribute darf maximal :max sein.', - 'string' => ':Attribute darf maximal :max Zeichen haben.', - ], - 'max_digits' => ':Attribute darf maximal :max Ziffern lang sein.', - 'mimes' => ':Attribute muss den Dateityp :values haben.', - 'mimetypes' => ':Attribute muss den Dateityp :values haben.', - 'min' => - [ - 'array' => ':Attribute muss mindestens :min Elemente haben.', - 'file' => ':Attribute muss mindestens :min Kilobytes groß sein.', - 'numeric' => ':Attribute muss mindestens :min sein.', - 'string' => ':Attribute muss mindestens :min Zeichen lang sein.', - ], - 'min_digits' => ':Attribute muss mindestens :min Ziffern lang sein.', - 'multiple_of' => ':Attribute muss ein Vielfaches von :value sein.', - 'not_in' => 'Der gewählte Wert für :attribute ist ungültig.', - 'not_regex' => ':Attribute hat ein ungültiges Format.', - 'numeric' => ':Attribute muss eine Zahl sein.', - 'password' => - [ - 'letters' => ':Attribute muss mindestens einen Buchstaben beinhalten.', - 'mixed' => ':Attribute muss mindestens einen Großbuchstaben und einen Kleinbuchstaben beinhalten.', - 'numbers' => ':Attribute muss mindestens eine Zahl beinhalten.', - 'symbols' => ':Attribute muss mindestens ein Sonderzeichen beinhalten.', - 'uncompromised' => ':Attribute wurde in einem Datenleck gefunden. Bitte wählen Sie ein anderes :attribute.', - ], - 'present' => ':Attribute muss vorhanden sein.', - 'prohibited' => ':Attribute ist unzulässig.', - 'prohibited_if' => ':Attribute ist unzulässig, wenn :other :value ist.', - 'prohibited_unless' => ':Attribute ist unzulässig, wenn :other nicht :values ist.', - 'prohibits' => ':Attribute verbietet die Angabe von :other.', - 'regex' => ':Attribute Format ist ungültig.', - 'relatable' => ':Attribute kann nicht mit dieser Ressource verbunden werden.', - 'required' => ':Attribute muss ausgefüllt werden.', - 'required_array_keys' => 'Dieses Feld muss Einträge enthalten für: :values.', - 'required_if' => ':Attribute muss ausgefüllt werden, wenn :other den Wert :value hat.', + 'accepted' => ':Attribute muss akzeptiert werden.', + 'accepted_if' => ':Attribute muss akzeptiert werden, wenn :other :value ist.', + 'active_url' => ':Attribute ist keine gültige Internet-Adresse.', + 'after' => ':Attribute muss ein Datum nach :date sein.', + 'after_or_equal' => ':Attribute muss ein Datum nach :date oder gleich :date sein.', + 'alpha' => ':Attribute darf nur aus Buchstaben bestehen.', + 'alpha_dash' => ':Attribute darf nur aus Buchstaben, Zahlen, Binde- und Unterstrichen bestehen.', + 'alpha_num' => ':Attribute darf nur aus Buchstaben und Zahlen bestehen.', + 'array' => ':Attribute muss ein Array sein.', + 'attached' => ':Attribute ist bereits angehängt.', + 'attributes' => [ + 'address' => 'adresse', + 'age' => 'alter', + 'amount' => 'amount', + 'area' => 'gebiet', + 'available' => 'verfügbar', + 'birthday' => 'geburtstag', + 'body' => 'körper', + 'city' => 'stadt', + 'content' => 'inhalt', + 'country' => 'land', + 'created_at' => 'erstellt am', + 'creator' => 'ersteller', + 'current_password' => 'derzeitiges passwort', + 'date' => 'datum', + 'date_of_birth' => 'geburtsdatum', + 'day' => 'tag', + 'deleted_at' => 'gelöscht am', + 'description' => 'beschreibung', + 'district' => 'bezirk', + 'duration' => 'dauer', + 'email' => 'e-mail-adresse', + 'excerpt' => 'auszug', + 'filter' => 'filter', + 'first_name' => 'vorname', + 'gender' => 'geschlecht', + 'group' => 'gruppe', + 'hour' => 'stunde', + 'image' => 'bild', + 'last_name' => 'nachname', + 'lesson' => 'lesson', + 'line_address_1' => 'adresszeile 1', + 'line_address_2' => 'adresszeile 2', + 'message' => 'nachricht', + 'middle_name' => 'zweitname', + 'minute' => 'minute', + 'mobile' => 'handynummer', + 'month' => 'monat', + 'name' => 'name', + 'national_code' => 'länderkennung', + 'number' => 'nummer', + 'password' => 'passwort', + 'password_confirmation' => 'passwortbestätigung', + 'phone' => 'telefonnummer', + 'photo' => 'foto', + 'postal_code' => 'postleitzahl', + 'price' => 'preis', + 'province' => 'provinz', + 'recaptcha_response_field' => 'captcha-feld', + 'remember' => 'erinnern', + 'restored_at' => 'wiederhergestellt am', + 'result_text_under_image' => 'ergebnistext unter bild', + 'role' => 'rolle', + 'second' => 'sekunde', + 'sex' => 'geschlecht', + 'short_text' => 'kurzer text', + 'size' => 'größe', + 'state' => 'bundesland', + 'street' => 'straße', + 'student' => 'schüler/student', + 'subject' => 'subject', + 'teacher' => 'lehrer', + 'terms' => 'bedingungen', + 'test_description' => 'test beschreibung', + 'test_locale' => 'test region', + 'test_name' => 'test name', + 'text' => 'text', + 'time' => 'uhrzeit', + 'title' => 'titel', + 'updated_at' => 'aktualisiert am', + 'username' => 'benutzername', + 'year' => 'jahr', + ], + 'before' => ':Attribute muss ein Datum vor :date sein.', + 'before_or_equal' => ':Attribute muss ein Datum vor :date oder gleich :date sein.', + 'between' => [ + 'array' => ':Attribute muss zwischen :min & :max Elemente haben.', + 'file' => ':Attribute muss zwischen :min & :max Kilobytes groß sein.', + 'numeric' => ':Attribute muss zwischen :min & :max liegen.', + 'string' => ':Attribute muss zwischen :min & :max Zeichen lang sein.', + ], + 'boolean' => ':Attribute muss entweder \'true\' oder \'false\' sein.', + 'confirmed' => ':Attribute stimmt nicht mit der Bestätigung überein.', + 'current_password' => 'Das Passwort ist falsch.', + 'date' => ':Attribute muss ein gültiges Datum sein.', + 'date_equals' => ':Attribute muss ein Datum gleich :date sein.', + 'date_format' => ':Attribute entspricht nicht dem gültigen Format für :format.', + 'declined' => ':Attribute muss abgelehnt werden.', + 'declined_if' => ':Attribute muss abgelehnt werden wenn :other :value ist.', + 'different' => ':Attribute und :other müssen sich unterscheiden.', + 'digits' => ':Attribute muss :digits Stellen haben.', + 'digits_between' => ':Attribute muss zwischen :min und :max Stellen haben.', + 'dimensions' => ':Attribute hat ungültige Bildabmessungen.', + 'distinct' => ':Attribute beinhaltet einen bereits vorhandenen Wert.', + 'doesnt_end_with' => ':Attribute darf nicht mit einem der folgenden enden: :values.', + 'doesnt_start_with' => ':Attribute darf nicht mit einem der folgenden beginnen: :values.', + 'email' => ':Attribute muss eine gültige E-Mail-Adresse sein.', + 'ends_with' => ':Attribute muss eine der folgenden Endungen aufweisen: :values', + 'enum' => 'Der ausgewählte Wert ist ungültig.', + 'exists' => 'Der gewählte Wert für :attribute ist ungültig.', + 'file' => ':Attribute muss eine Datei sein.', + 'filled' => ':Attribute muss ausgefüllt sein.', + 'gt' => [ + 'array' => ':Attribute muss mehr als :value Elemente haben.', + 'file' => ':Attribute muss größer als :value Kilobytes sein.', + 'numeric' => ':Attribute muss größer als :value sein.', + 'string' => ':Attribute muss länger als :value Zeichen sein.', + ], + 'gte' => [ + 'array' => ':Attribute muss mindestens :value Elemente haben.', + 'file' => ':Attribute muss größer oder gleich :value Kilobytes sein.', + 'numeric' => ':Attribute muss größer oder gleich :value sein.', + 'string' => ':Attribute muss mindestens :value Zeichen lang sein.', + ], + 'image' => ':Attribute muss ein Bild sein.', + 'in' => 'Der gewählte Wert für :attribute ist ungültig.', + 'in_array' => 'Der gewählte Wert für :attribute kommt nicht in :other vor.', + 'integer' => ':Attribute muss eine ganze Zahl sein.', + 'ip' => ':Attribute muss eine gültige IP-Adresse sein.', + 'ipv4' => ':Attribute muss eine gültige IPv4-Adresse sein.', + 'ipv6' => ':Attribute muss eine gültige IPv6-Adresse sein.', + 'json' => ':Attribute muss ein gültiger JSON-String sein.', + 'lowercase' => ':Attribute muss in Kleinbuchstaben sein.', + 'lt' => [ + 'array' => ':Attribute muss weniger als :value Elemente haben.', + 'file' => ':Attribute muss kleiner als :value Kilobytes sein.', + 'numeric' => ':Attribute muss kleiner als :value sein.', + 'string' => ':Attribute muss kürzer als :value Zeichen sein.', + ], + 'lte' => [ + 'array' => ':Attribute darf maximal :value Elemente haben.', + 'file' => ':Attribute muss kleiner oder gleich :value Kilobytes sein.', + 'numeric' => ':Attribute muss kleiner oder gleich :value sein.', + 'string' => ':Attribute darf maximal :value Zeichen lang sein.', + ], + 'mac_address' => 'Der Wert muss eine gültige MAC-Adresse sein.', + 'max' => [ + 'array' => ':Attribute darf maximal :max Elemente haben.', + 'file' => ':Attribute darf maximal :max Kilobytes groß sein.', + 'numeric' => ':Attribute darf maximal :max sein.', + 'string' => ':Attribute darf maximal :max Zeichen haben.', + ], + 'max_digits' => ':Attribute darf maximal :max Ziffern lang sein.', + 'mimes' => ':Attribute muss den Dateityp :values haben.', + 'mimetypes' => ':Attribute muss den Dateityp :values haben.', + 'min' => [ + 'array' => ':Attribute muss mindestens :min Elemente haben.', + 'file' => ':Attribute muss mindestens :min Kilobytes groß sein.', + 'numeric' => ':Attribute muss mindestens :min sein.', + 'string' => ':Attribute muss mindestens :min Zeichen lang sein.', + ], + 'min_digits' => ':Attribute muss mindestens :min Ziffern lang sein.', + 'multiple_of' => ':Attribute muss ein Vielfaches von :value sein.', + 'not_in' => 'Der gewählte Wert für :attribute ist ungültig.', + 'not_regex' => ':Attribute hat ein ungültiges Format.', + 'numeric' => ':Attribute muss eine Zahl sein.', + 'password' => [ + 'letters' => ':Attribute muss mindestens einen Buchstaben beinhalten.', + 'mixed' => ':Attribute muss mindestens einen Großbuchstaben und einen Kleinbuchstaben beinhalten.', + 'numbers' => ':Attribute muss mindestens eine Zahl beinhalten.', + 'symbols' => ':Attribute muss mindestens ein Sonderzeichen beinhalten.', + 'uncompromised' => ':Attribute wurde in einem Datenleck gefunden. Bitte wählen Sie ein anderes :attribute.', + ], + 'present' => ':Attribute muss vorhanden sein.', + 'prohibited' => ':Attribute ist unzulässig.', + 'prohibited_if' => ':Attribute ist unzulässig, wenn :other :value ist.', + 'prohibited_unless' => ':Attribute ist unzulässig, wenn :other nicht :values ist.', + 'prohibits' => ':Attribute verbietet die Angabe von :other.', + 'regex' => ':Attribute Format ist ungültig.', + 'relatable' => ':Attribute kann nicht mit dieser Ressource verbunden werden.', + 'required' => ':Attribute muss ausgefüllt werden.', + 'required_array_keys' => 'Dieses Feld muss Einträge enthalten für: :values.', + 'required_if' => ':Attribute muss ausgefüllt werden, wenn :other den Wert :value hat.', 'required_if_accepted' => ':Attribute muss ausgefüllt werden, wenn :other gewählt ist.', - 'required_unless' => ':Attribute muss ausgefüllt werden, wenn :other nicht den Wert :values hat.', - 'required_with' => ':Attribute muss ausgefüllt werden, wenn :values ausgefüllt wurde.', - 'required_with_all' => ':Attribute muss ausgefüllt werden, wenn :values ausgefüllt wurde.', - 'required_without' => ':Attribute muss ausgefüllt werden, wenn :values nicht ausgefüllt wurde.', + 'required_unless' => ':Attribute muss ausgefüllt werden, wenn :other nicht den Wert :values hat.', + 'required_with' => ':Attribute muss ausgefüllt werden, wenn :values ausgefüllt wurde.', + 'required_with_all' => ':Attribute muss ausgefüllt werden, wenn :values ausgefüllt wurde.', + 'required_without' => ':Attribute muss ausgefüllt werden, wenn :values nicht ausgefüllt wurde.', 'required_without_all' => ':Attribute muss ausgefüllt werden, wenn keines der Felder :values ausgefüllt wurde.', - 'same' => ':Attribute und :other müssen übereinstimmen.', - 'size' => - [ - 'array' => ':Attribute muss genau :size Elemente haben.', - 'file' => ':Attribute muss :size Kilobyte groß sein.', - 'numeric' => ':Attribute muss gleich :size sein.', - 'string' => ':Attribute muss :size Zeichen lang sein.', - ], - 'starts_with' => ':Attribute muss mit einem der folgenden Anfänge aufweisen: :values', - 'string' => ':Attribute muss ein String sein.', - 'timezone' => ':Attribute muss eine gültige Zeitzone sein.', - 'unique' => ':Attribute ist bereits vergeben.', - 'uploaded' => ':Attribute konnte nicht hochgeladen werden.', - 'uppercase' => ':Attribute muss in Großbuchstaben sein.', - 'url' => ':Attribute muss eine URL sein.', - 'uuid' => ':Attribute muss ein UUID sein.', + 'same' => ':Attribute und :other müssen übereinstimmen.', + 'size' => [ + 'array' => ':Attribute muss genau :size Elemente haben.', + 'file' => ':Attribute muss :size Kilobyte groß sein.', + 'numeric' => ':Attribute muss gleich :size sein.', + 'string' => ':Attribute muss :size Zeichen lang sein.', + ], + 'starts_with' => ':Attribute muss mit einem der folgenden Anfänge aufweisen: :values', + 'string' => ':Attribute muss ein String sein.', + 'timezone' => ':Attribute muss eine gültige Zeitzone sein.', + 'unique' => ':Attribute ist bereits vergeben.', + 'uploaded' => ':Attribute konnte nicht hochgeladen werden.', + 'uppercase' => ':Attribute muss in Großbuchstaben sein.', + 'url' => ':Attribute muss eine URL sein.', + 'uuid' => ':Attribute muss ein UUID sein.', ]; diff --git a/resources/lang/en/Loading.php b/resources/lang/en/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/en/Loading.php +++ b/resources/lang/en/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/en/auth.php b/resources/lang/en/auth.php index 996696c9..0a6d960a 100644 --- a/resources/lang/en/auth.php +++ b/resources/lang/en/auth.php @@ -1,7 +1,7 @@ 'These credentials do not match our records.', - 'password' => 'The password is incorrect.', - 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', -); +return [ + 'failed' => 'These credentials do not match our records.', + 'password' => 'The password is incorrect.', + 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', +]; diff --git a/resources/lang/en/http-statuses.php b/resources/lang/en/http-statuses.php index 89948042..47be74d4 100644 --- a/resources/lang/en/http-statuses.php +++ b/resources/lang/en/http-statuses.php @@ -1,82 +1,82 @@ 'Unknown Error', - 'unknownError' => 'Unknown Error', - 100 => 'Continue', - 101 => 'Switching Protocols', - 102 => 'Processing', - 200 => 'OK', - 201 => 'Created', - 202 => 'Accepted', - 203 => 'Non-Authoritative Information', - 204 => 'No Content', - 205 => 'Reset Content', - 206 => 'Partial Content', - 207 => 'Multi-Status', - 208 => 'Already Reported', - 226 => 'IM Used', - 300 => 'Multiple Choices', - 301 => 'Moved Permanently', - 302 => 'Found', - 303 => 'See Other', - 304 => 'Not Modified', - 305 => 'Use Proxy', - 307 => 'Temporary Redirect', - 308 => 'Permanent Redirect', - 400 => 'Bad Request', - 401 => 'Unauthorized', - 402 => 'Payment Required', - 403 => 'Forbidden', - 404 => 'Not Found', - 405 => 'Method Not Allowed', - 406 => 'Not Acceptable', - 407 => 'Proxy Authentication Required', - 408 => 'Request Timeout', - 409 => 'Conflict', - 410 => 'Gone', - 411 => 'Length Required', - 412 => 'Precondition Failed', - 413 => 'Payload Too Large', - 414 => 'URI Too Long', - 415 => 'Unsupported Media Type', - 416 => 'Range Not Satisfiable', - 417 => 'Expectation Failed', - 418 => 'I\'m a teapot', - 419 => 'Session Has Expired', - 421 => 'Misdirected Request', - 422 => 'Unprocessable Entity', - 423 => 'Locked', - 424 => 'Failed Dependency', - 425 => 'Too Early', - 426 => 'Upgrade Required', - 428 => 'Precondition Required', - 429 => 'Too Many Requests', - 431 => 'Request Header Fields Too Large', - 444 => 'Connection Closed Without Response', - 449 => 'Retry With', - 451 => 'Unavailable For Legal Reasons', - 499 => 'Client Closed Request', - 500 => 'Internal Server Error', - 501 => 'Not Implemented', - 502 => 'Bad Gateway', - 503 => 'Maintenance Mode', - 504 => 'Gateway Timeout', - 505 => 'HTTP Version Not Supported', - 506 => 'Variant Also Negotiates', - 507 => 'Insufficient Storage', - 508 => 'Loop Detected', - 509 => 'Bandwidth Limit Exceeded', - 510 => 'Not Extended', - 511 => 'Network Authentication Required', - 520 => 'Unknown Error', - 521 => 'Web Server is Down', - 522 => 'Connection Timed Out', - 523 => 'Origin Is Unreachable', - 524 => 'A Timeout Occurred', - 525 => 'SSL Handshake Failed', - 526 => 'Invalid SSL Certificate', - 527 => 'Railgun Error', - 598 => 'Network Read Timeout Error', - 599 => 'Network Connect Timeout Error', -); +return [ + 0 => 'Unknown Error', + 'unknownError' => 'Unknown Error', + 100 => 'Continue', + 101 => 'Switching Protocols', + 102 => 'Processing', + 200 => 'OK', + 201 => 'Created', + 202 => 'Accepted', + 203 => 'Non-Authoritative Information', + 204 => 'No Content', + 205 => 'Reset Content', + 206 => 'Partial Content', + 207 => 'Multi-Status', + 208 => 'Already Reported', + 226 => 'IM Used', + 300 => 'Multiple Choices', + 301 => 'Moved Permanently', + 302 => 'Found', + 303 => 'See Other', + 304 => 'Not Modified', + 305 => 'Use Proxy', + 307 => 'Temporary Redirect', + 308 => 'Permanent Redirect', + 400 => 'Bad Request', + 401 => 'Unauthorized', + 402 => 'Payment Required', + 403 => 'Forbidden', + 404 => 'Not Found', + 405 => 'Method Not Allowed', + 406 => 'Not Acceptable', + 407 => 'Proxy Authentication Required', + 408 => 'Request Timeout', + 409 => 'Conflict', + 410 => 'Gone', + 411 => 'Length Required', + 412 => 'Precondition Failed', + 413 => 'Payload Too Large', + 414 => 'URI Too Long', + 415 => 'Unsupported Media Type', + 416 => 'Range Not Satisfiable', + 417 => 'Expectation Failed', + 418 => 'I\'m a teapot', + 419 => 'Session Has Expired', + 421 => 'Misdirected Request', + 422 => 'Unprocessable Entity', + 423 => 'Locked', + 424 => 'Failed Dependency', + 425 => 'Too Early', + 426 => 'Upgrade Required', + 428 => 'Precondition Required', + 429 => 'Too Many Requests', + 431 => 'Request Header Fields Too Large', + 444 => 'Connection Closed Without Response', + 449 => 'Retry With', + 451 => 'Unavailable For Legal Reasons', + 499 => 'Client Closed Request', + 500 => 'Internal Server Error', + 501 => 'Not Implemented', + 502 => 'Bad Gateway', + 503 => 'Maintenance Mode', + 504 => 'Gateway Timeout', + 505 => 'HTTP Version Not Supported', + 506 => 'Variant Also Negotiates', + 507 => 'Insufficient Storage', + 508 => 'Loop Detected', + 509 => 'Bandwidth Limit Exceeded', + 510 => 'Not Extended', + 511 => 'Network Authentication Required', + 520 => 'Unknown Error', + 521 => 'Web Server is Down', + 522 => 'Connection Timed Out', + 523 => 'Origin Is Unreachable', + 524 => 'A Timeout Occurred', + 525 => 'SSL Handshake Failed', + 526 => 'Invalid SSL Certificate', + 527 => 'Railgun Error', + 598 => 'Network Read Timeout Error', + 599 => 'Network Connect Timeout Error', +]; diff --git a/resources/lang/en/pagination.php b/resources/lang/en/pagination.php index 8d119387..8e20419e 100644 --- a/resources/lang/en/pagination.php +++ b/resources/lang/en/pagination.php @@ -1,6 +1,6 @@ 'Next »', - 'previous' => '« Previous', -); +return [ + 'next' => 'Next »', + 'previous' => '« Previous', +]; diff --git a/resources/lang/en/passwords.php b/resources/lang/en/passwords.php index 9ca2d875..fb0e6b88 100644 --- a/resources/lang/en/passwords.php +++ b/resources/lang/en/passwords.php @@ -1,9 +1,9 @@ 'Your password has been reset!', - 'sent' => 'We have emailed your password reset link!', - 'throttled' => 'Please wait before retrying.', - 'token' => 'This password reset token is invalid.', - 'user' => 'We can\'t find a user with that email address.', -); +return [ + 'reset' => 'Your password has been reset!', + 'sent' => 'We have emailed your password reset link!', + 'throttled' => 'Please wait before retrying.', + 'token' => 'This password reset token is invalid.', + 'user' => 'We can\'t find a user with that email address.', +]; diff --git a/resources/lang/en/trans.php b/resources/lang/en/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/en/trans.php +++ b/resources/lang/en/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index 6471b932..2577b54d 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -1,218 +1,208 @@ 'The :attribute must be accepted.', - 'accepted_if' => 'The :attribute must be accepted when :other is :value.', - 'active_url' => 'The :attribute is not a valid URL.', - 'after' => 'The :attribute must be a date after :date.', - 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', - 'alpha' => 'The :attribute must only contain letters.', - 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', - 'alpha_num' => 'The :attribute must only contain letters and numbers.', - 'array' => 'The :attribute must be an array.', - 'attached' => 'This :attribute is already attached.', - 'attributes' => - array ( - 'address' => 'address', - 'age' => 'age', - 'amount' => 'amount', - 'area' => 'area', - 'available' => 'available', - 'birthday' => 'birthday', - 'body' => 'body', - 'city' => 'city', - 'content' => 'content', - 'country' => 'country', - 'created_at' => 'created at', - 'creator' => 'creator', - 'current_password' => 'current password', - 'date' => 'date', - 'date_of_birth' => 'date of birth', - 'day' => 'day', - 'deleted_at' => 'deleted at', - 'description' => 'description', - 'district' => 'district', - 'duration' => 'duration', - 'email' => 'email', - 'excerpt' => 'excerpt', - 'filter' => 'filter', - 'first_name' => 'first name', - 'gender' => 'gender', - 'group' => 'group', - 'hour' => 'hour', - 'image' => 'image', - 'last_name' => 'last name', - 'lesson' => 'lesson', - 'line_address_1' => 'line address 1', - 'line_address_2' => 'line address 2', - 'message' => 'message', - 'middle_name' => 'middle name', - 'minute' => 'minute', - 'mobile' => 'mobile', - 'month' => 'month', - 'name' => 'name', - 'national_code' => 'national code', - 'number' => 'number', - 'password' => 'password', - 'password_confirmation' => 'password confirmation', - 'phone' => 'phone', - 'photo' => 'photo', - 'postal_code' => 'postal code', - 'price' => 'price', - 'province' => 'province', - 'recaptcha_response_field' => 'recaptcha response field', - 'remember' => 'remember', - 'restored_at' => 'restored at', - 'result_text_under_image' => 'result text under image', - 'role' => 'role', - 'second' => 'second', - 'sex' => 'sex', - 'short_text' => 'short text', - 'size' => 'size', - 'state' => 'state', - 'street' => 'street', - 'student' => 'student', - 'subject' => 'subject', - 'teacher' => 'teacher', - 'terms' => 'terms', - 'test_description' => 'test description', - 'test_locale' => 'test locale', - 'test_name' => 'test name', - 'text' => 'text', - 'time' => 'time', - 'title' => 'title', - 'updated_at' => 'updated at', - 'username' => 'username', - 'year' => 'year', - ), - 'before' => 'The :attribute must be a date before :date.', - 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', - 'between' => - array ( - 'array' => 'The :attribute must have between :min and :max items.', - 'file' => 'The :attribute must be between :min and :max kilobytes.', - 'numeric' => 'The :attribute must be between :min and :max.', - 'string' => 'The :attribute must be between :min and :max characters.', - ), - 'boolean' => 'The :attribute field must be true or false.', - 'confirmed' => 'The :attribute confirmation does not match.', - 'current_password' => 'The password is incorrect.', - 'date' => 'The :attribute is not a valid date.', - 'date_equals' => 'The :attribute must be a date equal to :date.', - 'date_format' => 'The :attribute does not match the format :format.', - 'declined' => 'The :attribute must be declined.', - 'declined_if' => 'The :attribute must be declined when :other is :value.', - 'different' => 'The :attribute and :other must be different.', - 'digits' => 'The :attribute must be :digits digits.', - 'digits_between' => 'The :attribute must be between :min and :max digits.', - 'dimensions' => 'The :attribute has invalid image dimensions.', - 'distinct' => 'The :attribute field has a duplicate value.', - 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', - 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', - 'email' => 'The :attribute must be a valid email address.', - 'ends_with' => 'The :attribute must end with one of the following: :values.', - 'enum' => 'The selected :attribute is invalid.', - 'exists' => 'The selected :attribute is invalid.', - 'file' => 'The :attribute must be a file.', - 'filled' => 'The :attribute field must have a value.', - 'gt' => - array ( - 'array' => 'The :attribute must have more than :value items.', - 'file' => 'The :attribute must be greater than :value kilobytes.', - 'numeric' => 'The :attribute must be greater than :value.', - 'string' => 'The :attribute must be greater than :value characters.', - ), - 'gte' => - array ( - 'array' => 'The :attribute must have :value items or more.', - 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', - 'numeric' => 'The :attribute must be greater than or equal to :value.', - 'string' => 'The :attribute must be greater than or equal to :value characters.', - ), - 'image' => 'The :attribute must be an image.', - 'in' => 'The selected :attribute is invalid.', - 'in_array' => 'The :attribute field does not exist in :other.', - 'integer' => 'The :attribute must be an integer.', - 'ip' => 'The :attribute must be a valid IP address.', - 'ipv4' => 'The :attribute must be a valid IPv4 address.', - 'ipv6' => 'The :attribute must be a valid IPv6 address.', - 'json' => 'The :attribute must be a valid JSON string.', - 'lowercase' => 'The :attribute must be lowercase.', - 'lt' => - array ( - 'array' => 'The :attribute must have less than :value items.', - 'file' => 'The :attribute must be less than :value kilobytes.', - 'numeric' => 'The :attribute must be less than :value.', - 'string' => 'The :attribute must be less than :value characters.', - ), - 'lte' => - array ( - 'array' => 'The :attribute must not have more than :value items.', - 'file' => 'The :attribute must be less than or equal to :value kilobytes.', - 'numeric' => 'The :attribute must be less than or equal to :value.', - 'string' => 'The :attribute must be less than or equal to :value characters.', - ), - 'mac_address' => 'The :attribute must be a valid MAC address.', - 'max' => - array ( - 'array' => 'The :attribute must not have more than :max items.', - 'file' => 'The :attribute must not be greater than :max kilobytes.', - 'numeric' => 'The :attribute must not be greater than :max.', - 'string' => 'The :attribute must not be greater than :max characters.', - ), - 'max_digits' => 'The :attribute must not have more than :max digits.', - 'mimes' => 'The :attribute must be a file of type: :values.', - 'mimetypes' => 'The :attribute must be a file of type: :values.', - 'min' => - array ( - 'array' => 'The :attribute must have at least :min items.', - 'file' => 'The :attribute must be at least :min kilobytes.', - 'numeric' => 'The :attribute must be at least :min.', - 'string' => 'The :attribute must be at least :min characters.', - ), - 'min_digits' => 'The :attribute must have at least :min digits.', - 'multiple_of' => 'The :attribute must be a multiple of :value.', - 'not_in' => 'The selected :attribute is invalid.', - 'not_regex' => 'The :attribute format is invalid.', - 'numeric' => 'The :attribute must be a number.', - 'password' => - array ( - 'letters' => 'The :attribute must contain at least one letter.', - 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', - 'numbers' => 'The :attribute must contain at least one number.', - 'symbols' => 'The :attribute must contain at least one symbol.', - 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', - ), - 'present' => 'The :attribute field must be present.', - 'prohibited' => 'The :attribute field is prohibited.', - 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', - 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', - 'prohibits' => 'The :attribute field prohibits :other from being present.', - 'regex' => 'The :attribute format is invalid.', - 'relatable' => 'This :attribute may not be associated with this resource.', - 'required' => 'The :attribute field is required.', - 'required_array_keys' => 'The :attribute field must contain entries for: :values.', - 'required_if' => 'The :attribute field is required when :other is :value.', - 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', - 'required_unless' => 'The :attribute field is required unless :other is in :values.', - 'required_with' => 'The :attribute field is required when :values is present.', - 'required_with_all' => 'The :attribute field is required when :values are present.', - 'required_without' => 'The :attribute field is required when :values is not present.', - 'required_without_all' => 'The :attribute field is required when none of :values are present.', - 'same' => 'The :attribute and :other must match.', - 'size' => - array ( - 'array' => 'The :attribute must contain :size items.', - 'file' => 'The :attribute must be :size kilobytes.', - 'numeric' => 'The :attribute must be :size.', - 'string' => 'The :attribute must be :size characters.', - ), - 'starts_with' => 'The :attribute must start with one of the following: :values.', - 'string' => 'The :attribute must be a string.', - 'timezone' => 'The :attribute must be a valid timezone.', - 'unique' => 'The :attribute has already been taken.', - 'uploaded' => 'The :attribute failed to upload.', - 'uppercase' => 'The :attribute must be uppercase.', - 'url' => 'The :attribute must be a valid URL.', - 'uuid' => 'The :attribute must be a valid UUID.', -); +return [ + 'accepted' => 'The :attribute must be accepted.', + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute must only contain letters.', + 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', + 'alpha_num' => 'The :attribute must only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'attached' => 'This :attribute is already attached.', + 'attributes' => [ + 'address' => 'address', + 'age' => 'age', + 'amount' => 'amount', + 'area' => 'area', + 'available' => 'available', + 'birthday' => 'birthday', + 'body' => 'body', + 'city' => 'city', + 'content' => 'content', + 'country' => 'country', + 'created_at' => 'created at', + 'creator' => 'creator', + 'current_password' => 'current password', + 'date' => 'date', + 'date_of_birth' => 'date of birth', + 'day' => 'day', + 'deleted_at' => 'deleted at', + 'description' => 'description', + 'district' => 'district', + 'duration' => 'duration', + 'email' => 'email', + 'excerpt' => 'excerpt', + 'filter' => 'filter', + 'first_name' => 'first name', + 'gender' => 'gender', + 'group' => 'group', + 'hour' => 'hour', + 'image' => 'image', + 'last_name' => 'last name', + 'lesson' => 'lesson', + 'line_address_1' => 'line address 1', + 'line_address_2' => 'line address 2', + 'message' => 'message', + 'middle_name' => 'middle name', + 'minute' => 'minute', + 'mobile' => 'mobile', + 'month' => 'month', + 'name' => 'name', + 'national_code' => 'national code', + 'number' => 'number', + 'password' => 'password', + 'password_confirmation' => 'password confirmation', + 'phone' => 'phone', + 'photo' => 'photo', + 'postal_code' => 'postal code', + 'price' => 'price', + 'province' => 'province', + 'recaptcha_response_field' => 'recaptcha response field', + 'remember' => 'remember', + 'restored_at' => 'restored at', + 'result_text_under_image' => 'result text under image', + 'role' => 'role', + 'second' => 'second', + 'sex' => 'sex', + 'short_text' => 'short text', + 'size' => 'size', + 'state' => 'state', + 'street' => 'street', + 'student' => 'student', + 'subject' => 'subject', + 'teacher' => 'teacher', + 'terms' => 'terms', + 'test_description' => 'test description', + 'test_locale' => 'test locale', + 'test_name' => 'test name', + 'text' => 'text', + 'time' => 'time', + 'title' => 'title', + 'updated_at' => 'updated at', + 'username' => 'username', + 'year' => 'year', + ], + 'before' => 'The :attribute must be a date before :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ + 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'numeric' => 'The :attribute must be between :min and :max.', + 'string' => 'The :attribute must be between :min and :max characters.', + ], + 'boolean' => 'The :attribute field must be true or false.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'current_password' => 'The password is incorrect.', + 'date' => 'The :attribute is not a valid date.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'declined' => 'The :attribute must be declined.', + 'declined_if' => 'The :attribute must be declined when :other is :value.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', + 'digits_between' => 'The :attribute must be between :min and :max digits.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', + 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', + 'email' => 'The :attribute must be a valid email address.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'enum' => 'The selected :attribute is invalid.', + 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'gt' => [ + 'array' => 'The :attribute must have more than :value items.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'numeric' => 'The :attribute must be greater than :value.', + 'string' => 'The :attribute must be greater than :value characters.', + ], + 'gte' => [ + 'array' => 'The :attribute must have :value items or more.', + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be greater than or equal to :value.', + 'string' => 'The :attribute must be greater than or equal to :value characters.', + ], + 'image' => 'The :attribute must be an image.', + 'in' => 'The selected :attribute is invalid.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => 'The :attribute must have less than :value items.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'numeric' => 'The :attribute must be less than :value.', + 'string' => 'The :attribute must be less than :value characters.', + ], + 'lte' => [ + 'array' => 'The :attribute must not have more than :value items.', + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be less than or equal to :value.', + 'string' => 'The :attribute must be less than or equal to :value characters.', + ], + 'mac_address' => 'The :attribute must be a valid MAC address.', + 'max' => [ + 'array' => 'The :attribute must not have more than :max items.', + 'file' => 'The :attribute must not be greater than :max kilobytes.', + 'numeric' => 'The :attribute must not be greater than :max.', + 'string' => 'The :attribute must not be greater than :max characters.', + ], + 'max_digits' => 'The :attribute must not have more than :max digits.', + 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimetypes' => 'The :attribute must be a file of type: :values.', + 'min' => [ + 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'numeric' => 'The :attribute must be at least :min.', + 'string' => 'The :attribute must be at least :min characters.', + ], + 'min_digits' => 'The :attribute must have at least :min digits.', + 'multiple_of' => 'The :attribute must be a multiple of :value.', + 'not_in' => 'The selected :attribute is invalid.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'password' => [ + 'letters' => 'The :attribute must contain at least one letter.', + 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', + 'numbers' => 'The :attribute must contain at least one number.', + 'symbols' => 'The :attribute must contain at least one symbol.', + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', + ], + 'present' => 'The :attribute field must be present.', + 'prohibited' => 'The :attribute field is prohibited.', + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', + 'prohibits' => 'The :attribute field prohibits :other from being present.', + 'regex' => 'The :attribute format is invalid.', + 'relatable' => 'This :attribute may not be associated with this resource.', + 'required' => 'The :attribute field is required.', + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values are present.', + 'required_without' => 'The :attribute field is required when :values is not present.', + 'required_without_all' => 'The :attribute field is required when none of :values are present.', + 'same' => 'The :attribute and :other must match.', + 'size' => [ + 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'numeric' => 'The :attribute must be :size.', + 'string' => 'The :attribute must be :size characters.', + ], + 'starts_with' => 'The :attribute must start with one of the following: :values.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid timezone.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'The :attribute must be a valid URL.', + 'uuid' => 'The :attribute must be a valid UUID.', +]; diff --git a/resources/lang/es/Loading.php b/resources/lang/es/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/es/Loading.php +++ b/resources/lang/es/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/es/auth.php b/resources/lang/es/auth.php index bc128601..167051d8 100644 --- a/resources/lang/es/auth.php +++ b/resources/lang/es/auth.php @@ -1,7 +1,7 @@ 'Estas credenciales no coinciden con nuestros registros.', - 'password' => 'La contraseña es incorrecta.', - 'throttle' => 'Demasiados intentos de acceso. Por favor intente nuevamente en :seconds segundos.', -); +return [ + 'failed' => 'Estas credenciales no coinciden con nuestros registros.', + 'password' => 'La contraseña es incorrecta.', + 'throttle' => 'Demasiados intentos de acceso. Por favor intente nuevamente en :seconds segundos.', +]; diff --git a/resources/lang/es/http-statuses.php b/resources/lang/es/http-statuses.php index 89948042..47be74d4 100644 --- a/resources/lang/es/http-statuses.php +++ b/resources/lang/es/http-statuses.php @@ -1,82 +1,82 @@ 'Unknown Error', - 'unknownError' => 'Unknown Error', - 100 => 'Continue', - 101 => 'Switching Protocols', - 102 => 'Processing', - 200 => 'OK', - 201 => 'Created', - 202 => 'Accepted', - 203 => 'Non-Authoritative Information', - 204 => 'No Content', - 205 => 'Reset Content', - 206 => 'Partial Content', - 207 => 'Multi-Status', - 208 => 'Already Reported', - 226 => 'IM Used', - 300 => 'Multiple Choices', - 301 => 'Moved Permanently', - 302 => 'Found', - 303 => 'See Other', - 304 => 'Not Modified', - 305 => 'Use Proxy', - 307 => 'Temporary Redirect', - 308 => 'Permanent Redirect', - 400 => 'Bad Request', - 401 => 'Unauthorized', - 402 => 'Payment Required', - 403 => 'Forbidden', - 404 => 'Not Found', - 405 => 'Method Not Allowed', - 406 => 'Not Acceptable', - 407 => 'Proxy Authentication Required', - 408 => 'Request Timeout', - 409 => 'Conflict', - 410 => 'Gone', - 411 => 'Length Required', - 412 => 'Precondition Failed', - 413 => 'Payload Too Large', - 414 => 'URI Too Long', - 415 => 'Unsupported Media Type', - 416 => 'Range Not Satisfiable', - 417 => 'Expectation Failed', - 418 => 'I\'m a teapot', - 419 => 'Session Has Expired', - 421 => 'Misdirected Request', - 422 => 'Unprocessable Entity', - 423 => 'Locked', - 424 => 'Failed Dependency', - 425 => 'Too Early', - 426 => 'Upgrade Required', - 428 => 'Precondition Required', - 429 => 'Too Many Requests', - 431 => 'Request Header Fields Too Large', - 444 => 'Connection Closed Without Response', - 449 => 'Retry With', - 451 => 'Unavailable For Legal Reasons', - 499 => 'Client Closed Request', - 500 => 'Internal Server Error', - 501 => 'Not Implemented', - 502 => 'Bad Gateway', - 503 => 'Maintenance Mode', - 504 => 'Gateway Timeout', - 505 => 'HTTP Version Not Supported', - 506 => 'Variant Also Negotiates', - 507 => 'Insufficient Storage', - 508 => 'Loop Detected', - 509 => 'Bandwidth Limit Exceeded', - 510 => 'Not Extended', - 511 => 'Network Authentication Required', - 520 => 'Unknown Error', - 521 => 'Web Server is Down', - 522 => 'Connection Timed Out', - 523 => 'Origin Is Unreachable', - 524 => 'A Timeout Occurred', - 525 => 'SSL Handshake Failed', - 526 => 'Invalid SSL Certificate', - 527 => 'Railgun Error', - 598 => 'Network Read Timeout Error', - 599 => 'Network Connect Timeout Error', -); +return [ + 0 => 'Unknown Error', + 'unknownError' => 'Unknown Error', + 100 => 'Continue', + 101 => 'Switching Protocols', + 102 => 'Processing', + 200 => 'OK', + 201 => 'Created', + 202 => 'Accepted', + 203 => 'Non-Authoritative Information', + 204 => 'No Content', + 205 => 'Reset Content', + 206 => 'Partial Content', + 207 => 'Multi-Status', + 208 => 'Already Reported', + 226 => 'IM Used', + 300 => 'Multiple Choices', + 301 => 'Moved Permanently', + 302 => 'Found', + 303 => 'See Other', + 304 => 'Not Modified', + 305 => 'Use Proxy', + 307 => 'Temporary Redirect', + 308 => 'Permanent Redirect', + 400 => 'Bad Request', + 401 => 'Unauthorized', + 402 => 'Payment Required', + 403 => 'Forbidden', + 404 => 'Not Found', + 405 => 'Method Not Allowed', + 406 => 'Not Acceptable', + 407 => 'Proxy Authentication Required', + 408 => 'Request Timeout', + 409 => 'Conflict', + 410 => 'Gone', + 411 => 'Length Required', + 412 => 'Precondition Failed', + 413 => 'Payload Too Large', + 414 => 'URI Too Long', + 415 => 'Unsupported Media Type', + 416 => 'Range Not Satisfiable', + 417 => 'Expectation Failed', + 418 => 'I\'m a teapot', + 419 => 'Session Has Expired', + 421 => 'Misdirected Request', + 422 => 'Unprocessable Entity', + 423 => 'Locked', + 424 => 'Failed Dependency', + 425 => 'Too Early', + 426 => 'Upgrade Required', + 428 => 'Precondition Required', + 429 => 'Too Many Requests', + 431 => 'Request Header Fields Too Large', + 444 => 'Connection Closed Without Response', + 449 => 'Retry With', + 451 => 'Unavailable For Legal Reasons', + 499 => 'Client Closed Request', + 500 => 'Internal Server Error', + 501 => 'Not Implemented', + 502 => 'Bad Gateway', + 503 => 'Maintenance Mode', + 504 => 'Gateway Timeout', + 505 => 'HTTP Version Not Supported', + 506 => 'Variant Also Negotiates', + 507 => 'Insufficient Storage', + 508 => 'Loop Detected', + 509 => 'Bandwidth Limit Exceeded', + 510 => 'Not Extended', + 511 => 'Network Authentication Required', + 520 => 'Unknown Error', + 521 => 'Web Server is Down', + 522 => 'Connection Timed Out', + 523 => 'Origin Is Unreachable', + 524 => 'A Timeout Occurred', + 525 => 'SSL Handshake Failed', + 526 => 'Invalid SSL Certificate', + 527 => 'Railgun Error', + 598 => 'Network Read Timeout Error', + 599 => 'Network Connect Timeout Error', +]; diff --git a/resources/lang/es/pagination.php b/resources/lang/es/pagination.php index fc4e67bc..e3bc69c4 100644 --- a/resources/lang/es/pagination.php +++ b/resources/lang/es/pagination.php @@ -1,6 +1,6 @@ 'Siguiente »', - 'previous' => '« Anterior', -); +return [ + 'next' => 'Siguiente »', + 'previous' => '« Anterior', +]; diff --git a/resources/lang/es/passwords.php b/resources/lang/es/passwords.php index d0014426..8d783815 100644 --- a/resources/lang/es/passwords.php +++ b/resources/lang/es/passwords.php @@ -1,9 +1,9 @@ '¡Su contraseña ha sido restablecida!', - 'sent' => '¡Le hemos enviado por correo electrónico el enlace para restablecer su contraseña!', - 'throttled' => 'Por favor espere antes de intentar de nuevo.', - 'token' => 'El token de restablecimiento de contraseña es inválido.', - 'user' => 'No encontramos ningún usuario con ese correo electrónico.', -); +return [ + 'reset' => '¡Su contraseña ha sido restablecida!', + 'sent' => '¡Le hemos enviado por correo electrónico el enlace para restablecer su contraseña!', + 'throttled' => 'Por favor espere antes de intentar de nuevo.', + 'token' => 'El token de restablecimiento de contraseña es inválido.', + 'user' => 'No encontramos ningún usuario con ese correo electrónico.', +]; diff --git a/resources/lang/es/trans.php b/resources/lang/es/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/es/trans.php +++ b/resources/lang/es/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/es/validation.php b/resources/lang/es/validation.php index 038603ac..991b43c5 100644 --- a/resources/lang/es/validation.php +++ b/resources/lang/es/validation.php @@ -1,218 +1,208 @@ ':Attribute debe ser aceptado.', - 'accepted_if' => ':Attribute debe ser aceptado cuando :other sea :value.', - 'active_url' => ':Attribute no es una URL válida.', - 'after' => ':Attribute debe ser una fecha posterior a :date.', - 'after_or_equal' => ':Attribute debe ser una fecha posterior o igual a :date.', - 'alpha' => ':Attribute sólo debe contener letras.', - 'alpha_dash' => ':Attribute sólo debe contener letras, números, guiones y guiones bajos.', - 'alpha_num' => ':Attribute sólo debe contener letras y números.', - 'array' => ':Attribute debe ser un conjunto.', - 'attached' => 'Este :attribute ya se adjuntó.', - 'attributes' => - array ( - 'address' => 'dirección', - 'age' => 'edad', - 'amount' => 'cantidad', - 'area' => 'área', - 'available' => 'disponible', - 'birthday' => 'cumpleaños', - 'body' => 'contenido', - 'city' => 'ciudad', - 'content' => 'contenido', - 'country' => 'país', - 'created_at' => 'creado el', - 'creator' => 'creador', - 'current_password' => 'contraseña actual', - 'date' => 'fecha', - 'date_of_birth' => 'fecha de nacimiento', - 'day' => 'día', - 'deleted_at' => 'eliminado el', - 'description' => 'descripción', - 'district' => 'distrito', - 'duration' => 'duración', - 'email' => 'correo electrónico', - 'excerpt' => 'extracto', - 'filter' => 'filtro', - 'first_name' => 'nombre', - 'gender' => 'género', - 'group' => 'grupo', - 'hour' => 'hora', - 'image' => 'imagen', - 'last_name' => 'apellido', - 'lesson' => 'lección', - 'line_address_1' => 'dirección de la línea 1', - 'line_address_2' => 'dirección de la línea 2', - 'message' => 'mensaje', - 'middle_name' => 'segundo nombre', - 'minute' => 'minuto', - 'mobile' => 'móvil', - 'month' => 'mes', - 'name' => 'nombre', - 'national_code' => 'código nacional', - 'number' => 'número', - 'password' => 'contraseña', - 'password_confirmation' => 'confirmación de la contraseña', - 'phone' => 'teléfono', - 'photo' => 'foto', - 'postal_code' => 'código postal', - 'price' => 'precio', - 'province' => 'provincia', - 'recaptcha_response_field' => 'respuesta del recaptcha', - 'remember' => 'recordar', - 'restored_at' => 'restaurado el', - 'result_text_under_image' => 'texto bajo la imagen', - 'role' => 'rol', - 'second' => 'segundo', - 'sex' => 'sexo', - 'short_text' => 'texto corto', - 'size' => 'tamaño', - 'state' => 'estado', - 'street' => 'calle', - 'student' => 'estudiante', - 'subject' => 'asunto', - 'teacher' => 'profesor', - 'terms' => 'términos', - 'test_description' => 'descripción de prueba', - 'test_locale' => 'prueba local', - 'test_name' => 'nombre de prueba', - 'text' => 'texto', - 'time' => 'hora', - 'title' => 'título', - 'updated_at' => 'actualizado el', - 'username' => 'usuario', - 'year' => 'año', - ), - 'before' => ':Attribute debe ser una fecha anterior a :date.', - 'before_or_equal' => ':Attribute debe ser una fecha anterior o igual a :date.', - 'between' => - array ( - 'array' => ':Attribute tiene que tener entre :min - :max elementos.', - 'file' => ':Attribute debe pesar entre :min - :max kilobytes.', - 'numeric' => ':Attribute tiene que estar entre :min - :max.', - 'string' => ':Attribute tiene que tener entre :min - :max caracteres.', - ), - 'boolean' => 'El campo :attribute debe tener un valor verdadero o falso.', - 'confirmed' => 'La confirmación de :attribute no coincide.', - 'current_password' => 'La contraseña es incorrecta.', - 'date' => ':Attribute no es una fecha válida.', - 'date_equals' => ':Attribute debe ser una fecha igual a :date.', - 'date_format' => ':Attribute no corresponde al formato :format.', - 'declined' => ':Attribute debe ser rechazado.', - 'declined_if' => ':Attribute debe ser rechazado cuando :other sea :value.', - 'different' => ':Attribute y :other deben ser diferentes.', - 'digits' => ':Attribute debe tener :digits dígitos.', - 'digits_between' => ':Attribute debe tener entre :min y :max dígitos.', - 'dimensions' => 'Las dimensiones de la imagen :attribute no son válidas.', - 'distinct' => 'El campo :attribute contiene un valor duplicado.', - 'doesnt_end_with' => 'El campo :attribute no puede finalizar con uno de los siguientes: :values.', - 'doesnt_start_with' => 'El campo :attribute no puede comenzar con uno de los siguientes: :values.', - 'email' => ':Attribute no es un correo válido.', - 'ends_with' => 'El campo :attribute debe finalizar con uno de los siguientes valores: :values', - 'enum' => 'El :attribute seleccionado es inválido.', - 'exists' => 'El :attribute seleccionado es inválido.', - 'file' => 'El campo :attribute debe ser un archivo.', - 'filled' => 'El campo :attribute es obligatorio.', - 'gt' => - array ( - 'array' => 'El campo :attribute debe tener más de :value elementos.', - 'file' => 'El campo :attribute debe tener más de :value kilobytes.', - 'numeric' => 'El campo :attribute debe ser mayor que :value.', - 'string' => 'El campo :attribute debe tener más de :value caracteres.', - ), - 'gte' => - array ( - 'array' => 'El campo :attribute debe tener como mínimo :value elementos.', - 'file' => 'El campo :attribute debe tener como mínimo :value kilobytes.', - 'numeric' => 'El campo :attribute debe ser como mínimo :value.', - 'string' => 'El campo :attribute debe tener como mínimo :value caracteres.', - ), - 'image' => ':Attribute debe ser una imagen.', - 'in' => ':Attribute es inválido.', - 'in_array' => 'El campo :attribute no existe en :other.', - 'integer' => ':Attribute debe ser un número entero.', - 'ip' => ':Attribute debe ser una dirección IP válida.', - 'ipv4' => ':Attribute debe ser una dirección IPv4 válida.', - 'ipv6' => ':Attribute debe ser una dirección IPv6 válida.', - 'json' => 'El campo :attribute debe ser una cadena JSON válida.', - 'lowercase' => 'El campo :attribute debe estar en minúscula.', - 'lt' => - array ( - 'array' => 'El campo :attribute debe tener menos de :value elementos.', - 'file' => 'El campo :attribute debe tener menos de :value kilobytes.', - 'numeric' => 'El campo :attribute debe ser menor que :value.', - 'string' => 'El campo :attribute debe tener menos de :value caracteres.', - ), - 'lte' => - array ( - 'array' => 'El campo :attribute debe tener como máximo :value elementos.', - 'file' => 'El campo :attribute debe tener como máximo :value kilobytes.', - 'numeric' => 'El campo :attribute debe ser como máximo :value.', - 'string' => 'El campo :attribute debe tener como máximo :value caracteres.', - ), - 'mac_address' => 'El campo :attribute debe ser una dirección MAC válida.', - 'max' => - array ( - 'array' => ':Attribute no debe tener más de :max elementos.', - 'file' => ':Attribute no debe ser mayor que :max kilobytes.', - 'numeric' => ':Attribute no debe ser mayor que :max.', - 'string' => ':Attribute no debe ser mayor que :max caracteres.', - ), - 'max_digits' => 'El campo :attribute no debe tener más de :max dígitos.', - 'mimes' => ':Attribute debe ser un archivo con formato: :values.', - 'mimetypes' => ':Attribute debe ser un archivo con formato: :values.', - 'min' => - array ( - 'array' => ':Attribute debe tener al menos :min elementos.', - 'file' => 'El tamaño de :attribute debe ser de al menos :min kilobytes.', - 'numeric' => 'El tamaño de :attribute debe ser de al menos :min.', - 'string' => ':Attribute debe contener al menos :min caracteres.', - ), - 'min_digits' => 'El campo :attribute debe tener al menos :min dígitos.', - 'multiple_of' => 'El campo :attribute debe ser múltiplo de :value', - 'not_in' => ':Attribute es inválido.', - 'not_regex' => 'El formato del campo :attribute no es válido.', - 'numeric' => ':Attribute debe ser numérico.', - 'password' => - array ( - 'letters' => 'La :attribute debe contener al menos una letra.', - 'mixed' => 'La :attribute debe contener al menos una letra mayúscula y una minúscula.', - 'numbers' => 'La :attribute debe contener al menos un número.', - 'symbols' => 'La :attribute debe contener al menos un símbolo.', - 'uncompromised' => 'La :attribute proporcionada se ha visto comprometida en una filtración de datos (data leak). Elija una :attribute diferente.', - ), - 'present' => 'El campo :attribute debe estar presente.', - 'prohibited' => 'El campo :attribute está prohibido.', - 'prohibited_if' => 'El campo :attribute está prohibido cuando :other es :value.', - 'prohibited_unless' => 'El campo :attribute está prohibido a menos que :other sea :values.', - 'prohibits' => 'El campo :attribute prohibe que :other esté presente.', - 'regex' => 'El formato de :attribute es inválido.', - 'relatable' => 'Este :attribute no se puede asociar con este recurso', - 'required' => 'El campo :attribute es obligatorio.', - 'required_array_keys' => 'El campo :attribute debe contener entradas para: :values.', - 'required_if' => 'El campo :attribute es obligatorio cuando :other es :value.', - 'required_if_accepted' => 'El campo :attribute es obligatorio si :other es aceptado.', - 'required_unless' => 'El campo :attribute es obligatorio a menos que :other esté en :values.', - 'required_with' => 'El campo :attribute es obligatorio cuando :values está presente.', - 'required_with_all' => 'El campo :attribute es obligatorio cuando :values están presentes.', - 'required_without' => 'El campo :attribute es obligatorio cuando :values no está presente.', - 'required_without_all' => 'El campo :attribute es obligatorio cuando ninguno de :values está presente.', - 'same' => ':Attribute y :other deben coincidir.', - 'size' => - array ( - 'array' => ':Attribute debe contener :size elementos.', - 'file' => 'El tamaño de :attribute debe ser :size kilobytes.', - 'numeric' => 'El tamaño de :attribute debe ser :size.', - 'string' => ':Attribute debe contener :size caracteres.', - ), - 'starts_with' => 'El campo :attribute debe comenzar con uno de los siguientes valores: :values', - 'string' => 'El campo :attribute debe ser una cadena de caracteres.', - 'timezone' => ':Attribute debe ser una zona horaria válida.', - 'unique' => 'El campo :attribute ya ha sido registrado.', - 'uploaded' => 'Subir :attribute ha fallado.', - 'uppercase' => 'El campo :attribute debe estar en mayúscula.', - 'url' => ':Attribute debe ser una URL válida.', - 'uuid' => 'El campo :attribute debe ser un UUID válido.', -); +return [ + 'accepted' => ':Attribute debe ser aceptado.', + 'accepted_if' => ':Attribute debe ser aceptado cuando :other sea :value.', + 'active_url' => ':Attribute no es una URL válida.', + 'after' => ':Attribute debe ser una fecha posterior a :date.', + 'after_or_equal' => ':Attribute debe ser una fecha posterior o igual a :date.', + 'alpha' => ':Attribute sólo debe contener letras.', + 'alpha_dash' => ':Attribute sólo debe contener letras, números, guiones y guiones bajos.', + 'alpha_num' => ':Attribute sólo debe contener letras y números.', + 'array' => ':Attribute debe ser un conjunto.', + 'attached' => 'Este :attribute ya se adjuntó.', + 'attributes' => [ + 'address' => 'dirección', + 'age' => 'edad', + 'amount' => 'cantidad', + 'area' => 'área', + 'available' => 'disponible', + 'birthday' => 'cumpleaños', + 'body' => 'contenido', + 'city' => 'ciudad', + 'content' => 'contenido', + 'country' => 'país', + 'created_at' => 'creado el', + 'creator' => 'creador', + 'current_password' => 'contraseña actual', + 'date' => 'fecha', + 'date_of_birth' => 'fecha de nacimiento', + 'day' => 'día', + 'deleted_at' => 'eliminado el', + 'description' => 'descripción', + 'district' => 'distrito', + 'duration' => 'duración', + 'email' => 'correo electrónico', + 'excerpt' => 'extracto', + 'filter' => 'filtro', + 'first_name' => 'nombre', + 'gender' => 'género', + 'group' => 'grupo', + 'hour' => 'hora', + 'image' => 'imagen', + 'last_name' => 'apellido', + 'lesson' => 'lección', + 'line_address_1' => 'dirección de la línea 1', + 'line_address_2' => 'dirección de la línea 2', + 'message' => 'mensaje', + 'middle_name' => 'segundo nombre', + 'minute' => 'minuto', + 'mobile' => 'móvil', + 'month' => 'mes', + 'name' => 'nombre', + 'national_code' => 'código nacional', + 'number' => 'número', + 'password' => 'contraseña', + 'password_confirmation' => 'confirmación de la contraseña', + 'phone' => 'teléfono', + 'photo' => 'foto', + 'postal_code' => 'código postal', + 'price' => 'precio', + 'province' => 'provincia', + 'recaptcha_response_field' => 'respuesta del recaptcha', + 'remember' => 'recordar', + 'restored_at' => 'restaurado el', + 'result_text_under_image' => 'texto bajo la imagen', + 'role' => 'rol', + 'second' => 'segundo', + 'sex' => 'sexo', + 'short_text' => 'texto corto', + 'size' => 'tamaño', + 'state' => 'estado', + 'street' => 'calle', + 'student' => 'estudiante', + 'subject' => 'asunto', + 'teacher' => 'profesor', + 'terms' => 'términos', + 'test_description' => 'descripción de prueba', + 'test_locale' => 'prueba local', + 'test_name' => 'nombre de prueba', + 'text' => 'texto', + 'time' => 'hora', + 'title' => 'título', + 'updated_at' => 'actualizado el', + 'username' => 'usuario', + 'year' => 'año', + ], + 'before' => ':Attribute debe ser una fecha anterior a :date.', + 'before_or_equal' => ':Attribute debe ser una fecha anterior o igual a :date.', + 'between' => [ + 'array' => ':Attribute tiene que tener entre :min - :max elementos.', + 'file' => ':Attribute debe pesar entre :min - :max kilobytes.', + 'numeric' => ':Attribute tiene que estar entre :min - :max.', + 'string' => ':Attribute tiene que tener entre :min - :max caracteres.', + ], + 'boolean' => 'El campo :attribute debe tener un valor verdadero o falso.', + 'confirmed' => 'La confirmación de :attribute no coincide.', + 'current_password' => 'La contraseña es incorrecta.', + 'date' => ':Attribute no es una fecha válida.', + 'date_equals' => ':Attribute debe ser una fecha igual a :date.', + 'date_format' => ':Attribute no corresponde al formato :format.', + 'declined' => ':Attribute debe ser rechazado.', + 'declined_if' => ':Attribute debe ser rechazado cuando :other sea :value.', + 'different' => ':Attribute y :other deben ser diferentes.', + 'digits' => ':Attribute debe tener :digits dígitos.', + 'digits_between' => ':Attribute debe tener entre :min y :max dígitos.', + 'dimensions' => 'Las dimensiones de la imagen :attribute no son válidas.', + 'distinct' => 'El campo :attribute contiene un valor duplicado.', + 'doesnt_end_with' => 'El campo :attribute no puede finalizar con uno de los siguientes: :values.', + 'doesnt_start_with' => 'El campo :attribute no puede comenzar con uno de los siguientes: :values.', + 'email' => ':Attribute no es un correo válido.', + 'ends_with' => 'El campo :attribute debe finalizar con uno de los siguientes valores: :values', + 'enum' => 'El :attribute seleccionado es inválido.', + 'exists' => 'El :attribute seleccionado es inválido.', + 'file' => 'El campo :attribute debe ser un archivo.', + 'filled' => 'El campo :attribute es obligatorio.', + 'gt' => [ + 'array' => 'El campo :attribute debe tener más de :value elementos.', + 'file' => 'El campo :attribute debe tener más de :value kilobytes.', + 'numeric' => 'El campo :attribute debe ser mayor que :value.', + 'string' => 'El campo :attribute debe tener más de :value caracteres.', + ], + 'gte' => [ + 'array' => 'El campo :attribute debe tener como mínimo :value elementos.', + 'file' => 'El campo :attribute debe tener como mínimo :value kilobytes.', + 'numeric' => 'El campo :attribute debe ser como mínimo :value.', + 'string' => 'El campo :attribute debe tener como mínimo :value caracteres.', + ], + 'image' => ':Attribute debe ser una imagen.', + 'in' => ':Attribute es inválido.', + 'in_array' => 'El campo :attribute no existe en :other.', + 'integer' => ':Attribute debe ser un número entero.', + 'ip' => ':Attribute debe ser una dirección IP válida.', + 'ipv4' => ':Attribute debe ser una dirección IPv4 válida.', + 'ipv6' => ':Attribute debe ser una dirección IPv6 válida.', + 'json' => 'El campo :attribute debe ser una cadena JSON válida.', + 'lowercase' => 'El campo :attribute debe estar en minúscula.', + 'lt' => [ + 'array' => 'El campo :attribute debe tener menos de :value elementos.', + 'file' => 'El campo :attribute debe tener menos de :value kilobytes.', + 'numeric' => 'El campo :attribute debe ser menor que :value.', + 'string' => 'El campo :attribute debe tener menos de :value caracteres.', + ], + 'lte' => [ + 'array' => 'El campo :attribute debe tener como máximo :value elementos.', + 'file' => 'El campo :attribute debe tener como máximo :value kilobytes.', + 'numeric' => 'El campo :attribute debe ser como máximo :value.', + 'string' => 'El campo :attribute debe tener como máximo :value caracteres.', + ], + 'mac_address' => 'El campo :attribute debe ser una dirección MAC válida.', + 'max' => [ + 'array' => ':Attribute no debe tener más de :max elementos.', + 'file' => ':Attribute no debe ser mayor que :max kilobytes.', + 'numeric' => ':Attribute no debe ser mayor que :max.', + 'string' => ':Attribute no debe ser mayor que :max caracteres.', + ], + 'max_digits' => 'El campo :attribute no debe tener más de :max dígitos.', + 'mimes' => ':Attribute debe ser un archivo con formato: :values.', + 'mimetypes' => ':Attribute debe ser un archivo con formato: :values.', + 'min' => [ + 'array' => ':Attribute debe tener al menos :min elementos.', + 'file' => 'El tamaño de :attribute debe ser de al menos :min kilobytes.', + 'numeric' => 'El tamaño de :attribute debe ser de al menos :min.', + 'string' => ':Attribute debe contener al menos :min caracteres.', + ], + 'min_digits' => 'El campo :attribute debe tener al menos :min dígitos.', + 'multiple_of' => 'El campo :attribute debe ser múltiplo de :value', + 'not_in' => ':Attribute es inválido.', + 'not_regex' => 'El formato del campo :attribute no es válido.', + 'numeric' => ':Attribute debe ser numérico.', + 'password' => [ + 'letters' => 'La :attribute debe contener al menos una letra.', + 'mixed' => 'La :attribute debe contener al menos una letra mayúscula y una minúscula.', + 'numbers' => 'La :attribute debe contener al menos un número.', + 'symbols' => 'La :attribute debe contener al menos un símbolo.', + 'uncompromised' => 'La :attribute proporcionada se ha visto comprometida en una filtración de datos (data leak). Elija una :attribute diferente.', + ], + 'present' => 'El campo :attribute debe estar presente.', + 'prohibited' => 'El campo :attribute está prohibido.', + 'prohibited_if' => 'El campo :attribute está prohibido cuando :other es :value.', + 'prohibited_unless' => 'El campo :attribute está prohibido a menos que :other sea :values.', + 'prohibits' => 'El campo :attribute prohibe que :other esté presente.', + 'regex' => 'El formato de :attribute es inválido.', + 'relatable' => 'Este :attribute no se puede asociar con este recurso', + 'required' => 'El campo :attribute es obligatorio.', + 'required_array_keys' => 'El campo :attribute debe contener entradas para: :values.', + 'required_if' => 'El campo :attribute es obligatorio cuando :other es :value.', + 'required_if_accepted' => 'El campo :attribute es obligatorio si :other es aceptado.', + 'required_unless' => 'El campo :attribute es obligatorio a menos que :other esté en :values.', + 'required_with' => 'El campo :attribute es obligatorio cuando :values está presente.', + 'required_with_all' => 'El campo :attribute es obligatorio cuando :values están presentes.', + 'required_without' => 'El campo :attribute es obligatorio cuando :values no está presente.', + 'required_without_all' => 'El campo :attribute es obligatorio cuando ninguno de :values está presente.', + 'same' => ':Attribute y :other deben coincidir.', + 'size' => [ + 'array' => ':Attribute debe contener :size elementos.', + 'file' => 'El tamaño de :attribute debe ser :size kilobytes.', + 'numeric' => 'El tamaño de :attribute debe ser :size.', + 'string' => ':Attribute debe contener :size caracteres.', + ], + 'starts_with' => 'El campo :attribute debe comenzar con uno de los siguientes valores: :values', + 'string' => 'El campo :attribute debe ser una cadena de caracteres.', + 'timezone' => ':Attribute debe ser una zona horaria válida.', + 'unique' => 'El campo :attribute ya ha sido registrado.', + 'uploaded' => 'Subir :attribute ha fallado.', + 'uppercase' => 'El campo :attribute debe estar en mayúscula.', + 'url' => ':Attribute debe ser una URL válida.', + 'uuid' => 'El campo :attribute debe ser un UUID válido.', +]; diff --git a/resources/lang/fr/Loading.php b/resources/lang/fr/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/fr/Loading.php +++ b/resources/lang/fr/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/fr/auth.php b/resources/lang/fr/auth.php index aca25062..b8827fd3 100644 --- a/resources/lang/fr/auth.php +++ b/resources/lang/fr/auth.php @@ -1,7 +1,7 @@ 'Ces identifiants ne correspondent pas à nos enregistrements.', - 'password' => 'Le mot de passe est incorrect', - 'throttle' => 'Tentatives de connexion trop nombreuses. Veuillez essayer de nouveau dans :seconds secondes.', -); +return [ + 'failed' => 'Ces identifiants ne correspondent pas à nos enregistrements.', + 'password' => 'Le mot de passe est incorrect', + 'throttle' => 'Tentatives de connexion trop nombreuses. Veuillez essayer de nouveau dans :seconds secondes.', +]; diff --git a/resources/lang/fr/http-statuses.php b/resources/lang/fr/http-statuses.php index d4cec64d..9a227b72 100644 --- a/resources/lang/fr/http-statuses.php +++ b/resources/lang/fr/http-statuses.php @@ -1,82 +1,82 @@ 'Erreur inconnue', - 'unknownError' => 'Erreur inconnue', - 100 => 'Continuer', - 101 => 'Protocoles de commutation', - 102 => 'En traitement', - 200 => 'D\'accord', - 201 => 'Créé', - 202 => 'Accepté', - 203 => 'Informations non autorisées', - 204 => 'Pas content', - 205 => 'Réinitialiser le contenu', - 206 => 'Contenu partiel', - 207 => 'Multi-statut', - 208 => 'Déjà rapporté', - 226 => 'J\'ai l\'habitude', - 300 => 'Choix multiples', - 301 => 'Déplacé de façon permanente', - 302 => 'A trouvé', - 303 => 'Voir autre', - 304 => 'Non modifié', - 305 => 'Utiliser un proxy', - 307 => 'Redirection temporaire', - 308 => 'Redirection permanente', - 400 => 'Mauvaise Demande', - 401 => 'Non autorisé', - 402 => 'Paiement Requis', - 403 => 'Interdit', - 404 => 'Page non trouvée', - 405 => 'Méthode Non Autorisée', - 406 => 'Pas acceptable', - 407 => 'Authentification proxy requise', - 408 => 'Délai d\'expiration de la demande', - 409 => 'Conflit', - 410 => 'Disparu', - 411 => 'Longueur requise', - 412 => 'La précondition a échoué', - 413 => 'Charge utile trop grande', - 414 => 'URI trop long', - 415 => 'Type de support non supporté', - 416 => 'Plage non satisfaisante', - 417 => 'Échec de l\'attente', - 418 => 'Je suis une théière', - 419 => 'La session a expiré', - 421 => 'Demande mal dirigée', - 422 => 'Entité non traitable', - 423 => 'Fermé à clef', - 424 => 'Dépendance échouée', - 425 => 'Too Early', - 426 => 'Mise à niveau requise', - 428 => 'Condition préalable requise', - 429 => 'Trop de demandes', - 431 => 'Demander des champs d\'en-tête trop grands', - 444 => 'Connection Closed Without Response', - 449 => 'Réessayer avec', - 451 => 'Indisponible pour des raisons légales', - 499 => 'Client Closed Request', - 500 => 'Erreur Interne du Serveur', - 501 => 'Pas mis en œuvre', - 502 => 'Mauvaise passerelle', - 503 => 'Mode de Maintenance', - 504 => 'Délai d\'attente de la passerelle', - 505 => 'Version HTTP non prise en charge', - 506 => 'La variante négocie également', - 507 => 'Espace insuffisant', - 508 => 'Boucle détectée', - 509 => 'Limite de bande passante dépassée', - 510 => 'Non prolongé', - 511 => 'Authentification réseau requise', - 520 => 'Erreur inconnue', - 521 => 'Le serveur Web est en panne', - 522 => 'La connexion a expiré', - 523 => 'L\'origine est inaccessible', - 524 => 'Un dépassement de délai s\'est produit', - 525 => 'Échec de la prise de contact SSL', - 526 => 'Certificat SSL invalide', - 527 => 'Railgun Error', - 598 => 'Network Read Timeout Error', - 599 => 'Network Connect Timeout Error', -); +return [ + 0 => 'Erreur inconnue', + 'unknownError' => 'Erreur inconnue', + 100 => 'Continuer', + 101 => 'Protocoles de commutation', + 102 => 'En traitement', + 200 => 'D\'accord', + 201 => 'Créé', + 202 => 'Accepté', + 203 => 'Informations non autorisées', + 204 => 'Pas content', + 205 => 'Réinitialiser le contenu', + 206 => 'Contenu partiel', + 207 => 'Multi-statut', + 208 => 'Déjà rapporté', + 226 => 'J\'ai l\'habitude', + 300 => 'Choix multiples', + 301 => 'Déplacé de façon permanente', + 302 => 'A trouvé', + 303 => 'Voir autre', + 304 => 'Non modifié', + 305 => 'Utiliser un proxy', + 307 => 'Redirection temporaire', + 308 => 'Redirection permanente', + 400 => 'Mauvaise Demande', + 401 => 'Non autorisé', + 402 => 'Paiement Requis', + 403 => 'Interdit', + 404 => 'Page non trouvée', + 405 => 'Méthode Non Autorisée', + 406 => 'Pas acceptable', + 407 => 'Authentification proxy requise', + 408 => 'Délai d\'expiration de la demande', + 409 => 'Conflit', + 410 => 'Disparu', + 411 => 'Longueur requise', + 412 => 'La précondition a échoué', + 413 => 'Charge utile trop grande', + 414 => 'URI trop long', + 415 => 'Type de support non supporté', + 416 => 'Plage non satisfaisante', + 417 => 'Échec de l\'attente', + 418 => 'Je suis une théière', + 419 => 'La session a expiré', + 421 => 'Demande mal dirigée', + 422 => 'Entité non traitable', + 423 => 'Fermé à clef', + 424 => 'Dépendance échouée', + 425 => 'Too Early', + 426 => 'Mise à niveau requise', + 428 => 'Condition préalable requise', + 429 => 'Trop de demandes', + 431 => 'Demander des champs d\'en-tête trop grands', + 444 => 'Connection Closed Without Response', + 449 => 'Réessayer avec', + 451 => 'Indisponible pour des raisons légales', + 499 => 'Client Closed Request', + 500 => 'Erreur Interne du Serveur', + 501 => 'Pas mis en œuvre', + 502 => 'Mauvaise passerelle', + 503 => 'Mode de Maintenance', + 504 => 'Délai d\'attente de la passerelle', + 505 => 'Version HTTP non prise en charge', + 506 => 'La variante négocie également', + 507 => 'Espace insuffisant', + 508 => 'Boucle détectée', + 509 => 'Limite de bande passante dépassée', + 510 => 'Non prolongé', + 511 => 'Authentification réseau requise', + 520 => 'Erreur inconnue', + 521 => 'Le serveur Web est en panne', + 522 => 'La connexion a expiré', + 523 => 'L\'origine est inaccessible', + 524 => 'Un dépassement de délai s\'est produit', + 525 => 'Échec de la prise de contact SSL', + 526 => 'Certificat SSL invalide', + 527 => 'Railgun Error', + 598 => 'Network Read Timeout Error', + 599 => 'Network Connect Timeout Error', +]; diff --git a/resources/lang/fr/pagination.php b/resources/lang/fr/pagination.php index a2c6bd3f..17c79336 100644 --- a/resources/lang/fr/pagination.php +++ b/resources/lang/fr/pagination.php @@ -1,6 +1,6 @@ 'Suivant »', - 'previous' => '« Précédent', -); +return [ + 'next' => 'Suivant »', + 'previous' => '« Précédent', +]; diff --git a/resources/lang/fr/passwords.php b/resources/lang/fr/passwords.php index 3a9d1f48..bc37505d 100644 --- a/resources/lang/fr/passwords.php +++ b/resources/lang/fr/passwords.php @@ -1,9 +1,9 @@ 'Votre mot de passe a été réinitialisé !', - 'sent' => 'Nous vous avons envoyé par email le lien de réinitialisation du mot de passe !', - 'throttled' => 'Veuillez patienter avant de réessayer.', - 'token' => 'Ce jeton de réinitialisation du mot de passe n\'est pas valide.', - 'user' => 'Aucun utilisateur n\'a été trouvé avec cette adresse email.', -); +return [ + 'reset' => 'Votre mot de passe a été réinitialisé !', + 'sent' => 'Nous vous avons envoyé par email le lien de réinitialisation du mot de passe !', + 'throttled' => 'Veuillez patienter avant de réessayer.', + 'token' => 'Ce jeton de réinitialisation du mot de passe n\'est pas valide.', + 'user' => 'Aucun utilisateur n\'a été trouvé avec cette adresse email.', +]; diff --git a/resources/lang/fr/trans.php b/resources/lang/fr/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/fr/trans.php +++ b/resources/lang/fr/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/fr/validation.php b/resources/lang/fr/validation.php index aa20cd9a..c099385e 100644 --- a/resources/lang/fr/validation.php +++ b/resources/lang/fr/validation.php @@ -1,218 +1,208 @@ 'Le champ :attribute doit être accepté.', - 'accepted_if' => 'Le champ :attribute doit être accepté quand :other a la valeur :value.', - 'active_url' => 'Le champ :attribute n\'est pas une URL valide.', - 'after' => 'Le champ :attribute doit être une date postérieure au :date.', - 'after_or_equal' => 'Le champ :attribute doit être une date postérieure ou égale au :date.', - 'alpha' => 'Le champ :attribute doit contenir uniquement des lettres.', - 'alpha_dash' => 'Le champ :attribute doit contenir uniquement des lettres, des chiffres et des tirets.', - 'alpha_num' => 'Le champ :attribute doit contenir uniquement des chiffres et des lettres.', - 'array' => 'Le champ :attribute doit être un tableau.', - 'attached' => ':Attribute est déjà attaché(e).', - 'attributes' => - array ( - 'address' => 'adresse', - 'age' => 'âge', - 'amount' => 'montant', - 'area' => 'zone', - 'available' => 'disponible', - 'birthday' => 'anniversaire', - 'body' => 'corps', - 'city' => 'ville', - 'content' => 'contenu', - 'country' => 'pays', - 'created_at' => 'créé à', - 'creator' => 'créateur', - 'current_password' => 'mot de passe actuel', - 'date' => 'date', - 'date_of_birth' => 'date de naissance', - 'day' => 'jour', - 'deleted_at' => 'supprimé à', - 'description' => 'description', - 'district' => 'quartier', - 'duration' => 'durée', - 'email' => 'adresse e-mail', - 'excerpt' => 'extrait', - 'filter' => 'filtre', - 'first_name' => 'prénom', - 'gender' => 'genre', - 'group' => 'groupe', - 'hour' => 'heure', - 'image' => 'image', - 'last_name' => 'nom', - 'lesson' => 'leçon', - 'line_address_1' => 'ligne d\'adresse 1', - 'line_address_2' => 'ligne d\'adresse 2', - 'message' => 'message', - 'middle_name' => 'deuxième prénom', - 'minute' => 'minute', - 'mobile' => 'portable', - 'month' => 'mois', - 'name' => 'nom', - 'national_code' => 'code national', - 'number' => 'numéro', - 'password' => 'mot de passe', - 'password_confirmation' => 'confirmation du mot de passe', - 'phone' => 'téléphone', - 'photo' => 'photo', - 'postal_code' => 'code postal', - 'price' => 'prix', - 'province' => 'région', - 'recaptcha_response_field' => 'champ de réponse recaptcha', - 'remember' => 'se souvenir', - 'restored_at' => 'restauré à', - 'result_text_under_image' => 'texte de résultat sous l\'image', - 'role' => 'rôle', - 'second' => 'seconde', - 'sex' => 'sexe', - 'short_text' => 'texte court', - 'size' => 'taille', - 'state' => 'état', - 'street' => 'rue', - 'student' => 'étudiant', - 'subject' => 'sujet', - 'teacher' => 'professeur', - 'terms' => 'conditions', - 'test_description' => 'description test', - 'test_locale' => 'localisation test', - 'test_name' => 'nom test', - 'text' => 'texte', - 'time' => 'heure', - 'title' => 'titre', - 'updated_at' => 'mis à jour à', - 'username' => 'nom d\'utilisateur', - 'year' => 'année', - ), - 'before' => 'Le champ :attribute doit être une date antérieure au :date.', - 'before_or_equal' => 'Le champ :attribute doit être une date antérieure ou égale au :date.', - 'between' => - array ( - 'array' => 'Le tableau :attribute doit contenir entre :min et :max éléments.', - 'file' => 'La taille du fichier de :attribute doit être comprise entre :min et :max kilo-octets.', - 'numeric' => 'La valeur de :attribute doit être comprise entre :min et :max.', - 'string' => 'Le texte :attribute doit contenir entre :min et :max caractères.', - ), - 'boolean' => 'Le champ :attribute doit être vrai ou faux.', - 'confirmed' => 'Le champ de confirmation :attribute ne correspond pas.', - 'current_password' => 'Le mot de passe est incorrect.', - 'date' => 'Le champ :attribute n\'est pas une date valide.', - 'date_equals' => 'Le champ :attribute doit être une date égale à :date.', - 'date_format' => 'Le champ :attribute ne correspond pas au format :format.', - 'declined' => 'Le champ :attribute doit être décliné.', - 'declined_if' => 'Le champ :attribute doit être décliné quand :other a la valeur :value.', - 'different' => 'Les champs :attribute et :other doivent être différents.', - 'digits' => 'Le champ :attribute doit contenir :digits chiffres.', - 'digits_between' => 'Le champ :attribute doit contenir entre :min et :max chiffres.', - 'dimensions' => 'La taille de l\'image :attribute n\'est pas conforme.', - 'distinct' => 'Le champ :attribute a une valeur en double.', - 'doesnt_end_with' => 'Le champ :attribute ne doit pas finir avec une des valeurs suivantes : :values.', - 'doesnt_start_with' => 'Le champ :attribute ne doit pas commencer avec une des valeurs suivantes : :values.', - 'email' => 'Le champ :attribute doit être une adresse e-mail valide.', - 'ends_with' => 'Le champ :attribute doit se terminer par une des valeurs suivantes : :values', - 'enum' => 'Le champ :attribute sélectionné est invalide.', - 'exists' => 'Le champ :attribute sélectionné est invalide.', - 'file' => 'Le champ :attribute doit être un fichier.', - 'filled' => 'Le champ :attribute doit avoir une valeur.', - 'gt' => - array ( - 'array' => 'Le tableau :attribute doit contenir plus de :value éléments.', - 'file' => 'La taille du fichier de :attribute doit être supérieure à :value kilo-octets.', - 'numeric' => 'La valeur de :attribute doit être supérieure à :value.', - 'string' => 'Le texte :attribute doit contenir plus de :value caractères.', - ), - 'gte' => - array ( - 'array' => 'Le tableau :attribute doit contenir au moins :value éléments.', - 'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :value kilo-octets.', - 'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :value.', - 'string' => 'Le texte :attribute doit contenir au moins :value caractères.', - ), - 'image' => 'Le champ :attribute doit être une image.', - 'in' => 'Le champ :attribute est invalide.', - 'in_array' => 'Le champ :attribute n\'existe pas dans :other.', - 'integer' => 'Le champ :attribute doit être un entier.', - 'ip' => 'Le champ :attribute doit être une adresse IP valide.', - 'ipv4' => 'Le champ :attribute doit être une adresse IPv4 valide.', - 'ipv6' => 'Le champ :attribute doit être une adresse IPv6 valide.', - 'json' => 'Le champ :attribute doit être un document JSON valide.', - 'lowercase' => 'The :attribute must be lowercase.', - 'lt' => - array ( - 'array' => 'Le tableau :attribute doit contenir moins de :value éléments.', - 'file' => 'La taille du fichier de :attribute doit être inférieure à :value kilo-octets.', - 'numeric' => 'La valeur de :attribute doit être inférieure à :value.', - 'string' => 'Le texte :attribute doit contenir moins de :value caractères.', - ), - 'lte' => - array ( - 'array' => 'Le tableau :attribute doit contenir au plus :value éléments.', - 'file' => 'La taille du fichier de :attribute doit être inférieure ou égale à :value kilo-octets.', - 'numeric' => 'La valeur de :attribute doit être inférieure ou égale à :value.', - 'string' => 'Le texte :attribute doit contenir au plus :value caractères.', - ), - 'mac_address' => 'Le champ :attribute doit être une adresse MAC valide.', - 'max' => - array ( - 'array' => 'Le tableau :attribute ne peut pas contenir plus que :max éléments.', - 'file' => 'La taille du fichier de :attribute ne peut pas dépasser :max kilo-octets.', - 'numeric' => 'La valeur de :attribute ne peut pas être supérieure à :max.', - 'string' => 'Le texte de :attribute ne peut pas contenir plus de :max caractères.', - ), - 'max_digits' => 'Le champ :attribute ne doit pas avoir plus de :max chiffres.', - 'mimes' => 'Le champ :attribute doit être un fichier de type : :values.', - 'mimetypes' => 'Le champ :attribute doit être un fichier de type : :values.', - 'min' => - array ( - 'array' => 'Le tableau :attribute doit contenir au moins :min éléments.', - 'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :min kilo-octets.', - 'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :min.', - 'string' => 'Le texte de :attribute doit contenir au moins :min caractères.', - ), - 'min_digits' => 'Le champ :attribute doit avoir au moins :min chiffres.', - 'multiple_of' => 'La valeur de :attribute doit être un multiple de :value', - 'not_in' => 'Le champ :attribute sélectionné n\'est pas valide.', - 'not_regex' => 'Le format du champ :attribute n\'est pas valide.', - 'numeric' => 'Le champ :attribute doit contenir un nombre.', - 'password' => - array ( - 'letters' => 'Le champ :attribute doit contenir au moins une lettre.', - 'mixed' => 'Le champ :attribute doit contenir au moins une majuscule et une minuscule.', - 'numbers' => 'Le champ :attribute doit contenir au moins un chiffre.', - 'symbols' => 'Le champ :attribute doit contenir au moins un symbole.', - 'uncompromised' => 'La valeur du champ :attribute est apparue dans une fuite de données. Veuillez choisir une valeur différente.', - ), - 'present' => 'Le champ :attribute doit être présent.', - 'prohibited' => 'Le champ :attribute est interdit.', - 'prohibited_if' => 'Le champ :attribute est interdit quand :other a la valeur :value.', - 'prohibited_unless' => 'Le champ :attribute est interdit à moins que :other est l\'une des valeurs :values.', - 'prohibits' => 'Le champ :attribute interdit :other d\'être présent.', - 'regex' => 'Le format du champ :attribute est invalide.', - 'relatable' => ':Attribute n\'est sans doute pas associé(e) avec cette donnée.', - 'required' => 'Le champ :attribute est obligatoire.', - 'required_array_keys' => 'Le champ :attribute doit contenir des entrées pour : :values.', - 'required_if' => 'Le champ :attribute est obligatoire quand la valeur de :other est :value.', - 'required_if_accepted' => 'Le champ :attribute est obligatoire quand le champ :other a été accepté.', - 'required_unless' => 'Le champ :attribute est obligatoire sauf si :other est :values.', - 'required_with' => 'Le champ :attribute est obligatoire quand :values est présent.', - 'required_with_all' => 'Le champ :attribute est obligatoire quand :values sont présents.', - 'required_without' => 'Le champ :attribute est obligatoire quand :values n\'est pas présent.', - 'required_without_all' => 'Le champ :attribute est requis quand aucun de :values n\'est présent.', - 'same' => 'Les champs :attribute et :other doivent être identiques.', - 'size' => - array ( - 'array' => 'Le tableau :attribute doit contenir :size éléments.', - 'file' => 'La taille du fichier de :attribute doit être de :size kilo-octets.', - 'numeric' => 'La valeur de :attribute doit être :size.', - 'string' => 'Le texte de :attribute doit contenir :size caractères.', - ), - 'starts_with' => 'Le champ :attribute doit commencer avec une des valeurs suivantes : :values', - 'string' => 'Le champ :attribute doit être une chaîne de caractères.', - 'timezone' => 'Le champ :attribute doit être un fuseau horaire valide.', - 'unique' => 'La valeur du champ :attribute est déjà utilisée.', - 'uploaded' => 'Le fichier du champ :attribute n\'a pu être téléversé.', - 'uppercase' => 'The :attribute must be uppercase.', - 'url' => 'Le format de l\'URL de :attribute n\'est pas valide.', - 'uuid' => 'Le champ :attribute doit être un UUID valide', -); +return [ + 'accepted' => 'Le champ :attribute doit être accepté.', + 'accepted_if' => 'Le champ :attribute doit être accepté quand :other a la valeur :value.', + 'active_url' => 'Le champ :attribute n\'est pas une URL valide.', + 'after' => 'Le champ :attribute doit être une date postérieure au :date.', + 'after_or_equal' => 'Le champ :attribute doit être une date postérieure ou égale au :date.', + 'alpha' => 'Le champ :attribute doit contenir uniquement des lettres.', + 'alpha_dash' => 'Le champ :attribute doit contenir uniquement des lettres, des chiffres et des tirets.', + 'alpha_num' => 'Le champ :attribute doit contenir uniquement des chiffres et des lettres.', + 'array' => 'Le champ :attribute doit être un tableau.', + 'attached' => ':Attribute est déjà attaché(e).', + 'attributes' => [ + 'address' => 'adresse', + 'age' => 'âge', + 'amount' => 'montant', + 'area' => 'zone', + 'available' => 'disponible', + 'birthday' => 'anniversaire', + 'body' => 'corps', + 'city' => 'ville', + 'content' => 'contenu', + 'country' => 'pays', + 'created_at' => 'créé à', + 'creator' => 'créateur', + 'current_password' => 'mot de passe actuel', + 'date' => 'date', + 'date_of_birth' => 'date de naissance', + 'day' => 'jour', + 'deleted_at' => 'supprimé à', + 'description' => 'description', + 'district' => 'quartier', + 'duration' => 'durée', + 'email' => 'adresse e-mail', + 'excerpt' => 'extrait', + 'filter' => 'filtre', + 'first_name' => 'prénom', + 'gender' => 'genre', + 'group' => 'groupe', + 'hour' => 'heure', + 'image' => 'image', + 'last_name' => 'nom', + 'lesson' => 'leçon', + 'line_address_1' => 'ligne d\'adresse 1', + 'line_address_2' => 'ligne d\'adresse 2', + 'message' => 'message', + 'middle_name' => 'deuxième prénom', + 'minute' => 'minute', + 'mobile' => 'portable', + 'month' => 'mois', + 'name' => 'nom', + 'national_code' => 'code national', + 'number' => 'numéro', + 'password' => 'mot de passe', + 'password_confirmation' => 'confirmation du mot de passe', + 'phone' => 'téléphone', + 'photo' => 'photo', + 'postal_code' => 'code postal', + 'price' => 'prix', + 'province' => 'région', + 'recaptcha_response_field' => 'champ de réponse recaptcha', + 'remember' => 'se souvenir', + 'restored_at' => 'restauré à', + 'result_text_under_image' => 'texte de résultat sous l\'image', + 'role' => 'rôle', + 'second' => 'seconde', + 'sex' => 'sexe', + 'short_text' => 'texte court', + 'size' => 'taille', + 'state' => 'état', + 'street' => 'rue', + 'student' => 'étudiant', + 'subject' => 'sujet', + 'teacher' => 'professeur', + 'terms' => 'conditions', + 'test_description' => 'description test', + 'test_locale' => 'localisation test', + 'test_name' => 'nom test', + 'text' => 'texte', + 'time' => 'heure', + 'title' => 'titre', + 'updated_at' => 'mis à jour à', + 'username' => 'nom d\'utilisateur', + 'year' => 'année', + ], + 'before' => 'Le champ :attribute doit être une date antérieure au :date.', + 'before_or_equal' => 'Le champ :attribute doit être une date antérieure ou égale au :date.', + 'between' => [ + 'array' => 'Le tableau :attribute doit contenir entre :min et :max éléments.', + 'file' => 'La taille du fichier de :attribute doit être comprise entre :min et :max kilo-octets.', + 'numeric' => 'La valeur de :attribute doit être comprise entre :min et :max.', + 'string' => 'Le texte :attribute doit contenir entre :min et :max caractères.', + ], + 'boolean' => 'Le champ :attribute doit être vrai ou faux.', + 'confirmed' => 'Le champ de confirmation :attribute ne correspond pas.', + 'current_password' => 'Le mot de passe est incorrect.', + 'date' => 'Le champ :attribute n\'est pas une date valide.', + 'date_equals' => 'Le champ :attribute doit être une date égale à :date.', + 'date_format' => 'Le champ :attribute ne correspond pas au format :format.', + 'declined' => 'Le champ :attribute doit être décliné.', + 'declined_if' => 'Le champ :attribute doit être décliné quand :other a la valeur :value.', + 'different' => 'Les champs :attribute et :other doivent être différents.', + 'digits' => 'Le champ :attribute doit contenir :digits chiffres.', + 'digits_between' => 'Le champ :attribute doit contenir entre :min et :max chiffres.', + 'dimensions' => 'La taille de l\'image :attribute n\'est pas conforme.', + 'distinct' => 'Le champ :attribute a une valeur en double.', + 'doesnt_end_with' => 'Le champ :attribute ne doit pas finir avec une des valeurs suivantes : :values.', + 'doesnt_start_with' => 'Le champ :attribute ne doit pas commencer avec une des valeurs suivantes : :values.', + 'email' => 'Le champ :attribute doit être une adresse e-mail valide.', + 'ends_with' => 'Le champ :attribute doit se terminer par une des valeurs suivantes : :values', + 'enum' => 'Le champ :attribute sélectionné est invalide.', + 'exists' => 'Le champ :attribute sélectionné est invalide.', + 'file' => 'Le champ :attribute doit être un fichier.', + 'filled' => 'Le champ :attribute doit avoir une valeur.', + 'gt' => [ + 'array' => 'Le tableau :attribute doit contenir plus de :value éléments.', + 'file' => 'La taille du fichier de :attribute doit être supérieure à :value kilo-octets.', + 'numeric' => 'La valeur de :attribute doit être supérieure à :value.', + 'string' => 'Le texte :attribute doit contenir plus de :value caractères.', + ], + 'gte' => [ + 'array' => 'Le tableau :attribute doit contenir au moins :value éléments.', + 'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :value kilo-octets.', + 'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :value.', + 'string' => 'Le texte :attribute doit contenir au moins :value caractères.', + ], + 'image' => 'Le champ :attribute doit être une image.', + 'in' => 'Le champ :attribute est invalide.', + 'in_array' => 'Le champ :attribute n\'existe pas dans :other.', + 'integer' => 'Le champ :attribute doit être un entier.', + 'ip' => 'Le champ :attribute doit être une adresse IP valide.', + 'ipv4' => 'Le champ :attribute doit être une adresse IPv4 valide.', + 'ipv6' => 'Le champ :attribute doit être une adresse IPv6 valide.', + 'json' => 'Le champ :attribute doit être un document JSON valide.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => 'Le tableau :attribute doit contenir moins de :value éléments.', + 'file' => 'La taille du fichier de :attribute doit être inférieure à :value kilo-octets.', + 'numeric' => 'La valeur de :attribute doit être inférieure à :value.', + 'string' => 'Le texte :attribute doit contenir moins de :value caractères.', + ], + 'lte' => [ + 'array' => 'Le tableau :attribute doit contenir au plus :value éléments.', + 'file' => 'La taille du fichier de :attribute doit être inférieure ou égale à :value kilo-octets.', + 'numeric' => 'La valeur de :attribute doit être inférieure ou égale à :value.', + 'string' => 'Le texte :attribute doit contenir au plus :value caractères.', + ], + 'mac_address' => 'Le champ :attribute doit être une adresse MAC valide.', + 'max' => [ + 'array' => 'Le tableau :attribute ne peut pas contenir plus que :max éléments.', + 'file' => 'La taille du fichier de :attribute ne peut pas dépasser :max kilo-octets.', + 'numeric' => 'La valeur de :attribute ne peut pas être supérieure à :max.', + 'string' => 'Le texte de :attribute ne peut pas contenir plus de :max caractères.', + ], + 'max_digits' => 'Le champ :attribute ne doit pas avoir plus de :max chiffres.', + 'mimes' => 'Le champ :attribute doit être un fichier de type : :values.', + 'mimetypes' => 'Le champ :attribute doit être un fichier de type : :values.', + 'min' => [ + 'array' => 'Le tableau :attribute doit contenir au moins :min éléments.', + 'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :min kilo-octets.', + 'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :min.', + 'string' => 'Le texte de :attribute doit contenir au moins :min caractères.', + ], + 'min_digits' => 'Le champ :attribute doit avoir au moins :min chiffres.', + 'multiple_of' => 'La valeur de :attribute doit être un multiple de :value', + 'not_in' => 'Le champ :attribute sélectionné n\'est pas valide.', + 'not_regex' => 'Le format du champ :attribute n\'est pas valide.', + 'numeric' => 'Le champ :attribute doit contenir un nombre.', + 'password' => [ + 'letters' => 'Le champ :attribute doit contenir au moins une lettre.', + 'mixed' => 'Le champ :attribute doit contenir au moins une majuscule et une minuscule.', + 'numbers' => 'Le champ :attribute doit contenir au moins un chiffre.', + 'symbols' => 'Le champ :attribute doit contenir au moins un symbole.', + 'uncompromised' => 'La valeur du champ :attribute est apparue dans une fuite de données. Veuillez choisir une valeur différente.', + ], + 'present' => 'Le champ :attribute doit être présent.', + 'prohibited' => 'Le champ :attribute est interdit.', + 'prohibited_if' => 'Le champ :attribute est interdit quand :other a la valeur :value.', + 'prohibited_unless' => 'Le champ :attribute est interdit à moins que :other est l\'une des valeurs :values.', + 'prohibits' => 'Le champ :attribute interdit :other d\'être présent.', + 'regex' => 'Le format du champ :attribute est invalide.', + 'relatable' => ':Attribute n\'est sans doute pas associé(e) avec cette donnée.', + 'required' => 'Le champ :attribute est obligatoire.', + 'required_array_keys' => 'Le champ :attribute doit contenir des entrées pour : :values.', + 'required_if' => 'Le champ :attribute est obligatoire quand la valeur de :other est :value.', + 'required_if_accepted' => 'Le champ :attribute est obligatoire quand le champ :other a été accepté.', + 'required_unless' => 'Le champ :attribute est obligatoire sauf si :other est :values.', + 'required_with' => 'Le champ :attribute est obligatoire quand :values est présent.', + 'required_with_all' => 'Le champ :attribute est obligatoire quand :values sont présents.', + 'required_without' => 'Le champ :attribute est obligatoire quand :values n\'est pas présent.', + 'required_without_all' => 'Le champ :attribute est requis quand aucun de :values n\'est présent.', + 'same' => 'Les champs :attribute et :other doivent être identiques.', + 'size' => [ + 'array' => 'Le tableau :attribute doit contenir :size éléments.', + 'file' => 'La taille du fichier de :attribute doit être de :size kilo-octets.', + 'numeric' => 'La valeur de :attribute doit être :size.', + 'string' => 'Le texte de :attribute doit contenir :size caractères.', + ], + 'starts_with' => 'Le champ :attribute doit commencer avec une des valeurs suivantes : :values', + 'string' => 'Le champ :attribute doit être une chaîne de caractères.', + 'timezone' => 'Le champ :attribute doit être un fuseau horaire valide.', + 'unique' => 'La valeur du champ :attribute est déjà utilisée.', + 'uploaded' => 'Le fichier du champ :attribute n\'a pu être téléversé.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'Le format de l\'URL de :attribute n\'est pas valide.', + 'uuid' => 'Le champ :attribute doit être un UUID valide', +]; diff --git a/resources/lang/hr/Loading.php b/resources/lang/hr/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/hr/Loading.php +++ b/resources/lang/hr/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/hr/auth.php b/resources/lang/hr/auth.php index 639391c3..4ad2f070 100644 --- a/resources/lang/hr/auth.php +++ b/resources/lang/hr/auth.php @@ -1,7 +1,7 @@ 'Ovi podaci ne odgovaraju našima.', - 'password' => 'Lozinka je pogrešna.', - 'throttle' => 'Previše pokušaja prijave. Molim Vas pokušajte ponovno za :seconds sekundi.', -); +return [ + 'failed' => 'Ovi podaci ne odgovaraju našima.', + 'password' => 'Lozinka je pogrešna.', + 'throttle' => 'Previše pokušaja prijave. Molim Vas pokušajte ponovno za :seconds sekundi.', +]; diff --git a/resources/lang/hr/http-statuses.php b/resources/lang/hr/http-statuses.php index 89948042..47be74d4 100644 --- a/resources/lang/hr/http-statuses.php +++ b/resources/lang/hr/http-statuses.php @@ -1,82 +1,82 @@ 'Unknown Error', - 'unknownError' => 'Unknown Error', - 100 => 'Continue', - 101 => 'Switching Protocols', - 102 => 'Processing', - 200 => 'OK', - 201 => 'Created', - 202 => 'Accepted', - 203 => 'Non-Authoritative Information', - 204 => 'No Content', - 205 => 'Reset Content', - 206 => 'Partial Content', - 207 => 'Multi-Status', - 208 => 'Already Reported', - 226 => 'IM Used', - 300 => 'Multiple Choices', - 301 => 'Moved Permanently', - 302 => 'Found', - 303 => 'See Other', - 304 => 'Not Modified', - 305 => 'Use Proxy', - 307 => 'Temporary Redirect', - 308 => 'Permanent Redirect', - 400 => 'Bad Request', - 401 => 'Unauthorized', - 402 => 'Payment Required', - 403 => 'Forbidden', - 404 => 'Not Found', - 405 => 'Method Not Allowed', - 406 => 'Not Acceptable', - 407 => 'Proxy Authentication Required', - 408 => 'Request Timeout', - 409 => 'Conflict', - 410 => 'Gone', - 411 => 'Length Required', - 412 => 'Precondition Failed', - 413 => 'Payload Too Large', - 414 => 'URI Too Long', - 415 => 'Unsupported Media Type', - 416 => 'Range Not Satisfiable', - 417 => 'Expectation Failed', - 418 => 'I\'m a teapot', - 419 => 'Session Has Expired', - 421 => 'Misdirected Request', - 422 => 'Unprocessable Entity', - 423 => 'Locked', - 424 => 'Failed Dependency', - 425 => 'Too Early', - 426 => 'Upgrade Required', - 428 => 'Precondition Required', - 429 => 'Too Many Requests', - 431 => 'Request Header Fields Too Large', - 444 => 'Connection Closed Without Response', - 449 => 'Retry With', - 451 => 'Unavailable For Legal Reasons', - 499 => 'Client Closed Request', - 500 => 'Internal Server Error', - 501 => 'Not Implemented', - 502 => 'Bad Gateway', - 503 => 'Maintenance Mode', - 504 => 'Gateway Timeout', - 505 => 'HTTP Version Not Supported', - 506 => 'Variant Also Negotiates', - 507 => 'Insufficient Storage', - 508 => 'Loop Detected', - 509 => 'Bandwidth Limit Exceeded', - 510 => 'Not Extended', - 511 => 'Network Authentication Required', - 520 => 'Unknown Error', - 521 => 'Web Server is Down', - 522 => 'Connection Timed Out', - 523 => 'Origin Is Unreachable', - 524 => 'A Timeout Occurred', - 525 => 'SSL Handshake Failed', - 526 => 'Invalid SSL Certificate', - 527 => 'Railgun Error', - 598 => 'Network Read Timeout Error', - 599 => 'Network Connect Timeout Error', -); +return [ + 0 => 'Unknown Error', + 'unknownError' => 'Unknown Error', + 100 => 'Continue', + 101 => 'Switching Protocols', + 102 => 'Processing', + 200 => 'OK', + 201 => 'Created', + 202 => 'Accepted', + 203 => 'Non-Authoritative Information', + 204 => 'No Content', + 205 => 'Reset Content', + 206 => 'Partial Content', + 207 => 'Multi-Status', + 208 => 'Already Reported', + 226 => 'IM Used', + 300 => 'Multiple Choices', + 301 => 'Moved Permanently', + 302 => 'Found', + 303 => 'See Other', + 304 => 'Not Modified', + 305 => 'Use Proxy', + 307 => 'Temporary Redirect', + 308 => 'Permanent Redirect', + 400 => 'Bad Request', + 401 => 'Unauthorized', + 402 => 'Payment Required', + 403 => 'Forbidden', + 404 => 'Not Found', + 405 => 'Method Not Allowed', + 406 => 'Not Acceptable', + 407 => 'Proxy Authentication Required', + 408 => 'Request Timeout', + 409 => 'Conflict', + 410 => 'Gone', + 411 => 'Length Required', + 412 => 'Precondition Failed', + 413 => 'Payload Too Large', + 414 => 'URI Too Long', + 415 => 'Unsupported Media Type', + 416 => 'Range Not Satisfiable', + 417 => 'Expectation Failed', + 418 => 'I\'m a teapot', + 419 => 'Session Has Expired', + 421 => 'Misdirected Request', + 422 => 'Unprocessable Entity', + 423 => 'Locked', + 424 => 'Failed Dependency', + 425 => 'Too Early', + 426 => 'Upgrade Required', + 428 => 'Precondition Required', + 429 => 'Too Many Requests', + 431 => 'Request Header Fields Too Large', + 444 => 'Connection Closed Without Response', + 449 => 'Retry With', + 451 => 'Unavailable For Legal Reasons', + 499 => 'Client Closed Request', + 500 => 'Internal Server Error', + 501 => 'Not Implemented', + 502 => 'Bad Gateway', + 503 => 'Maintenance Mode', + 504 => 'Gateway Timeout', + 505 => 'HTTP Version Not Supported', + 506 => 'Variant Also Negotiates', + 507 => 'Insufficient Storage', + 508 => 'Loop Detected', + 509 => 'Bandwidth Limit Exceeded', + 510 => 'Not Extended', + 511 => 'Network Authentication Required', + 520 => 'Unknown Error', + 521 => 'Web Server is Down', + 522 => 'Connection Timed Out', + 523 => 'Origin Is Unreachable', + 524 => 'A Timeout Occurred', + 525 => 'SSL Handshake Failed', + 526 => 'Invalid SSL Certificate', + 527 => 'Railgun Error', + 598 => 'Network Read Timeout Error', + 599 => 'Network Connect Timeout Error', +]; diff --git a/resources/lang/hr/pagination.php b/resources/lang/hr/pagination.php index 09fbcfd9..9c7b19cf 100644 --- a/resources/lang/hr/pagination.php +++ b/resources/lang/hr/pagination.php @@ -1,6 +1,6 @@ 'Sljedeća »', - 'previous' => '« Prethodna', -); +return [ + 'next' => 'Sljedeća »', + 'previous' => '« Prethodna', +]; diff --git a/resources/lang/hr/passwords.php b/resources/lang/hr/passwords.php index 210e504f..6e9f2953 100644 --- a/resources/lang/hr/passwords.php +++ b/resources/lang/hr/passwords.php @@ -1,9 +1,9 @@ 'Lozinka je ponovno postavljena!', - 'sent' => 'E-mail sa poveznicom za ponovno postavljanje lozinke je poslan!', - 'throttled' => 'Molimo pričekajte prije ponovnog pokušaja!', - 'token' => 'Oznaka za ponovno postavljanje lozinke više nije važeća.', - 'user' => 'Korisnik s navedenom e-mail adresom nije pronađen.', -); +return [ + 'reset' => 'Lozinka je ponovno postavljena!', + 'sent' => 'E-mail sa poveznicom za ponovno postavljanje lozinke je poslan!', + 'throttled' => 'Molimo pričekajte prije ponovnog pokušaja!', + 'token' => 'Oznaka za ponovno postavljanje lozinke više nije važeća.', + 'user' => 'Korisnik s navedenom e-mail adresom nije pronađen.', +]; diff --git a/resources/lang/hr/trans.php b/resources/lang/hr/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/hr/trans.php +++ b/resources/lang/hr/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/hr/validation.php b/resources/lang/hr/validation.php index 5ac93920..706668c5 100644 --- a/resources/lang/hr/validation.php +++ b/resources/lang/hr/validation.php @@ -1,218 +1,208 @@ 'Polje :attribute mora biti prihvaćeno.', - 'accepted_if' => 'Polje :attribute mora biti prihvaćeno kada je :other jednako :value.', - 'active_url' => 'Polje :attribute nije ispravan URL.', - 'after' => 'Polje :attribute mora biti datum nakon :date.', - 'after_or_equal' => 'Polje :attribute mora biti datum veći ili jednak :date.', - 'alpha' => 'Polje :attribute smije sadržavati samo slova.', - 'alpha_dash' => 'Polje :attribute smije sadržavati samo slova, brojeve i crtice.', - 'alpha_num' => 'Polje :attribute smije sadržavati samo slova i brojeve.', - 'array' => 'Polje :attribute mora biti niz.', - 'attached' => 'Polje :attribute je već prikvačeno.', - 'attributes' => - array ( - 'address' => 'adresa', - 'age' => 'dob', - 'amount' => 'iznos', - 'area' => 'površina', - 'available' => 'dostupno', - 'birthday' => 'rođendan', - 'body' => 'tijelo', - 'city' => 'grad', - 'content' => 'sadržaj', - 'country' => 'država', - 'created_at' => 'kreirano', - 'creator' => 'autor', - 'current_password' => 'trenutna lozinka', - 'date' => 'datum', - 'date_of_birth' => 'datum rođenja', - 'day' => 'dan', - 'deleted_at' => 'obrisano', - 'description' => 'opis', - 'district' => 'općina', - 'duration' => 'trajanje', - 'email' => 'email', - 'excerpt' => 'izdvojeno', - 'filter' => 'filter', - 'first_name' => 'ime', - 'gender' => 'spol', - 'group' => 'grupa', - 'hour' => 'sat', - 'image' => 'slika', - 'last_name' => 'prezime', - 'lesson' => 'lekcija', - 'line_address_1' => 'adresa', - 'line_address_2' => 'dodatak adresi', - 'message' => 'poruka', - 'middle_name' => 'srednje ime', - 'minute' => 'minuta', - 'mobile' => 'mobitel', - 'month' => 'mjesec', - 'name' => 'ime', - 'national_code' => 'Nacionalni kod', - 'number' => 'broj', - 'password' => 'lozinka', - 'password_confirmation' => 'potvrda lozinke', - 'phone' => 'telefon', - 'photo' => 'fotografija', - 'postal_code' => 'poštanski broj', - 'price' => 'cijena', - 'province' => 'pokrajina', - 'recaptcha_response_field' => 'recaptcha polje', - 'remember' => 'zapamti me', - 'restored_at' => 'vraćeno', - 'result_text_under_image' => 'tekst rezultata ispod slike', - 'role' => 'uloga', - 'second' => 'sekunda', - 'sex' => 'spol', - 'short_text' => 'kratak tekst', - 'size' => 'veličina', - 'state' => 'država', - 'street' => 'ulica', - 'student' => 'učenik', - 'subject' => 'predmet', - 'teacher' => 'učitelj', - 'terms' => 'uvjeti', - 'test_description' => 'testni opis', - 'test_locale' => 'testni jezik', - 'test_name' => 'testno ime', - 'text' => 'tekst', - 'time' => 'vrijeme', - 'title' => 'naslov', - 'updated_at' => 'ažurirano', - 'username' => 'korisničko ime', - 'year' => 'godina', - ), - 'before' => 'Polje :attribute mora biti datum prije :date.', - 'before_or_equal' => 'Polje :attribute mora biti datum manji ili jednak :date.', - 'between' => - array ( - 'array' => 'Polje :attribute mora imati između :min - :max stavki.', - 'file' => 'Polje :attribute mora biti između :min - :max kilobajta.', - 'numeric' => 'Polje :attribute mora biti između :min - :max.', - 'string' => 'Polje :attribute mora biti između :min - :max znakova.', - ), - 'boolean' => 'Polje :attribute mora biti false ili true.', - 'confirmed' => 'Potvrda polja :attribute se ne podudara.', - 'current_password' => 'Lozinka nije ispravna.', - 'date' => 'Polje :attribute nije ispravan datum.', - 'date_equals' => 'Stavka :attribute mora biti jednaka :date.', - 'date_format' => 'Polje :attribute ne podudara s formatom :format.', - 'declined' => 'Polje :attribute mora biti odbijeno.', - 'declined_if' => 'Polje :attribute mora biti odbijeno kada je :other jednako :value.', - 'different' => 'Polja :attribute i :other moraju biti različita.', - 'digits' => 'Polje :attribute mora sadržavati :digits znamenki.', - 'digits_between' => 'Polje :attribute mora imati između :min i :max znamenki.', - 'dimensions' => 'Polje :attribute ima neispravne dimenzije slike.', - 'distinct' => 'Polje :attribute ima dupliciranu vrijednost.', - 'doesnt_end_with' => 'Polje :attribute ne smije završavati s jednom od sljedećih vrijednosti: :values.', - 'doesnt_start_with' => 'Polje :attribute ne smije počinjati s jednom od sljedećih vrijednosti: :values.', - 'email' => 'Polje :attribute mora biti ispravna e-mail adresa.', - 'ends_with' => ':Attribute bi trebao završiti s jednim od sljedećih: :values.', - 'enum' => 'Odabrano polje :attribute nije ispravno.', - 'exists' => 'Odabrano polje :attribute nije ispravno.', - 'file' => 'Polje :attribute mora biti datoteka.', - 'filled' => 'Polje :attribute je obavezno.', - 'gt' => - array ( - 'array' => 'Polje :attribute mora biti veće od :value stavki.', - 'file' => 'Polje :attribute mora biti veće od :value kilobajta.', - 'numeric' => 'Polje :attribute mora biti veće od :value.', - 'string' => 'Polje :attribute mora biti veće od :value karaktera.', - ), - 'gte' => - array ( - 'array' => 'Polje :attribute mora imati najmanje :value stavki.', - 'file' => 'Polje :attribute mora imati najmanje :value kilobajta.', - 'numeric' => 'Polje :attribute mora biti veće ili jednako :value.', - 'string' => 'Polje :attribute mora biti veće ili jednako :value znakova.', - ), - 'image' => 'Polje :attribute mora biti slika.', - 'in' => 'Odabrano polje :attribute nije ispravno.', - 'in_array' => 'Polje :attribute ne postoji u :other.', - 'integer' => 'Polje :attribute mora biti broj.', - 'ip' => 'Polje :attribute mora biti ispravna IP adresa.', - 'ipv4' => 'Polje :attribute mora biti ispravna IPv4 adresa.', - 'ipv6' => 'Polje :attribute mora biti ispravna IPv6 adresa.', - 'json' => 'Polje :attribute mora biti ispravan JSON string.', - 'lowercase' => 'Polje :attribute mora sadržavati samo mala slova.', - 'lt' => - array ( - 'array' => 'Polje :attribute mora biti manje od :value stavki.', - 'file' => 'Polje :attribute mora biti manje od :value kilobajta.', - 'numeric' => 'Polje :attribute mora biti manje od :value.', - 'string' => 'Polje :attribute mora biti manje od :value znakova.', - ), - 'lte' => - array ( - 'array' => 'Polje :attribute ne smije imati više od :value stavki.', - 'file' => 'Polje :attribute mora biti manje ili jednako :value kilobajta.', - 'numeric' => 'Polje :attribute mora biti manje ili jednako :value.', - 'string' => 'Polje :attribute mora biti manje ili jednako :value znakova.', - ), - 'mac_address' => 'Polje :attribute mora biti ispravna MAC adresa.', - 'max' => - array ( - 'array' => 'Polje :attribute ne smije imati više od :max stavki.', - 'file' => 'Polje :attribute mora biti manje od :max kilobajta.', - 'numeric' => 'Polje :attribute mora biti manje od :max.', - 'string' => 'Polje :attribute mora sadržavati manje od :max znakova.', - ), - 'max_digits' => 'Polje :attribute ne smije imati više od :max znamenaka.', - 'mimes' => 'Polje :attribute mora biti datoteka tipa: :values.', - 'mimetypes' => 'Polje :attribute mora biti datoteka tipa: :values.', - 'min' => - array ( - 'array' => 'Polje :attribute mora sadržavati najmanje :min stavki.', - 'file' => 'Polje :attribute mora biti najmanje :min kilobajta.', - 'numeric' => 'Polje :attribute mora biti najmanje :min.', - 'string' => 'Polje :attribute mora sadržavati najmanje :min znakova.', - ), - 'min_digits' => 'Polje :attribute mora sadržavati najmanje :min znamenaka.', - 'multiple_of' => 'Broj :attribute mora biti višekratnik :value', - 'not_in' => 'Odabrano polje :attribute nije ispravno.', - 'not_regex' => 'Format polja :attribute je neispravan.', - 'numeric' => 'Polje :attribute mora biti broj.', - 'password' => - array ( - 'letters' => 'Polje :attribute mora sadržavati najmanje jedno slovo.', - 'mixed' => 'Polje :attribute mora sadržavati najmanje jedno veliko i jedno malo slovo.', - 'numbers' => 'Polje :attribute mora sadržavati najmanje jedan broj.', - 'symbols' => 'Polje :attribute mora sadržavati najmanje jedan simbol.', - 'uncompromised' => 'Vrijednost u :attribute se pojavila u curenju informacija. Molimo vas da odaberete drugu vrijednost za :attribute.', - ), - 'present' => 'Polje :attribute mora biti prisutno.', - 'prohibited' => 'Polje :attribute je zabranjeno.', - 'prohibited_if' => 'Polje :attribute zabranjeno je kada je :other :value.', - 'prohibited_unless' => 'Polje :attribute zabranjeno je, osim ako :other nije u :values.', - 'prohibits' => 'Polje :attribute zabranjuje da polje :other bude prisutno.', - 'regex' => 'Polje :attribute se ne podudara s formatom.', - 'relatable' => 'Polje :attribute se ne može povezati s ovim resursom.', - 'required' => 'Polje :attribute je obavezno.', - 'required_array_keys' => 'Polje :attribute mora sadržavati unose za: :values.', - 'required_if' => 'Polje :attribute je obavezno kada polje :other sadrži :value.', - 'required_if_accepted' => 'Polje :attribute je obavezno kada je prihvaćeno polje :other.', - 'required_unless' => 'Polje :attribute je obavezno osim :other je u :values.', - 'required_with' => 'Polje :attribute je obavezno kada postoji polje :values.', - 'required_with_all' => 'Polje :attribute je obavezno kada postje polja :values.', - 'required_without' => 'Polje :attribute je obavezno kada ne postoji polje :values.', - 'required_without_all' => 'Polje :attribute je obavezno kada nijedno od polja :values ne postoji.', - 'same' => 'Polja :attribute i :other se moraju podudarati.', - 'size' => - array ( - 'array' => 'Polje :attribute mora sadržavati :size stavki.', - 'file' => 'Polje :attribute mora biti :size kilobajta.', - 'numeric' => 'Polje :attribute mora biti :size.', - 'string' => 'Polje :attribute mora biti :size znakova.', - ), - 'starts_with' => 'Stavka :attribute mora započinjati jednom od narednih stavki: :values', - 'string' => 'Polje :attribute mora biti riječ.', - 'timezone' => 'Polje :attribute mora biti ispravna vremenska zona.', - 'unique' => 'Polje :attribute već postoji.', - 'uploaded' => 'Polje :attribute nije uspešno učitano.', - 'uppercase' => 'The :attribute must be uppercase.', - 'url' => 'Polje :attribute mora biti ispravan URL.', - 'uuid' => 'Stavka :attribute mora biti valjani UUID.', -); +return [ + 'accepted' => 'Polje :attribute mora biti prihvaćeno.', + 'accepted_if' => 'Polje :attribute mora biti prihvaćeno kada je :other jednako :value.', + 'active_url' => 'Polje :attribute nije ispravan URL.', + 'after' => 'Polje :attribute mora biti datum nakon :date.', + 'after_or_equal' => 'Polje :attribute mora biti datum veći ili jednak :date.', + 'alpha' => 'Polje :attribute smije sadržavati samo slova.', + 'alpha_dash' => 'Polje :attribute smije sadržavati samo slova, brojeve i crtice.', + 'alpha_num' => 'Polje :attribute smije sadržavati samo slova i brojeve.', + 'array' => 'Polje :attribute mora biti niz.', + 'attached' => 'Polje :attribute je već prikvačeno.', + 'attributes' => [ + 'address' => 'adresa', + 'age' => 'dob', + 'amount' => 'iznos', + 'area' => 'površina', + 'available' => 'dostupno', + 'birthday' => 'rođendan', + 'body' => 'tijelo', + 'city' => 'grad', + 'content' => 'sadržaj', + 'country' => 'država', + 'created_at' => 'kreirano', + 'creator' => 'autor', + 'current_password' => 'trenutna lozinka', + 'date' => 'datum', + 'date_of_birth' => 'datum rođenja', + 'day' => 'dan', + 'deleted_at' => 'obrisano', + 'description' => 'opis', + 'district' => 'općina', + 'duration' => 'trajanje', + 'email' => 'email', + 'excerpt' => 'izdvojeno', + 'filter' => 'filter', + 'first_name' => 'ime', + 'gender' => 'spol', + 'group' => 'grupa', + 'hour' => 'sat', + 'image' => 'slika', + 'last_name' => 'prezime', + 'lesson' => 'lekcija', + 'line_address_1' => 'adresa', + 'line_address_2' => 'dodatak adresi', + 'message' => 'poruka', + 'middle_name' => 'srednje ime', + 'minute' => 'minuta', + 'mobile' => 'mobitel', + 'month' => 'mjesec', + 'name' => 'ime', + 'national_code' => 'Nacionalni kod', + 'number' => 'broj', + 'password' => 'lozinka', + 'password_confirmation' => 'potvrda lozinke', + 'phone' => 'telefon', + 'photo' => 'fotografija', + 'postal_code' => 'poštanski broj', + 'price' => 'cijena', + 'province' => 'pokrajina', + 'recaptcha_response_field' => 'recaptcha polje', + 'remember' => 'zapamti me', + 'restored_at' => 'vraćeno', + 'result_text_under_image' => 'tekst rezultata ispod slike', + 'role' => 'uloga', + 'second' => 'sekunda', + 'sex' => 'spol', + 'short_text' => 'kratak tekst', + 'size' => 'veličina', + 'state' => 'država', + 'street' => 'ulica', + 'student' => 'učenik', + 'subject' => 'predmet', + 'teacher' => 'učitelj', + 'terms' => 'uvjeti', + 'test_description' => 'testni opis', + 'test_locale' => 'testni jezik', + 'test_name' => 'testno ime', + 'text' => 'tekst', + 'time' => 'vrijeme', + 'title' => 'naslov', + 'updated_at' => 'ažurirano', + 'username' => 'korisničko ime', + 'year' => 'godina', + ], + 'before' => 'Polje :attribute mora biti datum prije :date.', + 'before_or_equal' => 'Polje :attribute mora biti datum manji ili jednak :date.', + 'between' => [ + 'array' => 'Polje :attribute mora imati između :min - :max stavki.', + 'file' => 'Polje :attribute mora biti između :min - :max kilobajta.', + 'numeric' => 'Polje :attribute mora biti između :min - :max.', + 'string' => 'Polje :attribute mora biti između :min - :max znakova.', + ], + 'boolean' => 'Polje :attribute mora biti false ili true.', + 'confirmed' => 'Potvrda polja :attribute se ne podudara.', + 'current_password' => 'Lozinka nije ispravna.', + 'date' => 'Polje :attribute nije ispravan datum.', + 'date_equals' => 'Stavka :attribute mora biti jednaka :date.', + 'date_format' => 'Polje :attribute ne podudara s formatom :format.', + 'declined' => 'Polje :attribute mora biti odbijeno.', + 'declined_if' => 'Polje :attribute mora biti odbijeno kada je :other jednako :value.', + 'different' => 'Polja :attribute i :other moraju biti različita.', + 'digits' => 'Polje :attribute mora sadržavati :digits znamenki.', + 'digits_between' => 'Polje :attribute mora imati između :min i :max znamenki.', + 'dimensions' => 'Polje :attribute ima neispravne dimenzije slike.', + 'distinct' => 'Polje :attribute ima dupliciranu vrijednost.', + 'doesnt_end_with' => 'Polje :attribute ne smije završavati s jednom od sljedećih vrijednosti: :values.', + 'doesnt_start_with' => 'Polje :attribute ne smije počinjati s jednom od sljedećih vrijednosti: :values.', + 'email' => 'Polje :attribute mora biti ispravna e-mail adresa.', + 'ends_with' => ':Attribute bi trebao završiti s jednim od sljedećih: :values.', + 'enum' => 'Odabrano polje :attribute nije ispravno.', + 'exists' => 'Odabrano polje :attribute nije ispravno.', + 'file' => 'Polje :attribute mora biti datoteka.', + 'filled' => 'Polje :attribute je obavezno.', + 'gt' => [ + 'array' => 'Polje :attribute mora biti veće od :value stavki.', + 'file' => 'Polje :attribute mora biti veće od :value kilobajta.', + 'numeric' => 'Polje :attribute mora biti veće od :value.', + 'string' => 'Polje :attribute mora biti veće od :value karaktera.', + ], + 'gte' => [ + 'array' => 'Polje :attribute mora imati najmanje :value stavki.', + 'file' => 'Polje :attribute mora imati najmanje :value kilobajta.', + 'numeric' => 'Polje :attribute mora biti veće ili jednako :value.', + 'string' => 'Polje :attribute mora biti veće ili jednako :value znakova.', + ], + 'image' => 'Polje :attribute mora biti slika.', + 'in' => 'Odabrano polje :attribute nije ispravno.', + 'in_array' => 'Polje :attribute ne postoji u :other.', + 'integer' => 'Polje :attribute mora biti broj.', + 'ip' => 'Polje :attribute mora biti ispravna IP adresa.', + 'ipv4' => 'Polje :attribute mora biti ispravna IPv4 adresa.', + 'ipv6' => 'Polje :attribute mora biti ispravna IPv6 adresa.', + 'json' => 'Polje :attribute mora biti ispravan JSON string.', + 'lowercase' => 'Polje :attribute mora sadržavati samo mala slova.', + 'lt' => [ + 'array' => 'Polje :attribute mora biti manje od :value stavki.', + 'file' => 'Polje :attribute mora biti manje od :value kilobajta.', + 'numeric' => 'Polje :attribute mora biti manje od :value.', + 'string' => 'Polje :attribute mora biti manje od :value znakova.', + ], + 'lte' => [ + 'array' => 'Polje :attribute ne smije imati više od :value stavki.', + 'file' => 'Polje :attribute mora biti manje ili jednako :value kilobajta.', + 'numeric' => 'Polje :attribute mora biti manje ili jednako :value.', + 'string' => 'Polje :attribute mora biti manje ili jednako :value znakova.', + ], + 'mac_address' => 'Polje :attribute mora biti ispravna MAC adresa.', + 'max' => [ + 'array' => 'Polje :attribute ne smije imati više od :max stavki.', + 'file' => 'Polje :attribute mora biti manje od :max kilobajta.', + 'numeric' => 'Polje :attribute mora biti manje od :max.', + 'string' => 'Polje :attribute mora sadržavati manje od :max znakova.', + ], + 'max_digits' => 'Polje :attribute ne smije imati više od :max znamenaka.', + 'mimes' => 'Polje :attribute mora biti datoteka tipa: :values.', + 'mimetypes' => 'Polje :attribute mora biti datoteka tipa: :values.', + 'min' => [ + 'array' => 'Polje :attribute mora sadržavati najmanje :min stavki.', + 'file' => 'Polje :attribute mora biti najmanje :min kilobajta.', + 'numeric' => 'Polje :attribute mora biti najmanje :min.', + 'string' => 'Polje :attribute mora sadržavati najmanje :min znakova.', + ], + 'min_digits' => 'Polje :attribute mora sadržavati najmanje :min znamenaka.', + 'multiple_of' => 'Broj :attribute mora biti višekratnik :value', + 'not_in' => 'Odabrano polje :attribute nije ispravno.', + 'not_regex' => 'Format polja :attribute je neispravan.', + 'numeric' => 'Polje :attribute mora biti broj.', + 'password' => [ + 'letters' => 'Polje :attribute mora sadržavati najmanje jedno slovo.', + 'mixed' => 'Polje :attribute mora sadržavati najmanje jedno veliko i jedno malo slovo.', + 'numbers' => 'Polje :attribute mora sadržavati najmanje jedan broj.', + 'symbols' => 'Polje :attribute mora sadržavati najmanje jedan simbol.', + 'uncompromised' => 'Vrijednost u :attribute se pojavila u curenju informacija. Molimo vas da odaberete drugu vrijednost za :attribute.', + ], + 'present' => 'Polje :attribute mora biti prisutno.', + 'prohibited' => 'Polje :attribute je zabranjeno.', + 'prohibited_if' => 'Polje :attribute zabranjeno je kada je :other :value.', + 'prohibited_unless' => 'Polje :attribute zabranjeno je, osim ako :other nije u :values.', + 'prohibits' => 'Polje :attribute zabranjuje da polje :other bude prisutno.', + 'regex' => 'Polje :attribute se ne podudara s formatom.', + 'relatable' => 'Polje :attribute se ne može povezati s ovim resursom.', + 'required' => 'Polje :attribute je obavezno.', + 'required_array_keys' => 'Polje :attribute mora sadržavati unose za: :values.', + 'required_if' => 'Polje :attribute je obavezno kada polje :other sadrži :value.', + 'required_if_accepted' => 'Polje :attribute je obavezno kada je prihvaćeno polje :other.', + 'required_unless' => 'Polje :attribute je obavezno osim :other je u :values.', + 'required_with' => 'Polje :attribute je obavezno kada postoji polje :values.', + 'required_with_all' => 'Polje :attribute je obavezno kada postje polja :values.', + 'required_without' => 'Polje :attribute je obavezno kada ne postoji polje :values.', + 'required_without_all' => 'Polje :attribute je obavezno kada nijedno od polja :values ne postoji.', + 'same' => 'Polja :attribute i :other se moraju podudarati.', + 'size' => [ + 'array' => 'Polje :attribute mora sadržavati :size stavki.', + 'file' => 'Polje :attribute mora biti :size kilobajta.', + 'numeric' => 'Polje :attribute mora biti :size.', + 'string' => 'Polje :attribute mora biti :size znakova.', + ], + 'starts_with' => 'Stavka :attribute mora započinjati jednom od narednih stavki: :values', + 'string' => 'Polje :attribute mora biti riječ.', + 'timezone' => 'Polje :attribute mora biti ispravna vremenska zona.', + 'unique' => 'Polje :attribute već postoji.', + 'uploaded' => 'Polje :attribute nije uspešno učitano.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'Polje :attribute mora biti ispravan URL.', + 'uuid' => 'Stavka :attribute mora biti valjani UUID.', +]; diff --git a/resources/lang/it/Loading.php b/resources/lang/it/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/it/Loading.php +++ b/resources/lang/it/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/it/auth.php b/resources/lang/it/auth.php index cd373dd0..c125cbfd 100644 --- a/resources/lang/it/auth.php +++ b/resources/lang/it/auth.php @@ -1,7 +1,7 @@ 'Credenziali non valide.', - 'password' => 'Il campo :attribute non è corretto.', - 'throttle' => 'Troppi tentativi di accesso. Riprova tra :seconds secondi.', -); +return [ + 'failed' => 'Credenziali non valide.', + 'password' => 'Il campo :attribute non è corretto.', + 'throttle' => 'Troppi tentativi di accesso. Riprova tra :seconds secondi.', +]; diff --git a/resources/lang/it/http-statuses.php b/resources/lang/it/http-statuses.php index 83ea96c7..0ca29e0a 100644 --- a/resources/lang/it/http-statuses.php +++ b/resources/lang/it/http-statuses.php @@ -1,82 +1,82 @@ 'Errore sconosciuto', - 'unknownError' => 'Errore sconosciuto', - 100 => 'Continua', - 101 => 'Scambiando protocolli', - 102 => 'In processo', - 200 => 'OK', - 201 => 'Creato', - 202 => 'Accettato', - 203 => 'Informazione non autorevole', - 204 => 'Nessun contenuto', - 205 => 'Resetta il contenuto', - 206 => 'Contenuto parziale', - 207 => 'Stati multipli', - 208 => 'Già riportato', - 226 => 'IM utilizzati', - 300 => 'Scelte multiple', - 301 => 'Trasferito permanentemente', - 302 => 'Trovato', - 303 => 'Guarda altro', - 304 => 'Non modificata', - 305 => 'Usa un proxy', - 307 => 'Re-indirizzamento temporaneo', - 308 => 'Re-indirizzamento permanente', - 400 => 'Cattiva richiesta', - 401 => 'Non autorizzata', - 402 => 'Pagamento richiesto', - 403 => 'Accesso vietato', - 404 => 'Pagina non trovata', - 405 => 'Metodo non consentito', - 406 => 'Non accettabile', - 407 => 'Autenticazione al proxy richiesta', - 408 => 'Tempo scaduto per la richiesta', - 409 => 'Conflitto', - 410 => 'Andata', - 411 => 'Lunghezza necessaria', - 412 => 'Precondizione fallita', - 413 => 'Payload troppo grande', - 414 => 'URI troppo lungo', - 415 => 'Media Type non supportato', - 416 => 'intervallo non soddisfacibile', - 417 => 'Aspettativa fallita', - 418 => 'Sono una teiera', - 419 => 'Sessione scaduta', - 421 => 'Richiesta mal indirizzata', - 422 => 'Entità improcessabile', - 423 => 'Bloccata', - 424 => 'Dipendenza fallita', - 425 => 'Too Early', - 426 => 'Aggiornamento richiesto', - 428 => 'Precondizione necessaria', - 429 => 'Troppe richieste', - 431 => 'Campi header della richiesta troppo grandi', - 444 => 'Connection Closed Without Response', - 449 => 'Riprova con', - 451 => 'Non disponibile per motivi legali', - 499 => 'Client Closed Request', - 500 => 'Errore interno al server', - 501 => 'Non implementato', - 502 => 'Gateway cattivo', - 503 => 'In manutenzione', - 504 => 'Tempo scaduto per il gateway', - 505 => 'Versione HTTP non supportata', - 506 => 'Variante anche negozia', - 507 => 'Spazio insufficiente', - 508 => 'Loop identificato', - 509 => 'Limita di banda superato', - 510 => 'Non esteso', - 511 => 'Autenticazione di rete necessaria', - 520 => 'Errore sconosciuto', - 521 => 'Web server spento', - 522 => 'Tempo scaduto per la connessione', - 523 => 'Origine non raggiungibile', - 524 => 'Un timeout è avvenuto', - 525 => 'Handshake SSL fallita', - 526 => 'Certificato SSL invalido', - 527 => 'Railgun Error', - 598 => 'Network Read Timeout Error', - 599 => 'Network Connect Timeout Error', -); +return [ + 0 => 'Errore sconosciuto', + 'unknownError' => 'Errore sconosciuto', + 100 => 'Continua', + 101 => 'Scambiando protocolli', + 102 => 'In processo', + 200 => 'OK', + 201 => 'Creato', + 202 => 'Accettato', + 203 => 'Informazione non autorevole', + 204 => 'Nessun contenuto', + 205 => 'Resetta il contenuto', + 206 => 'Contenuto parziale', + 207 => 'Stati multipli', + 208 => 'Già riportato', + 226 => 'IM utilizzati', + 300 => 'Scelte multiple', + 301 => 'Trasferito permanentemente', + 302 => 'Trovato', + 303 => 'Guarda altro', + 304 => 'Non modificata', + 305 => 'Usa un proxy', + 307 => 'Re-indirizzamento temporaneo', + 308 => 'Re-indirizzamento permanente', + 400 => 'Cattiva richiesta', + 401 => 'Non autorizzata', + 402 => 'Pagamento richiesto', + 403 => 'Accesso vietato', + 404 => 'Pagina non trovata', + 405 => 'Metodo non consentito', + 406 => 'Non accettabile', + 407 => 'Autenticazione al proxy richiesta', + 408 => 'Tempo scaduto per la richiesta', + 409 => 'Conflitto', + 410 => 'Andata', + 411 => 'Lunghezza necessaria', + 412 => 'Precondizione fallita', + 413 => 'Payload troppo grande', + 414 => 'URI troppo lungo', + 415 => 'Media Type non supportato', + 416 => 'intervallo non soddisfacibile', + 417 => 'Aspettativa fallita', + 418 => 'Sono una teiera', + 419 => 'Sessione scaduta', + 421 => 'Richiesta mal indirizzata', + 422 => 'Entità improcessabile', + 423 => 'Bloccata', + 424 => 'Dipendenza fallita', + 425 => 'Too Early', + 426 => 'Aggiornamento richiesto', + 428 => 'Precondizione necessaria', + 429 => 'Troppe richieste', + 431 => 'Campi header della richiesta troppo grandi', + 444 => 'Connection Closed Without Response', + 449 => 'Riprova con', + 451 => 'Non disponibile per motivi legali', + 499 => 'Client Closed Request', + 500 => 'Errore interno al server', + 501 => 'Non implementato', + 502 => 'Gateway cattivo', + 503 => 'In manutenzione', + 504 => 'Tempo scaduto per il gateway', + 505 => 'Versione HTTP non supportata', + 506 => 'Variante anche negozia', + 507 => 'Spazio insufficiente', + 508 => 'Loop identificato', + 509 => 'Limita di banda superato', + 510 => 'Non esteso', + 511 => 'Autenticazione di rete necessaria', + 520 => 'Errore sconosciuto', + 521 => 'Web server spento', + 522 => 'Tempo scaduto per la connessione', + 523 => 'Origine non raggiungibile', + 524 => 'Un timeout è avvenuto', + 525 => 'Handshake SSL fallita', + 526 => 'Certificato SSL invalido', + 527 => 'Railgun Error', + 598 => 'Network Read Timeout Error', + 599 => 'Network Connect Timeout Error', +]; diff --git a/resources/lang/it/pagination.php b/resources/lang/it/pagination.php index 88470a9d..5d2242ac 100644 --- a/resources/lang/it/pagination.php +++ b/resources/lang/it/pagination.php @@ -1,6 +1,6 @@ 'Successivo »', - 'previous' => '« Precedente', -); +return [ + 'next' => 'Successivo »', + 'previous' => '« Precedente', +]; diff --git a/resources/lang/it/passwords.php b/resources/lang/it/passwords.php index ee51edd4..f9f4777b 100644 --- a/resources/lang/it/passwords.php +++ b/resources/lang/it/passwords.php @@ -1,9 +1,9 @@ 'La password è stata reimpostata!', - 'sent' => 'Ti abbiamo inviato una email con il link per il reset della password!', - 'throttled' => 'Per favore, attendi prima di riprovare.', - 'token' => 'Questo token di reset della password non è valido.', - 'user' => 'Non riusciamo a trovare un utente con questo indirizzo email.', -); +return [ + 'reset' => 'La password è stata reimpostata!', + 'sent' => 'Ti abbiamo inviato una email con il link per il reset della password!', + 'throttled' => 'Per favore, attendi prima di riprovare.', + 'token' => 'Questo token di reset della password non è valido.', + 'user' => 'Non riusciamo a trovare un utente con questo indirizzo email.', +]; diff --git a/resources/lang/it/trans.php b/resources/lang/it/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/it/trans.php +++ b/resources/lang/it/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/it/validation.php b/resources/lang/it/validation.php index da8701e6..076a46ca 100644 --- a/resources/lang/it/validation.php +++ b/resources/lang/it/validation.php @@ -1,218 +1,208 @@ ':Attribute deve essere accettato.', - 'accepted_if' => ':Attribute deve essere accettato quando :other è :value.', - 'active_url' => ':Attribute non è un URL valido.', - 'after' => ':Attribute deve essere una data successiva al :date.', - 'after_or_equal' => ':Attribute deve essere una data successiva o uguale al :date.', - 'alpha' => ':Attribute può contenere solo lettere.', - 'alpha_dash' => ':Attribute può contenere solo lettere, numeri e trattini.', - 'alpha_num' => ':Attribute può contenere solo lettere e numeri.', - 'array' => ':Attribute deve essere un array.', - 'attached' => ':Attribute è già associato.', - 'attributes' => - array ( - 'address' => 'indirizzo', - 'age' => 'età', - 'amount' => 'amount', - 'area' => 'area', - 'available' => 'disponibile', - 'birthday' => 'birthday', - 'body' => 'body', - 'city' => 'città', - 'content' => 'contenuto', - 'country' => 'paese', - 'created_at' => 'created at', - 'creator' => 'creator', - 'current_password' => 'current password', - 'date' => 'data', - 'date_of_birth' => 'date of birth', - 'day' => 'giorno', - 'deleted_at' => 'deleted at', - 'description' => 'descrizione', - 'district' => 'district', - 'duration' => 'duration', - 'email' => 'email', - 'excerpt' => 'estratto', - 'filter' => 'filter', - 'first_name' => 'nome', - 'gender' => 'genere', - 'group' => 'group', - 'hour' => 'ora', - 'image' => 'image', - 'last_name' => 'cognome', - 'lesson' => 'lesson', - 'line_address_1' => 'line address 1', - 'line_address_2' => 'line address 2', - 'message' => 'message', - 'middle_name' => 'middle name', - 'minute' => 'minuto', - 'mobile' => 'cellulare', - 'month' => 'mese', - 'name' => 'nome', - 'national_code' => 'national code', - 'number' => 'number', - 'password' => 'password', - 'password_confirmation' => 'conferma password', - 'phone' => 'telefono', - 'photo' => 'photo', - 'postal_code' => 'postal code', - 'price' => 'price', - 'province' => 'province', - 'recaptcha_response_field' => 'recaptcha response field', - 'remember' => 'remember', - 'restored_at' => 'restored at', - 'result_text_under_image' => 'result text under image', - 'role' => 'role', - 'second' => 'secondo', - 'sex' => 'sesso', - 'short_text' => 'short text', - 'size' => 'dimensione', - 'state' => 'state', - 'street' => 'street', - 'student' => 'student', - 'subject' => 'subject', - 'teacher' => 'teacher', - 'terms' => 'terms', - 'test_description' => 'test description', - 'test_locale' => 'test locale', - 'test_name' => 'test name', - 'text' => 'text', - 'time' => 'ora', - 'title' => 'titolo', - 'updated_at' => 'updated at', - 'username' => 'nome utente', - 'year' => 'anno', - ), - 'before' => ':Attribute deve essere una data precedente al :date.', - 'before_or_equal' => ':Attribute deve essere una data precedente o uguale al :date.', - 'between' => - array ( - 'array' => ':Attribute deve avere tra :min - :max elementi.', - 'file' => ':Attribute deve trovarsi tra :min - :max kilobyte.', - 'numeric' => ':Attribute deve trovarsi tra :min - :max.', - 'string' => ':Attribute deve trovarsi tra :min - :max caratteri.', - ), - 'boolean' => 'Il campo :attribute deve essere vero o falso.', - 'confirmed' => 'Il campo di conferma per :attribute non coincide.', - 'current_password' => 'Password non valida.', - 'date' => ':Attribute non è una data valida.', - 'date_equals' => ':Attribute deve essere una data e uguale a :date.', - 'date_format' => ':Attribute non coincide con il formato :format.', - 'declined' => ':Attribute deve essere rifiutato.', - 'declined_if' => ':Attribute deve essere rifiutato quando :other è :value.', - 'different' => ':Attribute e :other devono essere differenti.', - 'digits' => ':Attribute deve essere di :digits cifre.', - 'digits_between' => ':Attribute deve essere tra :min e :max cifre.', - 'dimensions' => 'Le dimensioni dell\'immagine di :attribute non sono valide.', - 'distinct' => ':Attribute contiene un valore duplicato.', - 'doesnt_end_with' => ':Attribute non può terminare con uno dei seguenti valori: :values.', - 'doesnt_start_with' => ':Attribute non può iniziare con uno dei seguenti valori: :values.', - 'email' => ':Attribute non è valido.', - 'ends_with' => ':Attribute deve finire con uno dei seguenti valori: :values', - 'enum' => 'Il campo :attribute non è valido.', - 'exists' => ':Attribute selezionato non è valido.', - 'file' => ':Attribute deve essere un file.', - 'filled' => 'Il campo :attribute deve contenere un valore.', - 'gt' => - array ( - 'array' => ':Attribute deve contenere più di :value elementi.', - 'file' => ':Attribute deve essere maggiore di :value kilobyte.', - 'numeric' => ':Attribute deve essere maggiore di :value.', - 'string' => ':Attribute deve contenere più di :value caratteri.', - ), - 'gte' => - array ( - 'array' => ':Attribute deve contenere un numero di elementi uguale o maggiore di :value.', - 'file' => ':Attribute deve essere uguale o maggiore di :value kilobyte.', - 'numeric' => ':Attribute deve essere uguale o maggiore di :value.', - 'string' => ':Attribute deve contenere un numero di caratteri uguale o maggiore di :value.', - ), - 'image' => ':Attribute deve essere un\'immagine.', - 'in' => ':Attribute selezionato non è valido.', - 'in_array' => 'Il valore del campo :attribute non esiste in :other.', - 'integer' => ':Attribute deve essere un numero intero.', - 'ip' => ':Attribute deve essere un indirizzo IP valido.', - 'ipv4' => ':Attribute deve essere un indirizzo IPv4 valido.', - 'ipv6' => ':Attribute deve essere un indirizzo IPv6 valido.', - 'json' => ':Attribute deve essere una stringa JSON valida.', - 'lowercase' => ':Attribute deve contenere solo caratteri minuscoli.', - 'lt' => - array ( - 'array' => ':Attribute deve contenere meno di :value elementi.', - 'file' => ':Attribute deve essere minore di :value kilobyte.', - 'numeric' => ':Attribute deve essere minore di :value.', - 'string' => ':Attribute deve contenere meno di :value caratteri.', - ), - 'lte' => - array ( - 'array' => ':Attribute deve contenere un numero di elementi minore o uguale a :value.', - 'file' => ':Attribute deve essere minore o uguale a :value kilobyte.', - 'numeric' => ':Attribute deve essere minore o uguale a :value.', - 'string' => ':Attribute deve contenere un numero di caratteri minore o uguale a :value.', - ), - 'mac_address' => 'Il campo :attribute deve essere un indirizzo MAC valido .', - 'max' => - array ( - 'array' => ':Attribute non può avere più di :max elementi.', - 'file' => ':Attribute non può essere superiore a :max kilobyte.', - 'numeric' => ':Attribute non può essere superiore a :max.', - 'string' => ':Attribute non può contenere più di :max caratteri.', - ), - 'max_digits' => ':Attribute non può contenere più di :max cifre.', - 'mimes' => ':Attribute deve essere del tipo: :values.', - 'mimetypes' => ':Attribute deve essere del tipo: :values.', - 'min' => - array ( - 'array' => ':Attribute deve avere almeno :min elementi.', - 'file' => ':Attribute deve essere almeno di :min kilobyte.', - 'numeric' => ':Attribute deve essere almeno :min.', - 'string' => ':Attribute deve contenere almeno :min caratteri.', - ), - 'min_digits' => ':Attribute deve contenere almeno :min cifre.', - 'multiple_of' => ':Attribute deve essere un multiplo di :value', - 'not_in' => 'Il valore selezionato per :attribute non è valido.', - 'not_regex' => 'Il formato di :attribute non è valido.', - 'numeric' => ':Attribute deve essere un numero.', - 'password' => - array ( - 'letters' => ':Attribute deve contenere almeno un carattere.', - 'mixed' => ':Attribute deve contenere almeno un carattere maiuscolo ed un carattere minuscolo.', - 'numbers' => ':Attribute deve contenere almeno un numero.', - 'symbols' => ':Attribute deve contenere almeno un simbolo.', - 'uncompromised' => ':Attribute è presente negli archivi dei dati trafugati. Per piacere scegli un valore differente per :attribute.', - ), - 'present' => 'Il campo :attribute deve essere presente.', - 'prohibited' => ':Attribute non consentito.', - 'prohibited_if' => ':Attribute non consentito quando :other è :value.', - 'prohibited_unless' => ':Attribute non consentito a meno che :other sia contenuto in :values.', - 'prohibits' => ':Attribute impedisce a :other di essere presente.', - 'regex' => 'Il formato del campo :attribute non è valido.', - 'relatable' => ':Attribute non può essere associato a questa risorsa.', - 'required' => 'Il campo :attribute è richiesto.', - 'required_array_keys' => 'Il campo :attribute deve contenere voci per: :values.', - 'required_if' => 'Il campo :attribute è richiesto quando :other è :value.', - 'required_if_accepted' => ':Attribute è richiesto quando :other è accettato.', - 'required_unless' => 'Il campo :attribute è richiesto a meno che :other sia in :values.', - 'required_with' => 'Il campo :attribute è richiesto quando :values è presente.', - 'required_with_all' => 'Il campo :attribute è richiesto quando :values sono presenti.', - 'required_without' => 'Il campo :attribute è richiesto quando :values non è presente.', - 'required_without_all' => 'Il campo :attribute è richiesto quando nessuno di :values è presente.', - 'same' => ':Attribute e :other devono coincidere.', - 'size' => - array ( - 'array' => ':Attribute deve contenere :size elementi.', - 'file' => ':Attribute deve essere :size kilobyte.', - 'numeric' => ':Attribute deve essere :size.', - 'string' => ':Attribute deve contenere :size caratteri.', - ), - 'starts_with' => ':Attribute deve iniziare con uno dei seguenti: :values', - 'string' => ':Attribute deve essere una stringa.', - 'timezone' => ':Attribute deve essere una zona valida.', - 'unique' => ':Attribute è stato già utilizzato.', - 'uploaded' => ':Attribute non è stato caricato.', - 'uppercase' => ':Attribute deve contenere solo caratteri maiuscoli.', - 'url' => 'Il formato del campo :attribute non è valido.', - 'uuid' => ':Attribute deve essere un UUID valido.', -); +return [ + 'accepted' => ':Attribute deve essere accettato.', + 'accepted_if' => ':Attribute deve essere accettato quando :other è :value.', + 'active_url' => ':Attribute non è un URL valido.', + 'after' => ':Attribute deve essere una data successiva al :date.', + 'after_or_equal' => ':Attribute deve essere una data successiva o uguale al :date.', + 'alpha' => ':Attribute può contenere solo lettere.', + 'alpha_dash' => ':Attribute può contenere solo lettere, numeri e trattini.', + 'alpha_num' => ':Attribute può contenere solo lettere e numeri.', + 'array' => ':Attribute deve essere un array.', + 'attached' => ':Attribute è già associato.', + 'attributes' => [ + 'address' => 'indirizzo', + 'age' => 'età', + 'amount' => 'amount', + 'area' => 'area', + 'available' => 'disponibile', + 'birthday' => 'birthday', + 'body' => 'body', + 'city' => 'città', + 'content' => 'contenuto', + 'country' => 'paese', + 'created_at' => 'created at', + 'creator' => 'creator', + 'current_password' => 'current password', + 'date' => 'data', + 'date_of_birth' => 'date of birth', + 'day' => 'giorno', + 'deleted_at' => 'deleted at', + 'description' => 'descrizione', + 'district' => 'district', + 'duration' => 'duration', + 'email' => 'email', + 'excerpt' => 'estratto', + 'filter' => 'filter', + 'first_name' => 'nome', + 'gender' => 'genere', + 'group' => 'group', + 'hour' => 'ora', + 'image' => 'image', + 'last_name' => 'cognome', + 'lesson' => 'lesson', + 'line_address_1' => 'line address 1', + 'line_address_2' => 'line address 2', + 'message' => 'message', + 'middle_name' => 'middle name', + 'minute' => 'minuto', + 'mobile' => 'cellulare', + 'month' => 'mese', + 'name' => 'nome', + 'national_code' => 'national code', + 'number' => 'number', + 'password' => 'password', + 'password_confirmation' => 'conferma password', + 'phone' => 'telefono', + 'photo' => 'photo', + 'postal_code' => 'postal code', + 'price' => 'price', + 'province' => 'province', + 'recaptcha_response_field' => 'recaptcha response field', + 'remember' => 'remember', + 'restored_at' => 'restored at', + 'result_text_under_image' => 'result text under image', + 'role' => 'role', + 'second' => 'secondo', + 'sex' => 'sesso', + 'short_text' => 'short text', + 'size' => 'dimensione', + 'state' => 'state', + 'street' => 'street', + 'student' => 'student', + 'subject' => 'subject', + 'teacher' => 'teacher', + 'terms' => 'terms', + 'test_description' => 'test description', + 'test_locale' => 'test locale', + 'test_name' => 'test name', + 'text' => 'text', + 'time' => 'ora', + 'title' => 'titolo', + 'updated_at' => 'updated at', + 'username' => 'nome utente', + 'year' => 'anno', + ], + 'before' => ':Attribute deve essere una data precedente al :date.', + 'before_or_equal' => ':Attribute deve essere una data precedente o uguale al :date.', + 'between' => [ + 'array' => ':Attribute deve avere tra :min - :max elementi.', + 'file' => ':Attribute deve trovarsi tra :min - :max kilobyte.', + 'numeric' => ':Attribute deve trovarsi tra :min - :max.', + 'string' => ':Attribute deve trovarsi tra :min - :max caratteri.', + ], + 'boolean' => 'Il campo :attribute deve essere vero o falso.', + 'confirmed' => 'Il campo di conferma per :attribute non coincide.', + 'current_password' => 'Password non valida.', + 'date' => ':Attribute non è una data valida.', + 'date_equals' => ':Attribute deve essere una data e uguale a :date.', + 'date_format' => ':Attribute non coincide con il formato :format.', + 'declined' => ':Attribute deve essere rifiutato.', + 'declined_if' => ':Attribute deve essere rifiutato quando :other è :value.', + 'different' => ':Attribute e :other devono essere differenti.', + 'digits' => ':Attribute deve essere di :digits cifre.', + 'digits_between' => ':Attribute deve essere tra :min e :max cifre.', + 'dimensions' => 'Le dimensioni dell\'immagine di :attribute non sono valide.', + 'distinct' => ':Attribute contiene un valore duplicato.', + 'doesnt_end_with' => ':Attribute non può terminare con uno dei seguenti valori: :values.', + 'doesnt_start_with' => ':Attribute non può iniziare con uno dei seguenti valori: :values.', + 'email' => ':Attribute non è valido.', + 'ends_with' => ':Attribute deve finire con uno dei seguenti valori: :values', + 'enum' => 'Il campo :attribute non è valido.', + 'exists' => ':Attribute selezionato non è valido.', + 'file' => ':Attribute deve essere un file.', + 'filled' => 'Il campo :attribute deve contenere un valore.', + 'gt' => [ + 'array' => ':Attribute deve contenere più di :value elementi.', + 'file' => ':Attribute deve essere maggiore di :value kilobyte.', + 'numeric' => ':Attribute deve essere maggiore di :value.', + 'string' => ':Attribute deve contenere più di :value caratteri.', + ], + 'gte' => [ + 'array' => ':Attribute deve contenere un numero di elementi uguale o maggiore di :value.', + 'file' => ':Attribute deve essere uguale o maggiore di :value kilobyte.', + 'numeric' => ':Attribute deve essere uguale o maggiore di :value.', + 'string' => ':Attribute deve contenere un numero di caratteri uguale o maggiore di :value.', + ], + 'image' => ':Attribute deve essere un\'immagine.', + 'in' => ':Attribute selezionato non è valido.', + 'in_array' => 'Il valore del campo :attribute non esiste in :other.', + 'integer' => ':Attribute deve essere un numero intero.', + 'ip' => ':Attribute deve essere un indirizzo IP valido.', + 'ipv4' => ':Attribute deve essere un indirizzo IPv4 valido.', + 'ipv6' => ':Attribute deve essere un indirizzo IPv6 valido.', + 'json' => ':Attribute deve essere una stringa JSON valida.', + 'lowercase' => ':Attribute deve contenere solo caratteri minuscoli.', + 'lt' => [ + 'array' => ':Attribute deve contenere meno di :value elementi.', + 'file' => ':Attribute deve essere minore di :value kilobyte.', + 'numeric' => ':Attribute deve essere minore di :value.', + 'string' => ':Attribute deve contenere meno di :value caratteri.', + ], + 'lte' => [ + 'array' => ':Attribute deve contenere un numero di elementi minore o uguale a :value.', + 'file' => ':Attribute deve essere minore o uguale a :value kilobyte.', + 'numeric' => ':Attribute deve essere minore o uguale a :value.', + 'string' => ':Attribute deve contenere un numero di caratteri minore o uguale a :value.', + ], + 'mac_address' => 'Il campo :attribute deve essere un indirizzo MAC valido .', + 'max' => [ + 'array' => ':Attribute non può avere più di :max elementi.', + 'file' => ':Attribute non può essere superiore a :max kilobyte.', + 'numeric' => ':Attribute non può essere superiore a :max.', + 'string' => ':Attribute non può contenere più di :max caratteri.', + ], + 'max_digits' => ':Attribute non può contenere più di :max cifre.', + 'mimes' => ':Attribute deve essere del tipo: :values.', + 'mimetypes' => ':Attribute deve essere del tipo: :values.', + 'min' => [ + 'array' => ':Attribute deve avere almeno :min elementi.', + 'file' => ':Attribute deve essere almeno di :min kilobyte.', + 'numeric' => ':Attribute deve essere almeno :min.', + 'string' => ':Attribute deve contenere almeno :min caratteri.', + ], + 'min_digits' => ':Attribute deve contenere almeno :min cifre.', + 'multiple_of' => ':Attribute deve essere un multiplo di :value', + 'not_in' => 'Il valore selezionato per :attribute non è valido.', + 'not_regex' => 'Il formato di :attribute non è valido.', + 'numeric' => ':Attribute deve essere un numero.', + 'password' => [ + 'letters' => ':Attribute deve contenere almeno un carattere.', + 'mixed' => ':Attribute deve contenere almeno un carattere maiuscolo ed un carattere minuscolo.', + 'numbers' => ':Attribute deve contenere almeno un numero.', + 'symbols' => ':Attribute deve contenere almeno un simbolo.', + 'uncompromised' => ':Attribute è presente negli archivi dei dati trafugati. Per piacere scegli un valore differente per :attribute.', + ], + 'present' => 'Il campo :attribute deve essere presente.', + 'prohibited' => ':Attribute non consentito.', + 'prohibited_if' => ':Attribute non consentito quando :other è :value.', + 'prohibited_unless' => ':Attribute non consentito a meno che :other sia contenuto in :values.', + 'prohibits' => ':Attribute impedisce a :other di essere presente.', + 'regex' => 'Il formato del campo :attribute non è valido.', + 'relatable' => ':Attribute non può essere associato a questa risorsa.', + 'required' => 'Il campo :attribute è richiesto.', + 'required_array_keys' => 'Il campo :attribute deve contenere voci per: :values.', + 'required_if' => 'Il campo :attribute è richiesto quando :other è :value.', + 'required_if_accepted' => ':Attribute è richiesto quando :other è accettato.', + 'required_unless' => 'Il campo :attribute è richiesto a meno che :other sia in :values.', + 'required_with' => 'Il campo :attribute è richiesto quando :values è presente.', + 'required_with_all' => 'Il campo :attribute è richiesto quando :values sono presenti.', + 'required_without' => 'Il campo :attribute è richiesto quando :values non è presente.', + 'required_without_all' => 'Il campo :attribute è richiesto quando nessuno di :values è presente.', + 'same' => ':Attribute e :other devono coincidere.', + 'size' => [ + 'array' => ':Attribute deve contenere :size elementi.', + 'file' => ':Attribute deve essere :size kilobyte.', + 'numeric' => ':Attribute deve essere :size.', + 'string' => ':Attribute deve contenere :size caratteri.', + ], + 'starts_with' => ':Attribute deve iniziare con uno dei seguenti: :values', + 'string' => ':Attribute deve essere una stringa.', + 'timezone' => ':Attribute deve essere una zona valida.', + 'unique' => ':Attribute è stato già utilizzato.', + 'uploaded' => ':Attribute non è stato caricato.', + 'uppercase' => ':Attribute deve contenere solo caratteri maiuscoli.', + 'url' => 'Il formato del campo :attribute non è valido.', + 'uuid' => ':Attribute deve essere un UUID valido.', +]; diff --git a/resources/lang/mk/Loading.php b/resources/lang/mk/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/mk/Loading.php +++ b/resources/lang/mk/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/mk/auth.php b/resources/lang/mk/auth.php index 0e004281..985cc340 100644 --- a/resources/lang/mk/auth.php +++ b/resources/lang/mk/auth.php @@ -1,7 +1,7 @@ 'Овие акредитиви не се совпаѓаат со нашите записи.', - 'password' => 'Лозинката не е точна.', - 'throttle' => 'Премногу обиди за најавување. Обидете се повторно за :seconds секунди.', -); +return [ + 'failed' => 'Овие акредитиви не се совпаѓаат со нашите записи.', + 'password' => 'Лозинката не е точна.', + 'throttle' => 'Премногу обиди за најавување. Обидете се повторно за :seconds секунди.', +]; diff --git a/resources/lang/mk/http-statuses.php b/resources/lang/mk/http-statuses.php index 89948042..47be74d4 100644 --- a/resources/lang/mk/http-statuses.php +++ b/resources/lang/mk/http-statuses.php @@ -1,82 +1,82 @@ 'Unknown Error', - 'unknownError' => 'Unknown Error', - 100 => 'Continue', - 101 => 'Switching Protocols', - 102 => 'Processing', - 200 => 'OK', - 201 => 'Created', - 202 => 'Accepted', - 203 => 'Non-Authoritative Information', - 204 => 'No Content', - 205 => 'Reset Content', - 206 => 'Partial Content', - 207 => 'Multi-Status', - 208 => 'Already Reported', - 226 => 'IM Used', - 300 => 'Multiple Choices', - 301 => 'Moved Permanently', - 302 => 'Found', - 303 => 'See Other', - 304 => 'Not Modified', - 305 => 'Use Proxy', - 307 => 'Temporary Redirect', - 308 => 'Permanent Redirect', - 400 => 'Bad Request', - 401 => 'Unauthorized', - 402 => 'Payment Required', - 403 => 'Forbidden', - 404 => 'Not Found', - 405 => 'Method Not Allowed', - 406 => 'Not Acceptable', - 407 => 'Proxy Authentication Required', - 408 => 'Request Timeout', - 409 => 'Conflict', - 410 => 'Gone', - 411 => 'Length Required', - 412 => 'Precondition Failed', - 413 => 'Payload Too Large', - 414 => 'URI Too Long', - 415 => 'Unsupported Media Type', - 416 => 'Range Not Satisfiable', - 417 => 'Expectation Failed', - 418 => 'I\'m a teapot', - 419 => 'Session Has Expired', - 421 => 'Misdirected Request', - 422 => 'Unprocessable Entity', - 423 => 'Locked', - 424 => 'Failed Dependency', - 425 => 'Too Early', - 426 => 'Upgrade Required', - 428 => 'Precondition Required', - 429 => 'Too Many Requests', - 431 => 'Request Header Fields Too Large', - 444 => 'Connection Closed Without Response', - 449 => 'Retry With', - 451 => 'Unavailable For Legal Reasons', - 499 => 'Client Closed Request', - 500 => 'Internal Server Error', - 501 => 'Not Implemented', - 502 => 'Bad Gateway', - 503 => 'Maintenance Mode', - 504 => 'Gateway Timeout', - 505 => 'HTTP Version Not Supported', - 506 => 'Variant Also Negotiates', - 507 => 'Insufficient Storage', - 508 => 'Loop Detected', - 509 => 'Bandwidth Limit Exceeded', - 510 => 'Not Extended', - 511 => 'Network Authentication Required', - 520 => 'Unknown Error', - 521 => 'Web Server is Down', - 522 => 'Connection Timed Out', - 523 => 'Origin Is Unreachable', - 524 => 'A Timeout Occurred', - 525 => 'SSL Handshake Failed', - 526 => 'Invalid SSL Certificate', - 527 => 'Railgun Error', - 598 => 'Network Read Timeout Error', - 599 => 'Network Connect Timeout Error', -); +return [ + 0 => 'Unknown Error', + 'unknownError' => 'Unknown Error', + 100 => 'Continue', + 101 => 'Switching Protocols', + 102 => 'Processing', + 200 => 'OK', + 201 => 'Created', + 202 => 'Accepted', + 203 => 'Non-Authoritative Information', + 204 => 'No Content', + 205 => 'Reset Content', + 206 => 'Partial Content', + 207 => 'Multi-Status', + 208 => 'Already Reported', + 226 => 'IM Used', + 300 => 'Multiple Choices', + 301 => 'Moved Permanently', + 302 => 'Found', + 303 => 'See Other', + 304 => 'Not Modified', + 305 => 'Use Proxy', + 307 => 'Temporary Redirect', + 308 => 'Permanent Redirect', + 400 => 'Bad Request', + 401 => 'Unauthorized', + 402 => 'Payment Required', + 403 => 'Forbidden', + 404 => 'Not Found', + 405 => 'Method Not Allowed', + 406 => 'Not Acceptable', + 407 => 'Proxy Authentication Required', + 408 => 'Request Timeout', + 409 => 'Conflict', + 410 => 'Gone', + 411 => 'Length Required', + 412 => 'Precondition Failed', + 413 => 'Payload Too Large', + 414 => 'URI Too Long', + 415 => 'Unsupported Media Type', + 416 => 'Range Not Satisfiable', + 417 => 'Expectation Failed', + 418 => 'I\'m a teapot', + 419 => 'Session Has Expired', + 421 => 'Misdirected Request', + 422 => 'Unprocessable Entity', + 423 => 'Locked', + 424 => 'Failed Dependency', + 425 => 'Too Early', + 426 => 'Upgrade Required', + 428 => 'Precondition Required', + 429 => 'Too Many Requests', + 431 => 'Request Header Fields Too Large', + 444 => 'Connection Closed Without Response', + 449 => 'Retry With', + 451 => 'Unavailable For Legal Reasons', + 499 => 'Client Closed Request', + 500 => 'Internal Server Error', + 501 => 'Not Implemented', + 502 => 'Bad Gateway', + 503 => 'Maintenance Mode', + 504 => 'Gateway Timeout', + 505 => 'HTTP Version Not Supported', + 506 => 'Variant Also Negotiates', + 507 => 'Insufficient Storage', + 508 => 'Loop Detected', + 509 => 'Bandwidth Limit Exceeded', + 510 => 'Not Extended', + 511 => 'Network Authentication Required', + 520 => 'Unknown Error', + 521 => 'Web Server is Down', + 522 => 'Connection Timed Out', + 523 => 'Origin Is Unreachable', + 524 => 'A Timeout Occurred', + 525 => 'SSL Handshake Failed', + 526 => 'Invalid SSL Certificate', + 527 => 'Railgun Error', + 598 => 'Network Read Timeout Error', + 599 => 'Network Connect Timeout Error', +]; diff --git a/resources/lang/mk/pagination.php b/resources/lang/mk/pagination.php index 86e4a1b6..db90208e 100644 --- a/resources/lang/mk/pagination.php +++ b/resources/lang/mk/pagination.php @@ -1,6 +1,6 @@ 'Напред »', - 'previous' => '« Назад', -); +return [ + 'next' => 'Напред »', + 'previous' => '« Назад', +]; diff --git a/resources/lang/mk/passwords.php b/resources/lang/mk/passwords.php index f79cc28f..c8eb7e09 100644 --- a/resources/lang/mk/passwords.php +++ b/resources/lang/mk/passwords.php @@ -1,9 +1,9 @@ 'Вашата лозинка е ресетирана!', - 'sent' => 'Испратена e-mail порака со инструкции за ресетирање на вашата лозинка!', - 'throttled' => 'Ве молиме почекајте пред да се обидете повторно.', - 'token' => 'Овој токен за ресетирање на лозинката е невалиден.', - 'user' => 'Не може да се пронајде корисник со таа e-mail адреса.', -); +return [ + 'reset' => 'Вашата лозинка е ресетирана!', + 'sent' => 'Испратена e-mail порака со инструкции за ресетирање на вашата лозинка!', + 'throttled' => 'Ве молиме почекајте пред да се обидете повторно.', + 'token' => 'Овој токен за ресетирање на лозинката е невалиден.', + 'user' => 'Не може да се пронајде корисник со таа e-mail адреса.', +]; diff --git a/resources/lang/mk/trans.php b/resources/lang/mk/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/mk/trans.php +++ b/resources/lang/mk/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/mk/validation.php b/resources/lang/mk/validation.php index 1c08274b..797cb623 100644 --- a/resources/lang/mk/validation.php +++ b/resources/lang/mk/validation.php @@ -1,218 +1,208 @@ 'Полето :attribute мора да биде прифатено.', - 'accepted_if' => 'The :attribute must be accepted when :other is :value.', - 'active_url' => 'Полето :attribute не е валиден URL.', - 'after' => 'Полето :attribute мора да биде датум после :date.', - 'after_or_equal' => 'Полето :attribute мора да биде датум кој е после или еднаков на :date.', - 'alpha' => 'Полето :attribute може да содржи само букви.', - 'alpha_dash' => 'Полето :attribute може да содржи само букви, броеви, долна црта и тире.', - 'alpha_num' => 'Полето :attribute може да содржи само букви и броеви.', - 'array' => 'Полето :attribute мора да биде низа.', - 'attached' => 'Оваа :attribute е веќе прикачен.', - 'attributes' => - array ( - 'address' => 'адреса', - 'age' => 'години', - 'amount' => 'amount', - 'area' => 'area', - 'available' => 'available', - 'birthday' => 'birthday', - 'body' => 'основен текст на порака', - 'city' => 'град', - 'content' => 'content', - 'country' => 'држава', - 'created_at' => 'created at', - 'creator' => 'creator', - 'current_password' => 'current password', - 'date' => 'датум', - 'date_of_birth' => 'date of birth', - 'day' => 'ден', - 'deleted_at' => 'deleted at', - 'description' => 'опис', - 'district' => 'district', - 'duration' => 'duration', - 'email' => 'е-mail адреса', - 'excerpt' => 'извадок', - 'filter' => 'filter', - 'first_name' => 'име', - 'gender' => 'пол', - 'group' => 'group', - 'hour' => 'час', - 'image' => 'image', - 'last_name' => 'презиме', - 'lesson' => 'lesson', - 'line_address_1' => 'line address 1', - 'line_address_2' => 'line address 2', - 'message' => 'порака', - 'middle_name' => 'middle name', - 'minute' => 'минута', - 'mobile' => 'мобилен', - 'month' => 'месец', - 'name' => 'име', - 'national_code' => 'national code', - 'number' => 'number', - 'password' => 'лозинка', - 'password_confirmation' => 'повтори ја лозинката', - 'phone' => 'телефон', - 'photo' => 'photo', - 'postal_code' => 'postal code', - 'price' => 'price', - 'province' => 'province', - 'recaptcha_response_field' => 'recaptcha response field', - 'remember' => 'remember', - 'restored_at' => 'restored at', - 'result_text_under_image' => 'result text under image', - 'role' => 'role', - 'second' => 'секунда', - 'sex' => 'пол', - 'short_text' => 'short text', - 'size' => 'size', - 'state' => 'state', - 'street' => 'street', - 'student' => 'student', - 'subject' => 'наслов', - 'teacher' => 'teacher', - 'terms' => 'terms', - 'test_description' => 'test description', - 'test_locale' => 'test locale', - 'test_name' => 'test name', - 'text' => 'text', - 'time' => 'време', - 'title' => 'наслов', - 'updated_at' => 'updated at', - 'username' => 'корисничко име', - 'year' => 'година', - ), - 'before' => 'Полето :attribute мора да биде датум пред :date.', - 'before_or_equal' => 'Полето :attribute мора да биде датум пред или еднаков на :date.', - 'between' => - array ( - 'array' => 'Полето :attribute мора да има помеѓу :min - :max елементи.', - 'file' => 'Полето :attribute мора да биде датотека со големина помеѓу :min и :max килобајти.', - 'numeric' => 'Полето :attribute мора да биде број помеѓу :min и :max.', - 'string' => 'Полето :attribute мора да биде текст со должина помеѓу :min и :max карактери.', - ), - 'boolean' => 'Полето :attribute мора да има вредност вистинито (true) или невистинито (false).', - 'confirmed' => 'Полето :attribute не е потврдено.', - 'current_password' => 'The password is incorrect.', - 'date' => 'Полето :attribute не е валиден датум.', - 'date_equals' => 'Полето :attribute мора да биде датум еднаков на :date.', - 'date_format' => 'Полето :attribute не одговара на форматот :format.', - 'declined' => 'The :attribute must be declined.', - 'declined_if' => 'The :attribute must be declined when :other is :value.', - 'different' => 'Полињата :attribute и :other треба да се различни.', - 'digits' => 'Полето :attribute треба да има :digits цифри.', - 'digits_between' => 'Полето :attribute треба да има помеѓу :min и :max цифри.', - 'dimensions' => 'Полето :attribute има невалидни димензии.', - 'distinct' => 'Полето :attribute има вредност која е дупликат.', - 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', - 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', - 'email' => 'Полето :attribute не е во валиден формат.', - 'ends_with' => 'Полето :attribute мора да завршува со една од следните вредности: :values.', - 'enum' => 'The selected :attribute is invalid.', - 'exists' => 'Полето :attribute има вредност која веќе постои.', - 'file' => 'Полето :attribute мора да биде датотека.', - 'filled' => 'Полето :attribute мора да има вредност.', - 'gt' => - array ( - 'array' => 'Полето :attribute мора да има повеке од :value елементи.', - 'file' => 'Полето :attribute мора да биде датотека поголема од :value килобајти.', - 'numeric' => 'Полето :attribute мора да биде број поголем од :value.', - 'string' => 'Полето :attribute мора да биде текст со повеќе од :value карактери.', - ), - 'gte' => - array ( - 'array' => 'Полето :attribute мора да има :value елементи или повеќе.', - 'file' => 'Полето :attribute мора да биде датотека поголема или еднаква на :value килобајти.', - 'numeric' => 'Полето :attribute мора да биде број поголем или еднаков на :value.', - 'string' => 'Полето :attribute мора да биде текст со повеќе или еднаков на :value број на карактери.', - ), - 'image' => 'Полето :attribute мора да биде слика.', - 'in' => 'Избраното поле :attribute е невалидно.', - 'in_array' => 'Полето :attribute не содржи вредност која постои во :other.', - 'integer' => 'Полето :attribute мора да биде цел број.', - 'ip' => 'Полето :attribute мора да биде валидна IP адреса.', - 'ipv4' => 'Полето :attribute мора да биде валидна IPv4 адреса.', - 'ipv6' => 'Полето :attribute мора да биде валидна IPv6 адреса.', - 'json' => 'Полето :attribute мора да биде валиден JSON објект.', - 'lowercase' => 'The :attribute must be lowercase.', - 'lt' => - array ( - 'array' => 'Полето :attribute мора да има помалку од :value елементи.', - 'file' => 'Полето :attribute мора да биде датотека помала од :value килобајти.', - 'numeric' => 'Полето :attribute мора да биде број помал од :value.', - 'string' => 'Полето :attribute мора да биде текст помал од :value број на карактери.', - ), - 'lte' => - array ( - 'array' => 'Полето :attribute мора да има :value елементи или помалку.', - 'file' => 'Полето :attribute мора да биде датотека помала или еднаква на :value килобајти.', - 'numeric' => 'Полето :attribute мора да биде број помал или еднаков на :value.', - 'string' => 'Полето :attribute мора да биде текст со помалку или еднаков на :value број на карактери.', - ), - 'mac_address' => 'The :attribute must be a valid MAC address.', - 'max' => - array ( - 'array' => 'Полето :attribute не може да има повеќе од :max елементи.', - 'file' => 'Полето :attribute мора да биде датотека не поголема од :max килобајти.', - 'numeric' => 'Полето :attribute мора да биде број не поголем од :max.', - 'string' => 'Полето :attribute мора да има не повеќе од :max карактери.', - ), - 'max_digits' => 'The :attribute must not have more than :max digits.', - 'mimes' => 'Полето :attribute мора да биде датотека од типот: :values.', - 'mimetypes' => 'Полето :attribute мора да биде датотека од типот: :values.', - 'min' => - array ( - 'array' => 'Полето :attribute мора да има минимум :min елементи.', - 'file' => 'Полето :attribute мора да биде датотека не помала од :min килобајти.', - 'numeric' => 'Полето :attribute мора да биде број не помал од :min.', - 'string' => 'Полето :attribute мора да има не помалку од :min карактери.', - ), - 'min_digits' => 'The :attribute must have at least :min digits.', - 'multiple_of' => 'Полето :attribute мора да биде повеќекратна вредност од :value', - 'not_in' => 'Избраното поле :attribute е невалидно.', - 'not_regex' => 'Полето :attribute има невалиден формат.', - 'numeric' => 'Полето :attribute мора да биде број.', - 'password' => - array ( - 'letters' => 'The :attribute must contain at least one letter.', - 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', - 'numbers' => 'The :attribute must contain at least one number.', - 'symbols' => 'The :attribute must contain at least one symbol.', - 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', - ), - 'present' => 'Полето :attribute мора да биде присутно.', - 'prohibited' => 'Во :attribute година полето е забрането.', - 'prohibited_if' => 'На :attribute поле е забрането кога :other е :value.', - 'prohibited_unless' => 'На :attribute поле е забранета освен ако не :other е во :values.', - 'prohibits' => 'The :attribute field prohibits :other from being present.', - 'regex' => 'Полето :attribute има невалиден формат.', - 'relatable' => 'Оваа :attribute може да не биде поврзана со овој ресурс.', - 'required' => 'Полето :attribute е задолжително.', - 'required_array_keys' => 'The :attribute field must contain entries for: :values.', - 'required_if' => 'Полето :attribute е задолжително кога :other е :value.', - 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', - 'required_unless' => 'Полето :attribute е задолжително освен кога :other е во :values.', - 'required_with' => 'Полето :attribute е задолжително кога е внесено :values.', - 'required_with_all' => 'Полето :attribute е задолжително кога :values се присутни.', - 'required_without' => 'Полето :attribute е задолжително кога не е присутно :values.', - 'required_without_all' => 'Полето :attribute е задолжително кога ниту една вредност од следните: :values се присутни.', - 'same' => 'Полињата :attribute и :other треба да совпаѓаат.', - 'size' => - array ( - 'array' => 'Полето :attribute мора да биде низа со :size број на елементи.', - 'file' => 'Полето :attribute мора да биде датотека со големина од :size килобајти.', - 'numeric' => 'Полето :attribute мора да биде број со вредност :size.', - 'string' => 'Полето :attribute мора да биде текст со должина од :size број на карактери.', - ), - 'starts_with' => 'Полето :attribute мора да започнува со една од следните вредности: :values.', - 'string' => 'Полето :attribute мора да биде текст.', - 'timezone' => 'Полето :attribute мора да биде валидна временска зона.', - 'unique' => 'Полето :attribute веќе постои.', - 'uploaded' => ':Attribute не е прикачен.', - 'uppercase' => 'The :attribute must be uppercase.', - 'url' => 'Полето :attribute не е во валиден формат.', - 'uuid' => 'Полето :attribute мора да биде валиден УУИД.', -); +return [ + 'accepted' => 'Полето :attribute мора да биде прифатено.', + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', + 'active_url' => 'Полето :attribute не е валиден URL.', + 'after' => 'Полето :attribute мора да биде датум после :date.', + 'after_or_equal' => 'Полето :attribute мора да биде датум кој е после или еднаков на :date.', + 'alpha' => 'Полето :attribute може да содржи само букви.', + 'alpha_dash' => 'Полето :attribute може да содржи само букви, броеви, долна црта и тире.', + 'alpha_num' => 'Полето :attribute може да содржи само букви и броеви.', + 'array' => 'Полето :attribute мора да биде низа.', + 'attached' => 'Оваа :attribute е веќе прикачен.', + 'attributes' => [ + 'address' => 'адреса', + 'age' => 'години', + 'amount' => 'amount', + 'area' => 'area', + 'available' => 'available', + 'birthday' => 'birthday', + 'body' => 'основен текст на порака', + 'city' => 'град', + 'content' => 'content', + 'country' => 'држава', + 'created_at' => 'created at', + 'creator' => 'creator', + 'current_password' => 'current password', + 'date' => 'датум', + 'date_of_birth' => 'date of birth', + 'day' => 'ден', + 'deleted_at' => 'deleted at', + 'description' => 'опис', + 'district' => 'district', + 'duration' => 'duration', + 'email' => 'е-mail адреса', + 'excerpt' => 'извадок', + 'filter' => 'filter', + 'first_name' => 'име', + 'gender' => 'пол', + 'group' => 'group', + 'hour' => 'час', + 'image' => 'image', + 'last_name' => 'презиме', + 'lesson' => 'lesson', + 'line_address_1' => 'line address 1', + 'line_address_2' => 'line address 2', + 'message' => 'порака', + 'middle_name' => 'middle name', + 'minute' => 'минута', + 'mobile' => 'мобилен', + 'month' => 'месец', + 'name' => 'име', + 'national_code' => 'national code', + 'number' => 'number', + 'password' => 'лозинка', + 'password_confirmation' => 'повтори ја лозинката', + 'phone' => 'телефон', + 'photo' => 'photo', + 'postal_code' => 'postal code', + 'price' => 'price', + 'province' => 'province', + 'recaptcha_response_field' => 'recaptcha response field', + 'remember' => 'remember', + 'restored_at' => 'restored at', + 'result_text_under_image' => 'result text under image', + 'role' => 'role', + 'second' => 'секунда', + 'sex' => 'пол', + 'short_text' => 'short text', + 'size' => 'size', + 'state' => 'state', + 'street' => 'street', + 'student' => 'student', + 'subject' => 'наслов', + 'teacher' => 'teacher', + 'terms' => 'terms', + 'test_description' => 'test description', + 'test_locale' => 'test locale', + 'test_name' => 'test name', + 'text' => 'text', + 'time' => 'време', + 'title' => 'наслов', + 'updated_at' => 'updated at', + 'username' => 'корисничко име', + 'year' => 'година', + ], + 'before' => 'Полето :attribute мора да биде датум пред :date.', + 'before_or_equal' => 'Полето :attribute мора да биде датум пред или еднаков на :date.', + 'between' => [ + 'array' => 'Полето :attribute мора да има помеѓу :min - :max елементи.', + 'file' => 'Полето :attribute мора да биде датотека со големина помеѓу :min и :max килобајти.', + 'numeric' => 'Полето :attribute мора да биде број помеѓу :min и :max.', + 'string' => 'Полето :attribute мора да биде текст со должина помеѓу :min и :max карактери.', + ], + 'boolean' => 'Полето :attribute мора да има вредност вистинито (true) или невистинито (false).', + 'confirmed' => 'Полето :attribute не е потврдено.', + 'current_password' => 'The password is incorrect.', + 'date' => 'Полето :attribute не е валиден датум.', + 'date_equals' => 'Полето :attribute мора да биде датум еднаков на :date.', + 'date_format' => 'Полето :attribute не одговара на форматот :format.', + 'declined' => 'The :attribute must be declined.', + 'declined_if' => 'The :attribute must be declined when :other is :value.', + 'different' => 'Полињата :attribute и :other треба да се различни.', + 'digits' => 'Полето :attribute треба да има :digits цифри.', + 'digits_between' => 'Полето :attribute треба да има помеѓу :min и :max цифри.', + 'dimensions' => 'Полето :attribute има невалидни димензии.', + 'distinct' => 'Полето :attribute има вредност која е дупликат.', + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', + 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', + 'email' => 'Полето :attribute не е во валиден формат.', + 'ends_with' => 'Полето :attribute мора да завршува со една од следните вредности: :values.', + 'enum' => 'The selected :attribute is invalid.', + 'exists' => 'Полето :attribute има вредност која веќе постои.', + 'file' => 'Полето :attribute мора да биде датотека.', + 'filled' => 'Полето :attribute мора да има вредност.', + 'gt' => [ + 'array' => 'Полето :attribute мора да има повеке од :value елементи.', + 'file' => 'Полето :attribute мора да биде датотека поголема од :value килобајти.', + 'numeric' => 'Полето :attribute мора да биде број поголем од :value.', + 'string' => 'Полето :attribute мора да биде текст со повеќе од :value карактери.', + ], + 'gte' => [ + 'array' => 'Полето :attribute мора да има :value елементи или повеќе.', + 'file' => 'Полето :attribute мора да биде датотека поголема или еднаква на :value килобајти.', + 'numeric' => 'Полето :attribute мора да биде број поголем или еднаков на :value.', + 'string' => 'Полето :attribute мора да биде текст со повеќе или еднаков на :value број на карактери.', + ], + 'image' => 'Полето :attribute мора да биде слика.', + 'in' => 'Избраното поле :attribute е невалидно.', + 'in_array' => 'Полето :attribute не содржи вредност која постои во :other.', + 'integer' => 'Полето :attribute мора да биде цел број.', + 'ip' => 'Полето :attribute мора да биде валидна IP адреса.', + 'ipv4' => 'Полето :attribute мора да биде валидна IPv4 адреса.', + 'ipv6' => 'Полето :attribute мора да биде валидна IPv6 адреса.', + 'json' => 'Полето :attribute мора да биде валиден JSON објект.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => 'Полето :attribute мора да има помалку од :value елементи.', + 'file' => 'Полето :attribute мора да биде датотека помала од :value килобајти.', + 'numeric' => 'Полето :attribute мора да биде број помал од :value.', + 'string' => 'Полето :attribute мора да биде текст помал од :value број на карактери.', + ], + 'lte' => [ + 'array' => 'Полето :attribute мора да има :value елементи или помалку.', + 'file' => 'Полето :attribute мора да биде датотека помала или еднаква на :value килобајти.', + 'numeric' => 'Полето :attribute мора да биде број помал или еднаков на :value.', + 'string' => 'Полето :attribute мора да биде текст со помалку или еднаков на :value број на карактери.', + ], + 'mac_address' => 'The :attribute must be a valid MAC address.', + 'max' => [ + 'array' => 'Полето :attribute не може да има повеќе од :max елементи.', + 'file' => 'Полето :attribute мора да биде датотека не поголема од :max килобајти.', + 'numeric' => 'Полето :attribute мора да биде број не поголем од :max.', + 'string' => 'Полето :attribute мора да има не повеќе од :max карактери.', + ], + 'max_digits' => 'The :attribute must not have more than :max digits.', + 'mimes' => 'Полето :attribute мора да биде датотека од типот: :values.', + 'mimetypes' => 'Полето :attribute мора да биде датотека од типот: :values.', + 'min' => [ + 'array' => 'Полето :attribute мора да има минимум :min елементи.', + 'file' => 'Полето :attribute мора да биде датотека не помала од :min килобајти.', + 'numeric' => 'Полето :attribute мора да биде број не помал од :min.', + 'string' => 'Полето :attribute мора да има не помалку од :min карактери.', + ], + 'min_digits' => 'The :attribute must have at least :min digits.', + 'multiple_of' => 'Полето :attribute мора да биде повеќекратна вредност од :value', + 'not_in' => 'Избраното поле :attribute е невалидно.', + 'not_regex' => 'Полето :attribute има невалиден формат.', + 'numeric' => 'Полето :attribute мора да биде број.', + 'password' => [ + 'letters' => 'The :attribute must contain at least one letter.', + 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', + 'numbers' => 'The :attribute must contain at least one number.', + 'symbols' => 'The :attribute must contain at least one symbol.', + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', + ], + 'present' => 'Полето :attribute мора да биде присутно.', + 'prohibited' => 'Во :attribute година полето е забрането.', + 'prohibited_if' => 'На :attribute поле е забрането кога :other е :value.', + 'prohibited_unless' => 'На :attribute поле е забранета освен ако не :other е во :values.', + 'prohibits' => 'The :attribute field prohibits :other from being present.', + 'regex' => 'Полето :attribute има невалиден формат.', + 'relatable' => 'Оваа :attribute може да не биде поврзана со овој ресурс.', + 'required' => 'Полето :attribute е задолжително.', + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', + 'required_if' => 'Полето :attribute е задолжително кога :other е :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', + 'required_unless' => 'Полето :attribute е задолжително освен кога :other е во :values.', + 'required_with' => 'Полето :attribute е задолжително кога е внесено :values.', + 'required_with_all' => 'Полето :attribute е задолжително кога :values се присутни.', + 'required_without' => 'Полето :attribute е задолжително кога не е присутно :values.', + 'required_without_all' => 'Полето :attribute е задолжително кога ниту една вредност од следните: :values се присутни.', + 'same' => 'Полињата :attribute и :other треба да совпаѓаат.', + 'size' => [ + 'array' => 'Полето :attribute мора да биде низа со :size број на елементи.', + 'file' => 'Полето :attribute мора да биде датотека со големина од :size килобајти.', + 'numeric' => 'Полето :attribute мора да биде број со вредност :size.', + 'string' => 'Полето :attribute мора да биде текст со должина од :size број на карактери.', + ], + 'starts_with' => 'Полето :attribute мора да започнува со една од следните вредности: :values.', + 'string' => 'Полето :attribute мора да биде текст.', + 'timezone' => 'Полето :attribute мора да биде валидна временска зона.', + 'unique' => 'Полето :attribute веќе постои.', + 'uploaded' => ':Attribute не е прикачен.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'Полето :attribute не е во валиден формат.', + 'uuid' => 'Полето :attribute мора да биде валиден УУИД.', +]; diff --git a/resources/lang/pl/Loading.php b/resources/lang/pl/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/pl/Loading.php +++ b/resources/lang/pl/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/pl/auth.php b/resources/lang/pl/auth.php index b3f97cf7..be747e89 100644 --- a/resources/lang/pl/auth.php +++ b/resources/lang/pl/auth.php @@ -1,7 +1,7 @@ 'Błędny login lub hasło.', - 'password' => 'Hasło jest nieprawidłowe.', - 'throttle' => 'Za dużo nieudanych prób logowania. Proszę spróbować za :seconds sekund.', -); +return [ + 'failed' => 'Błędny login lub hasło.', + 'password' => 'Hasło jest nieprawidłowe.', + 'throttle' => 'Za dużo nieudanych prób logowania. Proszę spróbować za :seconds sekund.', +]; diff --git a/resources/lang/pl/http-statuses.php b/resources/lang/pl/http-statuses.php index 23c483c0..91dfac60 100644 --- a/resources/lang/pl/http-statuses.php +++ b/resources/lang/pl/http-statuses.php @@ -1,82 +1,82 @@ 'Nieznany błąd', - 'unknownError' => 'Nieznany błąd', - 100 => 'Kontynuuj', - 101 => 'Zmieniam protokoły', - 102 => 'Procesuję', - 200 => 'OK', - 201 => 'Utworzono', - 202 => 'Zaakceptowano', - 203 => 'Informacje nieautorytatywne', - 204 => 'Brak treści', - 205 => 'Zresetuj zawartość', - 206 => 'Częściowa zawartość', - 207 => 'Wielostanowy', - 208 => 'Już zgłoszone', - 226 => 'Użyto IM', - 300 => 'Wiele możliwości', - 301 => 'Przeniesiony na stałe', - 302 => 'Znaleziono', - 303 => 'Zobacz inne', - 304 => 'Niezmodyfikowany', - 305 => 'Użyj proxy', - 307 => 'Tymczasowe przekierowanie', - 308 => 'Stałe przekierowanie', - 400 => 'Nieprawidłowe żądanie', - 401 => 'Nieautoryzowany', - 402 => 'Płatność wymagana', - 403 => 'Zabroniony', - 404 => 'Nie znaleziono strony', - 405 => 'Metoda Niedozwolona', - 406 => 'Niedopuszczalne', - 407 => 'Wymagane Uwierzytelnianie Proxy', - 408 => 'Upłynął Limit czasu żądania', - 409 => 'Konflikt', - 410 => 'Zniknął', - 411 => 'Wymagana długość', - 412 => 'Warunek wstępny nie powiódł się', - 413 => 'Ładunek zbyt duży', - 414 => 'Zbyt długi identyfikator URI', - 415 => 'Nieobsługiwany typ nośnika', - 416 => 'Zakres niezadowalający', - 417 => 'Oczekiwanie nie powiodło się', - 418 => 'Jestem czajnikiem', - 419 => 'Sesja wygasła', - 421 => 'Błędnie skierowane żądanie', - 422 => 'Podmiot Nieprzetwarzalny', - 423 => 'Zablokowany', - 424 => 'Nieudana zależność', - 425 => 'Za wcześnie', - 426 => 'Wymagana aktualizacja', - 428 => 'Wymagany warunek wstępny', - 429 => 'Zbyt wiele żądań', - 431 => 'Za duże pola nagłówka żądania', - 444 => 'Połączenie zamknięte bez odpowiedzi', - 449 => 'Spróbuj ponownie z', - 451 => 'Niedostępne ze względów prawnych', - 499 => 'Zamknięte żądanie klienta', - 500 => 'Wewnętrzny błąd serwera', - 501 => 'Nie zaimplementowano', - 502 => 'Zła brama', - 503 => 'Tryb konserwacji', - 504 => 'Przekroczenie limitu czasu bramy', - 505 => 'Wersja HTTP nie jest obsługiwana', - 506 => 'Wariant również negocjuje', - 507 => 'Niewystarczające miejsce do przechowywania', - 508 => 'Wykryto pętlę', - 509 => 'Przekroczono limit przepustowości', - 510 => 'Nie rozszerzona', - 511 => 'Wymagane Uwierzytelnianie Sieci', - 520 => 'Nieznany błąd', - 521 => 'Serwer sieciowy nie działa', - 522 => 'Przekroczono limit czasu połączenia', - 523 => 'Pochodzenie jest nieosiągalne', - 524 => 'Wystąpił limit czasu', - 525 => 'Nieudane uzgadnianie SSL', - 526 => 'Nieprawidłowy Certyfikat SSL', - 527 => 'Błąd Railguna', - 598 => 'Błąd limitu czasu odczytu sieci', - 599 => 'Błąd limitu czasu połączenia sieciowego', -); +return [ + 0 => 'Nieznany błąd', + 'unknownError' => 'Nieznany błąd', + 100 => 'Kontynuuj', + 101 => 'Zmieniam protokoły', + 102 => 'Procesuję', + 200 => 'OK', + 201 => 'Utworzono', + 202 => 'Zaakceptowano', + 203 => 'Informacje nieautorytatywne', + 204 => 'Brak treści', + 205 => 'Zresetuj zawartość', + 206 => 'Częściowa zawartość', + 207 => 'Wielostanowy', + 208 => 'Już zgłoszone', + 226 => 'Użyto IM', + 300 => 'Wiele możliwości', + 301 => 'Przeniesiony na stałe', + 302 => 'Znaleziono', + 303 => 'Zobacz inne', + 304 => 'Niezmodyfikowany', + 305 => 'Użyj proxy', + 307 => 'Tymczasowe przekierowanie', + 308 => 'Stałe przekierowanie', + 400 => 'Nieprawidłowe żądanie', + 401 => 'Nieautoryzowany', + 402 => 'Płatność wymagana', + 403 => 'Zabroniony', + 404 => 'Nie znaleziono strony', + 405 => 'Metoda Niedozwolona', + 406 => 'Niedopuszczalne', + 407 => 'Wymagane Uwierzytelnianie Proxy', + 408 => 'Upłynął Limit czasu żądania', + 409 => 'Konflikt', + 410 => 'Zniknął', + 411 => 'Wymagana długość', + 412 => 'Warunek wstępny nie powiódł się', + 413 => 'Ładunek zbyt duży', + 414 => 'Zbyt długi identyfikator URI', + 415 => 'Nieobsługiwany typ nośnika', + 416 => 'Zakres niezadowalający', + 417 => 'Oczekiwanie nie powiodło się', + 418 => 'Jestem czajnikiem', + 419 => 'Sesja wygasła', + 421 => 'Błędnie skierowane żądanie', + 422 => 'Podmiot Nieprzetwarzalny', + 423 => 'Zablokowany', + 424 => 'Nieudana zależność', + 425 => 'Za wcześnie', + 426 => 'Wymagana aktualizacja', + 428 => 'Wymagany warunek wstępny', + 429 => 'Zbyt wiele żądań', + 431 => 'Za duże pola nagłówka żądania', + 444 => 'Połączenie zamknięte bez odpowiedzi', + 449 => 'Spróbuj ponownie z', + 451 => 'Niedostępne ze względów prawnych', + 499 => 'Zamknięte żądanie klienta', + 500 => 'Wewnętrzny błąd serwera', + 501 => 'Nie zaimplementowano', + 502 => 'Zła brama', + 503 => 'Tryb konserwacji', + 504 => 'Przekroczenie limitu czasu bramy', + 505 => 'Wersja HTTP nie jest obsługiwana', + 506 => 'Wariant również negocjuje', + 507 => 'Niewystarczające miejsce do przechowywania', + 508 => 'Wykryto pętlę', + 509 => 'Przekroczono limit przepustowości', + 510 => 'Nie rozszerzona', + 511 => 'Wymagane Uwierzytelnianie Sieci', + 520 => 'Nieznany błąd', + 521 => 'Serwer sieciowy nie działa', + 522 => 'Przekroczono limit czasu połączenia', + 523 => 'Pochodzenie jest nieosiągalne', + 524 => 'Wystąpił limit czasu', + 525 => 'Nieudane uzgadnianie SSL', + 526 => 'Nieprawidłowy Certyfikat SSL', + 527 => 'Błąd Railguna', + 598 => 'Błąd limitu czasu odczytu sieci', + 599 => 'Błąd limitu czasu połączenia sieciowego', +]; diff --git a/resources/lang/pl/pagination.php b/resources/lang/pl/pagination.php index 9806e866..80eaae15 100644 --- a/resources/lang/pl/pagination.php +++ b/resources/lang/pl/pagination.php @@ -1,6 +1,6 @@ 'Następna »', - 'previous' => '« Poprzednia', -); +return [ + 'next' => 'Następna »', + 'previous' => '« Poprzednia', +]; diff --git a/resources/lang/pl/passwords.php b/resources/lang/pl/passwords.php index e0f44a02..f97bcb25 100644 --- a/resources/lang/pl/passwords.php +++ b/resources/lang/pl/passwords.php @@ -1,9 +1,9 @@ 'Hasło zostało zresetowane!', - 'sent' => 'Przypomnienie hasła zostało wysłane!', - 'throttled' => 'Proszę zaczekać zanim spróbujesz ponownie.', - 'token' => 'Token resetowania hasła jest nieprawidłowy.', - 'user' => 'Nie znaleziono użytkownika z takim adresem e-mail.', -); +return [ + 'reset' => 'Hasło zostało zresetowane!', + 'sent' => 'Przypomnienie hasła zostało wysłane!', + 'throttled' => 'Proszę zaczekać zanim spróbujesz ponownie.', + 'token' => 'Token resetowania hasła jest nieprawidłowy.', + 'user' => 'Nie znaleziono użytkownika z takim adresem e-mail.', +]; diff --git a/resources/lang/pl/trans.php b/resources/lang/pl/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/pl/trans.php +++ b/resources/lang/pl/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/pl/validation.php b/resources/lang/pl/validation.php index fb97de7e..dc29a7d3 100644 --- a/resources/lang/pl/validation.php +++ b/resources/lang/pl/validation.php @@ -1,218 +1,208 @@ 'Pole :attribute musi zostać zaakceptowane.', - 'accepted_if' => 'Pole :attribute musi zostać zaakceptowane gdy :other ma wartość :value.', - 'active_url' => 'Pole :attribute jest nieprawidłowym adresem URL.', - 'after' => 'Pole :attribute musi być datą późniejszą od :date.', - 'after_or_equal' => 'Pole :attribute musi być datą nie wcześniejszą niż :date.', - 'alpha' => 'Pole :attribute może zawierać jedynie litery.', - 'alpha_dash' => 'Pole :attribute może zawierać jedynie litery, cyfry i myślniki.', - 'alpha_num' => 'Pole :attribute może zawierać jedynie litery i cyfry.', - 'array' => 'Pole :attribute musi być tablicą.', - 'attached' => 'Pole :attribute jest już dołączony.', - 'attributes' => - array ( - 'address' => 'adres', - 'age' => 'wiek', - 'amount' => 'ilość', - 'area' => 'obszar', - 'available' => 'dostępny', - 'birthday' => 'urodziny', - 'body' => 'treść', - 'city' => 'miasto', - 'content' => 'zawartość', - 'country' => 'kraj', - 'created_at' => 'utworzono', - 'creator' => 'twórca', - 'current_password' => 'aktualne hasło', - 'date' => 'data', - 'date_of_birth' => 'data urodzenia', - 'day' => 'dzień', - 'deleted_at' => 'skasowano', - 'description' => 'opis', - 'district' => 'dzielnica', - 'duration' => 'czas trwania', - 'email' => 'adres e-mail', - 'excerpt' => 'wyjątek', - 'filter' => 'filtr', - 'first_name' => 'imię', - 'gender' => 'płeć', - 'group' => 'grupa', - 'hour' => 'godzina', - 'image' => 'obrazek', - 'last_name' => 'nazwisko', - 'lesson' => 'lekcja', - 'line_address_1' => 'adres 1', - 'line_address_2' => 'adres 2', - 'message' => 'wiadomość', - 'middle_name' => 'drugie imię', - 'minute' => 'minuta', - 'mobile' => 'numer telefonu komórkowego', - 'month' => 'miesiąc', - 'name' => 'nazwa', - 'national_code' => 'kod kraju', - 'number' => 'numer', - 'password' => 'hasło', - 'password_confirmation' => 'potwierdzenie hasła', - 'phone' => 'numer telefonu', - 'photo' => 'zdjęcie', - 'postal_code' => 'kod pocztowy', - 'price' => 'cena', - 'province' => 'prowincja', - 'recaptcha_response_field' => 'pole odpowiedzi recaptcha', - 'remember' => 'zapamiętaj', - 'restored_at' => 'odtworzono', - 'result_text_under_image' => 'wynikowy tekst pod obrazkiem', - 'role' => 'rola', - 'second' => 'sekunda', - 'sex' => 'płeć', - 'short_text' => 'krótki tekst', - 'size' => 'rozmiar', - 'state' => 'stan', - 'street' => 'ulica', - 'student' => 'uczeń', - 'subject' => 'temat', - 'teacher' => 'nauczyciel', - 'terms' => 'warunki', - 'test_description' => 'testowy opis', - 'test_locale' => 'testowa lokalizacja', - 'test_name' => 'testowe imię', - 'text' => 'tekst', - 'time' => 'czas', - 'title' => 'tytuł', - 'updated_at' => 'zaktualizowano', - 'username' => 'nazwa użytkownika', - 'year' => 'rok', - ), - 'before' => 'Pole :attribute musi być datą wcześniejszą od :date.', - 'before_or_equal' => 'Pole :attribute musi być datą nie późniejszą niż :date.', - 'between' => - array ( - 'array' => 'Pole :attribute musi składać się z :min - :max elementów.', - 'file' => 'Pole :attribute musi zawierać się w granicach :min - :max kilobajtów.', - 'numeric' => 'Pole :attribute musi zawierać się w granicach :min - :max.', - 'string' => 'Pole :attribute musi zawierać się w granicach :min - :max znaków.', - ), - 'boolean' => 'Pole :attribute musi mieć wartość logiczną prawda albo fałsz.', - 'confirmed' => 'Potwierdzenie pola :attribute nie zgadza się.', - 'current_password' => 'Hasło jest nieprawidłowe.', - 'date' => 'Pole :attribute nie jest prawidłową datą.', - 'date_equals' => 'Pole :attribute musi być datą równą :date.', - 'date_format' => 'Pole :attribute nie jest w formacie :format.', - 'declined' => 'Pole :attribute musi zostać odrzucony.', - 'declined_if' => 'Pole :attribute musi zostać odrzucony, gdy :other ma wartość :value.', - 'different' => 'Pole :attribute oraz :other muszą się różnić.', - 'digits' => 'Pole :attribute musi składać się z :digits cyfr.', - 'digits_between' => 'Pole :attribute musi mieć od :min do :max cyfr.', - 'dimensions' => 'Pole :attribute ma niepoprawne wymiary.', - 'distinct' => 'Pole :attribute ma zduplikowane wartości.', - 'doesnt_end_with' => 'Pole :attribute nie może kończyć się jednym z następujących wartości: :values.', - 'doesnt_start_with' => 'Pole :attribute nie może zaczynać się od jednego z następujących wartości: :values.', - 'email' => 'Pole :attribute nie jest poprawnym adresem e-mail.', - 'ends_with' => 'Pole :attribute musi kończyć się jedną z następujących wartości: :values.', - 'enum' => 'Pole :attribute ma niepoprawną wartość.', - 'exists' => 'Zaznaczone pole :attribute jest nieprawidłowe.', - 'file' => 'Pole :attribute musi być plikiem.', - 'filled' => 'Pole :attribute nie może być puste.', - 'gt' => - array ( - 'array' => 'Pole :attribute musi mieć więcej niż :value elementów.', - 'file' => 'Pole :attribute musi być większe niż :value kilobajtów.', - 'numeric' => 'Pole :attribute musi być większe niż :value.', - 'string' => 'Pole :attribute musi być dłuższe niż :value znaków.', - ), - 'gte' => - array ( - 'array' => 'Pole :attribute musi mieć :value lub więcej elementów.', - 'file' => 'Pole :attribute musi być większe lub równe :value kilobajtów.', - 'numeric' => 'Pole :attribute musi być większe lub równe :value.', - 'string' => 'Pole :attribute musi być dłuższe lub równe :value znaków.', - ), - 'image' => 'Pole :attribute musi być obrazkiem.', - 'in' => 'Zaznaczony element :attribute jest nieprawidłowy.', - 'in_array' => 'Pole :attribute nie znajduje się w :other.', - 'integer' => 'Pole :attribute musi być liczbą całkowitą.', - 'ip' => 'Pole :attribute musi być prawidłowym adresem IP.', - 'ipv4' => 'Pole :attribute musi być prawidłowym adresem IPv4.', - 'ipv6' => 'Pole :attribute musi być prawidłowym adresem IPv6.', - 'json' => 'Pole :attribute musi być poprawnym ciągiem znaków JSON.', - 'lowercase' => 'The :attribute must be lowercase.', - 'lt' => - array ( - 'array' => 'Pole :attribute musi mieć mniej niż :value elementów.', - 'file' => 'Pole :attribute musi być mniejsze niż :value kilobajtów.', - 'numeric' => 'Pole :attribute musi być mniejsze niż :value.', - 'string' => 'Pole :attribute musi być krótsze niż :value znaków.', - ), - 'lte' => - array ( - 'array' => 'Pole :attribute musi mieć :value lub mniej elementów.', - 'file' => 'Pole :attribute musi być mniejsze lub równe :value kilobajtów.', - 'numeric' => 'Pole :attribute musi być mniejsze lub równe :value.', - 'string' => 'Pole :attribute musi być krótsze lub równe :value znaków.', - ), - 'mac_address' => 'Pole :attribute musi być prawidłowym adresem MAC.', - 'max' => - array ( - 'array' => 'Pole :attribute nie może mieć więcej niż :max elementów.', - 'file' => 'Pole :attribute nie może być większe niż :max kilobajtów.', - 'numeric' => 'Pole :attribute nie może być większe niż :max.', - 'string' => 'Pole :attribute nie może być dłuższe niż :max znaków.', - ), - 'max_digits' => 'Pole :attribute nie może mieć więcej niż :max cyfr.', - 'mimes' => 'Pole :attribute musi być plikiem typu :values.', - 'mimetypes' => 'Pole :attribute musi być plikiem typu :values.', - 'min' => - array ( - 'array' => 'Pole :attribute musi mieć przynajmniej :min elementów.', - 'file' => 'Pole :attribute musi mieć przynajmniej :min kilobajtów.', - 'numeric' => 'Pole :attribute musi być nie mniejsze od :min.', - 'string' => 'Pole :attribute musi mieć przynajmniej :min znaków.', - ), - 'min_digits' => 'Pole :attribute musi mieć co najmniej :min cyfr.', - 'multiple_of' => 'Pole :attribute musi być wielokrotnością wartości :value', - 'not_in' => 'Zaznaczony :attribute jest nieprawidłowy.', - 'not_regex' => 'Format pola :attribute jest nieprawidłowy.', - 'numeric' => 'Pole :attribute musi być liczbą.', - 'password' => - array ( - 'letters' => 'Pole :attribute musi zawierać przynajmniej jedną literę.', - 'mixed' => 'Pole :attribute musi zawierać przynajmniej jedną wielką i jedną małą literę.', - 'numbers' => 'Pole :attribute musi zawierać przynajmniej jedną liczbę.', - 'symbols' => 'Pole :attribute musi zawierać przynajmniej jeden symbol.', - 'uncompromised' => 'Podany :attribute pojawił się w wycieku danych. Proszę wybrać inną wartość :attribute.', - ), - 'present' => 'Pole :attribute musi być obecne.', - 'prohibited' => 'Pole :attribute jest zabronione.', - 'prohibited_if' => 'Pole :attribute jest zabronione, gdy :other to :value.', - 'prohibited_unless' => 'Pole :attribute jest zabronione, chyba że :other jest w :values.', - 'prohibits' => 'Pole :attribute zabrania obecności :other.', - 'regex' => 'Format pola :attribute jest nieprawidłowy.', - 'relatable' => 'Pole :attribute nie może być powiązany z tym zasobem.', - 'required' => 'Pole :attribute jest wymagane.', - 'required_array_keys' => 'Pole :attribute musi zawierać wartości: :values.', - 'required_if' => 'Pole :attribute jest wymagane gdy :other ma wartość :value.', - 'required_if_accepted' => 'To pole jest wymagane gdy :other jest zaakceptowane.', - 'required_unless' => 'Pole :attribute jest wymagane jeżeli :other nie znajduje się w :values.', - 'required_with' => 'Pole :attribute jest wymagane gdy :values jest obecny.', - 'required_with_all' => 'Pole :attribute jest wymagane gdy wszystkie :values są obecne.', - 'required_without' => 'Pole :attribute jest wymagane gdy :values nie jest obecny.', - 'required_without_all' => 'Pole :attribute jest wymagane gdy żadne z :values nie są obecne.', - 'same' => 'Pole :attribute i :other muszą być takie same.', - 'size' => - array ( - 'array' => 'Pole :attribute musi zawierać :size elementów.', - 'file' => 'Pole :attribute musi mieć :size kilobajtów.', - 'numeric' => 'Pole :attribute musi mieć :size.', - 'string' => 'Pole :attribute musi mieć :size znaków.', - ), - 'starts_with' => 'Pole :attribute musi zaczynać się jedną z następujących wartości: :values.', - 'string' => 'Pole :attribute musi być ciągiem znaków.', - 'timezone' => 'Pole :attribute musi być prawidłową strefą czasową.', - 'unique' => 'Taki :attribute już występuje.', - 'uploaded' => 'Nie udało się wgrać pliku :attribute.', - 'uppercase' => 'The :attribute must be uppercase.', - 'url' => 'Format pola :attribute jest nieprawidłowy.', - 'uuid' => 'Pole :attribute musi być poprawnym identyfikatorem UUID.', -); +return [ + 'accepted' => 'Pole :attribute musi zostać zaakceptowane.', + 'accepted_if' => 'Pole :attribute musi zostać zaakceptowane gdy :other ma wartość :value.', + 'active_url' => 'Pole :attribute jest nieprawidłowym adresem URL.', + 'after' => 'Pole :attribute musi być datą późniejszą od :date.', + 'after_or_equal' => 'Pole :attribute musi być datą nie wcześniejszą niż :date.', + 'alpha' => 'Pole :attribute może zawierać jedynie litery.', + 'alpha_dash' => 'Pole :attribute może zawierać jedynie litery, cyfry i myślniki.', + 'alpha_num' => 'Pole :attribute może zawierać jedynie litery i cyfry.', + 'array' => 'Pole :attribute musi być tablicą.', + 'attached' => 'Pole :attribute jest już dołączony.', + 'attributes' => [ + 'address' => 'adres', + 'age' => 'wiek', + 'amount' => 'ilość', + 'area' => 'obszar', + 'available' => 'dostępny', + 'birthday' => 'urodziny', + 'body' => 'treść', + 'city' => 'miasto', + 'content' => 'zawartość', + 'country' => 'kraj', + 'created_at' => 'utworzono', + 'creator' => 'twórca', + 'current_password' => 'aktualne hasło', + 'date' => 'data', + 'date_of_birth' => 'data urodzenia', + 'day' => 'dzień', + 'deleted_at' => 'skasowano', + 'description' => 'opis', + 'district' => 'dzielnica', + 'duration' => 'czas trwania', + 'email' => 'adres e-mail', + 'excerpt' => 'wyjątek', + 'filter' => 'filtr', + 'first_name' => 'imię', + 'gender' => 'płeć', + 'group' => 'grupa', + 'hour' => 'godzina', + 'image' => 'obrazek', + 'last_name' => 'nazwisko', + 'lesson' => 'lekcja', + 'line_address_1' => 'adres 1', + 'line_address_2' => 'adres 2', + 'message' => 'wiadomość', + 'middle_name' => 'drugie imię', + 'minute' => 'minuta', + 'mobile' => 'numer telefonu komórkowego', + 'month' => 'miesiąc', + 'name' => 'nazwa', + 'national_code' => 'kod kraju', + 'number' => 'numer', + 'password' => 'hasło', + 'password_confirmation' => 'potwierdzenie hasła', + 'phone' => 'numer telefonu', + 'photo' => 'zdjęcie', + 'postal_code' => 'kod pocztowy', + 'price' => 'cena', + 'province' => 'prowincja', + 'recaptcha_response_field' => 'pole odpowiedzi recaptcha', + 'remember' => 'zapamiętaj', + 'restored_at' => 'odtworzono', + 'result_text_under_image' => 'wynikowy tekst pod obrazkiem', + 'role' => 'rola', + 'second' => 'sekunda', + 'sex' => 'płeć', + 'short_text' => 'krótki tekst', + 'size' => 'rozmiar', + 'state' => 'stan', + 'street' => 'ulica', + 'student' => 'uczeń', + 'subject' => 'temat', + 'teacher' => 'nauczyciel', + 'terms' => 'warunki', + 'test_description' => 'testowy opis', + 'test_locale' => 'testowa lokalizacja', + 'test_name' => 'testowe imię', + 'text' => 'tekst', + 'time' => 'czas', + 'title' => 'tytuł', + 'updated_at' => 'zaktualizowano', + 'username' => 'nazwa użytkownika', + 'year' => 'rok', + ], + 'before' => 'Pole :attribute musi być datą wcześniejszą od :date.', + 'before_or_equal' => 'Pole :attribute musi być datą nie późniejszą niż :date.', + 'between' => [ + 'array' => 'Pole :attribute musi składać się z :min - :max elementów.', + 'file' => 'Pole :attribute musi zawierać się w granicach :min - :max kilobajtów.', + 'numeric' => 'Pole :attribute musi zawierać się w granicach :min - :max.', + 'string' => 'Pole :attribute musi zawierać się w granicach :min - :max znaków.', + ], + 'boolean' => 'Pole :attribute musi mieć wartość logiczną prawda albo fałsz.', + 'confirmed' => 'Potwierdzenie pola :attribute nie zgadza się.', + 'current_password' => 'Hasło jest nieprawidłowe.', + 'date' => 'Pole :attribute nie jest prawidłową datą.', + 'date_equals' => 'Pole :attribute musi być datą równą :date.', + 'date_format' => 'Pole :attribute nie jest w formacie :format.', + 'declined' => 'Pole :attribute musi zostać odrzucony.', + 'declined_if' => 'Pole :attribute musi zostać odrzucony, gdy :other ma wartość :value.', + 'different' => 'Pole :attribute oraz :other muszą się różnić.', + 'digits' => 'Pole :attribute musi składać się z :digits cyfr.', + 'digits_between' => 'Pole :attribute musi mieć od :min do :max cyfr.', + 'dimensions' => 'Pole :attribute ma niepoprawne wymiary.', + 'distinct' => 'Pole :attribute ma zduplikowane wartości.', + 'doesnt_end_with' => 'Pole :attribute nie może kończyć się jednym z następujących wartości: :values.', + 'doesnt_start_with' => 'Pole :attribute nie może zaczynać się od jednego z następujących wartości: :values.', + 'email' => 'Pole :attribute nie jest poprawnym adresem e-mail.', + 'ends_with' => 'Pole :attribute musi kończyć się jedną z następujących wartości: :values.', + 'enum' => 'Pole :attribute ma niepoprawną wartość.', + 'exists' => 'Zaznaczone pole :attribute jest nieprawidłowe.', + 'file' => 'Pole :attribute musi być plikiem.', + 'filled' => 'Pole :attribute nie może być puste.', + 'gt' => [ + 'array' => 'Pole :attribute musi mieć więcej niż :value elementów.', + 'file' => 'Pole :attribute musi być większe niż :value kilobajtów.', + 'numeric' => 'Pole :attribute musi być większe niż :value.', + 'string' => 'Pole :attribute musi być dłuższe niż :value znaków.', + ], + 'gte' => [ + 'array' => 'Pole :attribute musi mieć :value lub więcej elementów.', + 'file' => 'Pole :attribute musi być większe lub równe :value kilobajtów.', + 'numeric' => 'Pole :attribute musi być większe lub równe :value.', + 'string' => 'Pole :attribute musi być dłuższe lub równe :value znaków.', + ], + 'image' => 'Pole :attribute musi być obrazkiem.', + 'in' => 'Zaznaczony element :attribute jest nieprawidłowy.', + 'in_array' => 'Pole :attribute nie znajduje się w :other.', + 'integer' => 'Pole :attribute musi być liczbą całkowitą.', + 'ip' => 'Pole :attribute musi być prawidłowym adresem IP.', + 'ipv4' => 'Pole :attribute musi być prawidłowym adresem IPv4.', + 'ipv6' => 'Pole :attribute musi być prawidłowym adresem IPv6.', + 'json' => 'Pole :attribute musi być poprawnym ciągiem znaków JSON.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => 'Pole :attribute musi mieć mniej niż :value elementów.', + 'file' => 'Pole :attribute musi być mniejsze niż :value kilobajtów.', + 'numeric' => 'Pole :attribute musi być mniejsze niż :value.', + 'string' => 'Pole :attribute musi być krótsze niż :value znaków.', + ], + 'lte' => [ + 'array' => 'Pole :attribute musi mieć :value lub mniej elementów.', + 'file' => 'Pole :attribute musi być mniejsze lub równe :value kilobajtów.', + 'numeric' => 'Pole :attribute musi być mniejsze lub równe :value.', + 'string' => 'Pole :attribute musi być krótsze lub równe :value znaków.', + ], + 'mac_address' => 'Pole :attribute musi być prawidłowym adresem MAC.', + 'max' => [ + 'array' => 'Pole :attribute nie może mieć więcej niż :max elementów.', + 'file' => 'Pole :attribute nie może być większe niż :max kilobajtów.', + 'numeric' => 'Pole :attribute nie może być większe niż :max.', + 'string' => 'Pole :attribute nie może być dłuższe niż :max znaków.', + ], + 'max_digits' => 'Pole :attribute nie może mieć więcej niż :max cyfr.', + 'mimes' => 'Pole :attribute musi być plikiem typu :values.', + 'mimetypes' => 'Pole :attribute musi być plikiem typu :values.', + 'min' => [ + 'array' => 'Pole :attribute musi mieć przynajmniej :min elementów.', + 'file' => 'Pole :attribute musi mieć przynajmniej :min kilobajtów.', + 'numeric' => 'Pole :attribute musi być nie mniejsze od :min.', + 'string' => 'Pole :attribute musi mieć przynajmniej :min znaków.', + ], + 'min_digits' => 'Pole :attribute musi mieć co najmniej :min cyfr.', + 'multiple_of' => 'Pole :attribute musi być wielokrotnością wartości :value', + 'not_in' => 'Zaznaczony :attribute jest nieprawidłowy.', + 'not_regex' => 'Format pola :attribute jest nieprawidłowy.', + 'numeric' => 'Pole :attribute musi być liczbą.', + 'password' => [ + 'letters' => 'Pole :attribute musi zawierać przynajmniej jedną literę.', + 'mixed' => 'Pole :attribute musi zawierać przynajmniej jedną wielką i jedną małą literę.', + 'numbers' => 'Pole :attribute musi zawierać przynajmniej jedną liczbę.', + 'symbols' => 'Pole :attribute musi zawierać przynajmniej jeden symbol.', + 'uncompromised' => 'Podany :attribute pojawił się w wycieku danych. Proszę wybrać inną wartość :attribute.', + ], + 'present' => 'Pole :attribute musi być obecne.', + 'prohibited' => 'Pole :attribute jest zabronione.', + 'prohibited_if' => 'Pole :attribute jest zabronione, gdy :other to :value.', + 'prohibited_unless' => 'Pole :attribute jest zabronione, chyba że :other jest w :values.', + 'prohibits' => 'Pole :attribute zabrania obecności :other.', + 'regex' => 'Format pola :attribute jest nieprawidłowy.', + 'relatable' => 'Pole :attribute nie może być powiązany z tym zasobem.', + 'required' => 'Pole :attribute jest wymagane.', + 'required_array_keys' => 'Pole :attribute musi zawierać wartości: :values.', + 'required_if' => 'Pole :attribute jest wymagane gdy :other ma wartość :value.', + 'required_if_accepted' => 'To pole jest wymagane gdy :other jest zaakceptowane.', + 'required_unless' => 'Pole :attribute jest wymagane jeżeli :other nie znajduje się w :values.', + 'required_with' => 'Pole :attribute jest wymagane gdy :values jest obecny.', + 'required_with_all' => 'Pole :attribute jest wymagane gdy wszystkie :values są obecne.', + 'required_without' => 'Pole :attribute jest wymagane gdy :values nie jest obecny.', + 'required_without_all' => 'Pole :attribute jest wymagane gdy żadne z :values nie są obecne.', + 'same' => 'Pole :attribute i :other muszą być takie same.', + 'size' => [ + 'array' => 'Pole :attribute musi zawierać :size elementów.', + 'file' => 'Pole :attribute musi mieć :size kilobajtów.', + 'numeric' => 'Pole :attribute musi mieć :size.', + 'string' => 'Pole :attribute musi mieć :size znaków.', + ], + 'starts_with' => 'Pole :attribute musi zaczynać się jedną z następujących wartości: :values.', + 'string' => 'Pole :attribute musi być ciągiem znaków.', + 'timezone' => 'Pole :attribute musi być prawidłową strefą czasową.', + 'unique' => 'Taki :attribute już występuje.', + 'uploaded' => 'Nie udało się wgrać pliku :attribute.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'Format pola :attribute jest nieprawidłowy.', + 'uuid' => 'Pole :attribute musi być poprawnym identyfikatorem UUID.', +]; diff --git a/resources/lang/pt/Loading.php b/resources/lang/pt/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/pt/Loading.php +++ b/resources/lang/pt/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/pt/auth.php b/resources/lang/pt/auth.php index d848736d..4c43bccf 100644 --- a/resources/lang/pt/auth.php +++ b/resources/lang/pt/auth.php @@ -1,7 +1,7 @@ 'As credenciais indicadas não coincidem com as registadas no sistema.', - 'password' => 'A password está errada.', - 'throttle' => 'O número limite de tentativas de login foi atingido. Por favor tente novamente dentro de :seconds segundos.', -); +return [ + 'failed' => 'As credenciais indicadas não coincidem com as registadas no sistema.', + 'password' => 'A password está errada.', + 'throttle' => 'O número limite de tentativas de login foi atingido. Por favor tente novamente dentro de :seconds segundos.', +]; diff --git a/resources/lang/pt/http-statuses.php b/resources/lang/pt/http-statuses.php index 89948042..47be74d4 100644 --- a/resources/lang/pt/http-statuses.php +++ b/resources/lang/pt/http-statuses.php @@ -1,82 +1,82 @@ 'Unknown Error', - 'unknownError' => 'Unknown Error', - 100 => 'Continue', - 101 => 'Switching Protocols', - 102 => 'Processing', - 200 => 'OK', - 201 => 'Created', - 202 => 'Accepted', - 203 => 'Non-Authoritative Information', - 204 => 'No Content', - 205 => 'Reset Content', - 206 => 'Partial Content', - 207 => 'Multi-Status', - 208 => 'Already Reported', - 226 => 'IM Used', - 300 => 'Multiple Choices', - 301 => 'Moved Permanently', - 302 => 'Found', - 303 => 'See Other', - 304 => 'Not Modified', - 305 => 'Use Proxy', - 307 => 'Temporary Redirect', - 308 => 'Permanent Redirect', - 400 => 'Bad Request', - 401 => 'Unauthorized', - 402 => 'Payment Required', - 403 => 'Forbidden', - 404 => 'Not Found', - 405 => 'Method Not Allowed', - 406 => 'Not Acceptable', - 407 => 'Proxy Authentication Required', - 408 => 'Request Timeout', - 409 => 'Conflict', - 410 => 'Gone', - 411 => 'Length Required', - 412 => 'Precondition Failed', - 413 => 'Payload Too Large', - 414 => 'URI Too Long', - 415 => 'Unsupported Media Type', - 416 => 'Range Not Satisfiable', - 417 => 'Expectation Failed', - 418 => 'I\'m a teapot', - 419 => 'Session Has Expired', - 421 => 'Misdirected Request', - 422 => 'Unprocessable Entity', - 423 => 'Locked', - 424 => 'Failed Dependency', - 425 => 'Too Early', - 426 => 'Upgrade Required', - 428 => 'Precondition Required', - 429 => 'Too Many Requests', - 431 => 'Request Header Fields Too Large', - 444 => 'Connection Closed Without Response', - 449 => 'Retry With', - 451 => 'Unavailable For Legal Reasons', - 499 => 'Client Closed Request', - 500 => 'Internal Server Error', - 501 => 'Not Implemented', - 502 => 'Bad Gateway', - 503 => 'Maintenance Mode', - 504 => 'Gateway Timeout', - 505 => 'HTTP Version Not Supported', - 506 => 'Variant Also Negotiates', - 507 => 'Insufficient Storage', - 508 => 'Loop Detected', - 509 => 'Bandwidth Limit Exceeded', - 510 => 'Not Extended', - 511 => 'Network Authentication Required', - 520 => 'Unknown Error', - 521 => 'Web Server is Down', - 522 => 'Connection Timed Out', - 523 => 'Origin Is Unreachable', - 524 => 'A Timeout Occurred', - 525 => 'SSL Handshake Failed', - 526 => 'Invalid SSL Certificate', - 527 => 'Railgun Error', - 598 => 'Network Read Timeout Error', - 599 => 'Network Connect Timeout Error', -); +return [ + 0 => 'Unknown Error', + 'unknownError' => 'Unknown Error', + 100 => 'Continue', + 101 => 'Switching Protocols', + 102 => 'Processing', + 200 => 'OK', + 201 => 'Created', + 202 => 'Accepted', + 203 => 'Non-Authoritative Information', + 204 => 'No Content', + 205 => 'Reset Content', + 206 => 'Partial Content', + 207 => 'Multi-Status', + 208 => 'Already Reported', + 226 => 'IM Used', + 300 => 'Multiple Choices', + 301 => 'Moved Permanently', + 302 => 'Found', + 303 => 'See Other', + 304 => 'Not Modified', + 305 => 'Use Proxy', + 307 => 'Temporary Redirect', + 308 => 'Permanent Redirect', + 400 => 'Bad Request', + 401 => 'Unauthorized', + 402 => 'Payment Required', + 403 => 'Forbidden', + 404 => 'Not Found', + 405 => 'Method Not Allowed', + 406 => 'Not Acceptable', + 407 => 'Proxy Authentication Required', + 408 => 'Request Timeout', + 409 => 'Conflict', + 410 => 'Gone', + 411 => 'Length Required', + 412 => 'Precondition Failed', + 413 => 'Payload Too Large', + 414 => 'URI Too Long', + 415 => 'Unsupported Media Type', + 416 => 'Range Not Satisfiable', + 417 => 'Expectation Failed', + 418 => 'I\'m a teapot', + 419 => 'Session Has Expired', + 421 => 'Misdirected Request', + 422 => 'Unprocessable Entity', + 423 => 'Locked', + 424 => 'Failed Dependency', + 425 => 'Too Early', + 426 => 'Upgrade Required', + 428 => 'Precondition Required', + 429 => 'Too Many Requests', + 431 => 'Request Header Fields Too Large', + 444 => 'Connection Closed Without Response', + 449 => 'Retry With', + 451 => 'Unavailable For Legal Reasons', + 499 => 'Client Closed Request', + 500 => 'Internal Server Error', + 501 => 'Not Implemented', + 502 => 'Bad Gateway', + 503 => 'Maintenance Mode', + 504 => 'Gateway Timeout', + 505 => 'HTTP Version Not Supported', + 506 => 'Variant Also Negotiates', + 507 => 'Insufficient Storage', + 508 => 'Loop Detected', + 509 => 'Bandwidth Limit Exceeded', + 510 => 'Not Extended', + 511 => 'Network Authentication Required', + 520 => 'Unknown Error', + 521 => 'Web Server is Down', + 522 => 'Connection Timed Out', + 523 => 'Origin Is Unreachable', + 524 => 'A Timeout Occurred', + 525 => 'SSL Handshake Failed', + 526 => 'Invalid SSL Certificate', + 527 => 'Railgun Error', + 598 => 'Network Read Timeout Error', + 599 => 'Network Connect Timeout Error', +]; diff --git a/resources/lang/pt/pagination.php b/resources/lang/pt/pagination.php index 57d45728..3ae9794e 100644 --- a/resources/lang/pt/pagination.php +++ b/resources/lang/pt/pagination.php @@ -1,6 +1,6 @@ 'Próxima »', - 'previous' => '« Anterior', -); +return [ + 'next' => 'Próxima »', + 'previous' => '« Anterior', +]; diff --git a/resources/lang/pt/passwords.php b/resources/lang/pt/passwords.php index 1389d0c1..6554eb2a 100644 --- a/resources/lang/pt/passwords.php +++ b/resources/lang/pt/passwords.php @@ -1,9 +1,9 @@ 'A palavra-passe foi redefinida!', - 'sent' => 'O lembrete para a palavra-passe foi enviado!', - 'throttled' => 'Por favor aguarde, antes de tentar novamente.', - 'token' => 'Este código de recuperação da palavra-passe é inválido.', - 'user' => 'Não existe nenhum utilizador com o e-mail indicado.', -); +return [ + 'reset' => 'A palavra-passe foi redefinida!', + 'sent' => 'O lembrete para a palavra-passe foi enviado!', + 'throttled' => 'Por favor aguarde, antes de tentar novamente.', + 'token' => 'Este código de recuperação da palavra-passe é inválido.', + 'user' => 'Não existe nenhum utilizador com o e-mail indicado.', +]; diff --git a/resources/lang/pt/trans.php b/resources/lang/pt/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/pt/trans.php +++ b/resources/lang/pt/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/pt/validation.php b/resources/lang/pt/validation.php index c648d8d9..7d332a15 100644 --- a/resources/lang/pt/validation.php +++ b/resources/lang/pt/validation.php @@ -1,218 +1,208 @@ 'O campo :attribute deverá ser aceite.', - 'accepted_if' => 'O :attribute deve ser aceite quando o :other é :value.', - 'active_url' => 'O campo :attribute não contém um URL válido.', - 'after' => 'O campo :attribute deverá conter uma data posterior a :date.', - 'after_or_equal' => 'O campo :attribute deverá conter uma data posterior ou igual a :date.', - 'alpha' => 'O campo :attribute deverá conter apenas letras.', - 'alpha_dash' => 'O campo :attribute deverá conter apenas letras, números e traços.', - 'alpha_num' => 'O campo :attribute deverá conter apenas letras e números .', - 'array' => 'O campo :attribute deverá conter uma coleção de elementos.', - 'attached' => 'Este :attribute já está anexado.', - 'attributes' => - array ( - 'address' => 'address', - 'age' => 'age', - 'amount' => 'amount', - 'area' => 'area', - 'available' => 'available', - 'birthday' => 'birthday', - 'body' => 'body', - 'city' => 'city', - 'content' => 'content', - 'country' => 'country', - 'created_at' => 'created at', - 'creator' => 'creator', - 'current_password' => 'current password', - 'date' => 'date', - 'date_of_birth' => 'date of birth', - 'day' => 'day', - 'deleted_at' => 'deleted at', - 'description' => 'description', - 'district' => 'district', - 'duration' => 'duration', - 'email' => 'email', - 'excerpt' => 'excerpt', - 'filter' => 'filter', - 'first_name' => 'first name', - 'gender' => 'gender', - 'group' => 'group', - 'hour' => 'hour', - 'image' => 'image', - 'last_name' => 'last name', - 'lesson' => 'lesson', - 'line_address_1' => 'line address 1', - 'line_address_2' => 'line address 2', - 'message' => 'message', - 'middle_name' => 'middle name', - 'minute' => 'minute', - 'mobile' => 'mobile', - 'month' => 'month', - 'name' => 'name', - 'national_code' => 'national code', - 'number' => 'number', - 'password' => 'password', - 'password_confirmation' => 'password confirmation', - 'phone' => 'phone', - 'photo' => 'photo', - 'postal_code' => 'postal code', - 'price' => 'price', - 'province' => 'province', - 'recaptcha_response_field' => 'recaptcha response field', - 'remember' => 'remember', - 'restored_at' => 'restored at', - 'result_text_under_image' => 'result text under image', - 'role' => 'role', - 'second' => 'second', - 'sex' => 'sex', - 'short_text' => 'short text', - 'size' => 'size', - 'state' => 'state', - 'street' => 'street', - 'student' => 'student', - 'subject' => 'subject', - 'teacher' => 'teacher', - 'terms' => 'terms', - 'test_description' => 'test description', - 'test_locale' => 'test locale', - 'test_name' => 'test name', - 'text' => 'text', - 'time' => 'time', - 'title' => 'title', - 'updated_at' => 'updated at', - 'username' => 'username', - 'year' => 'year', - ), - 'before' => 'O campo :attribute deverá conter uma data anterior a :date.', - 'before_or_equal' => 'O Campo :attribute deverá conter uma data anterior ou igual a :date.', - 'between' => - array ( - 'array' => 'O campo :attribute deverá conter entre :min - :max elementos.', - 'file' => 'O campo :attribute deverá ter um tamanho entre :min - :max kilobytes.', - 'numeric' => 'O campo :attribute deverá ter um valor entre :min - :max.', - 'string' => 'O campo :attribute deverá conter entre :min - :max caracteres.', - ), - 'boolean' => 'O campo :attribute deverá conter o valor verdadeiro ou falso.', - 'confirmed' => 'A confirmação para o campo :attribute não coincide.', - 'current_password' => 'A palavra-passe está incorreta.', - 'date' => 'O campo :attribute não contém uma data válida.', - 'date_equals' => 'O campo :attribute tem de ser uma data igual a :date.', - 'date_format' => 'A data indicada para o campo :attribute não respeita o formato :format.', - 'declined' => 'O :attribute deve ser recusado.', - 'declined_if' => 'O :attribute deve ser recusado quando :other é :value.', - 'different' => 'Os campos :attribute e :other deverão conter valores diferentes.', - 'digits' => 'O campo :attribute deverá conter :digits caracteres.', - 'digits_between' => 'O campo :attribute deverá conter entre :min a :max caracteres.', - 'dimensions' => 'O campo :attribute deverá conter uma dimensão de imagem válida.', - 'distinct' => 'O campo :attribute contém um valor duplicado.', - 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', - 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', - 'email' => 'O campo :attribute não contém um endereço de e-mail válido.', - 'ends_with' => 'O campo :attribute deverá terminar com : :values.', - 'enum' => 'O :attribute selecionado é inválido.', - 'exists' => 'O valor selecionado para o campo :attribute é inválido.', - 'file' => 'O campo :attribute deverá conter um ficheiro.', - 'filled' => 'É obrigatória a indicação de um valor para o campo :attribute.', - 'gt' => - array ( - 'array' => 'O campo :attribute tem de ter mais de :value itens.', - 'file' => 'O campo :attribute tem de ter mais de :value quilobytes.', - 'numeric' => 'O campo :attribute tem de ser maior do que :value.', - 'string' => 'O campo :attribute tem de ter mais de :value caracteres.', - ), - 'gte' => - array ( - 'array' => 'O campo :attribute tem de ter :value itens ou mais.', - 'file' => 'O campo :attribute tem de ter :value quilobytes ou mais.', - 'numeric' => 'O campo :attribute tem de ser maior ou igual a :value.', - 'string' => 'O campo :attribute tem de ter :value caracteres ou mais.', - ), - 'image' => 'O campo :attribute deverá conter uma imagem.', - 'in' => 'O campo :attribute não contém um valor válido.', - 'in_array' => 'O campo :attribute não existe em :other.', - 'integer' => 'O campo :attribute deverá conter um número inteiro.', - 'ip' => 'O campo :attribute deverá conter um IP válido.', - 'ipv4' => 'O campo :attribute deverá conter um IPv4 válido.', - 'ipv6' => 'O campo :attribute deverá conter um IPv6 válido.', - 'json' => 'O campo :attribute deverá conter um texto JSON válido.', - 'lowercase' => 'The :attribute must be lowercase.', - 'lt' => - array ( - 'array' => 'O campo :attribute tem de ter menos de :value itens.', - 'file' => 'O campo :attribute tem de ter menos de :value quilobytes.', - 'numeric' => 'O campo :attribute tem de ser inferior a :value.', - 'string' => 'O campo :attribute tem de ter menos de :value caracteres.', - ), - 'lte' => - array ( - 'array' => 'O campo :attribute não pode ter mais de :value itens.', - 'file' => 'O campo :attribute tem de ter :value quilobytes ou menos.', - 'numeric' => 'O campo :attribute tem de ser inferior ou igual a :value.', - 'string' => 'O campo :attribute tem de ter :value caracteres ou menos.', - ), - 'mac_address' => 'O :attribute deve ser um endereço MAC válido.', - 'max' => - array ( - 'array' => 'O campo :attribute não deverá conter mais de :max elementos.', - 'file' => 'O campo :attribute não deverá ter um tamanho superior a :max kilobytes.', - 'numeric' => 'O campo :attribute não deverá conter um valor superior a :max.', - 'string' => 'O campo :attribute não deverá conter mais de :max caracteres.', - ), - 'max_digits' => 'The :attribute must not have more than :max digits.', - 'mimes' => 'O campo :attribute deverá conter um ficheiro do tipo: :values.', - 'mimetypes' => 'O campo :attribute deverá conter um ficheiro do tipo: :values.', - 'min' => - array ( - 'array' => 'O campo :attribute deverá conter no mínimo :min elementos.', - 'file' => 'O campo :attribute deverá ter no mínimo :min kilobytes.', - 'numeric' => 'O campo :attribute deverá ter um valor superior ou igual a :min.', - 'string' => 'O campo :attribute deverá conter no mínimo :min caracteres.', - ), - 'min_digits' => 'The :attribute must have at least :min digits.', - 'multiple_of' => 'O :attribute deve ser um múltiplo de :value', - 'not_in' => 'O campo :attribute contém um valor inválido.', - 'not_regex' => 'O formato de :attribute não é válido', - 'numeric' => 'O campo :attribute deverá conter um valor numérico.', - 'password' => - array ( - 'letters' => 'The :attribute must contain at least one letter.', - 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', - 'numbers' => 'The :attribute must contain at least one number.', - 'symbols' => 'The :attribute must contain at least one symbol.', - 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', - ), - 'present' => 'O campo :attribute deverá estar presente.', - 'prohibited' => 'O campo :attribute é proibido.', - 'prohibited_if' => 'O campo :attribute é proibido quando :other é :value.', - 'prohibited_unless' => 'O campo :attribute é proibido a menos que :other esteja em :values.', - 'prohibits' => 'O campo :attribute proíbe :other de estar presente.', - 'regex' => 'O formato do valor para o campo :attribute é inválido.', - 'relatable' => 'Este :attribute pode não estar associado a este recurso.', - 'required' => 'É obrigatória a indicação de um valor para o campo :attribute.', - 'required_array_keys' => 'O campo :attribute deve conter entradas para: :values.', - 'required_if' => 'É obrigatória a indicação de um valor para o campo :attribute quando o valor do campo :other é igual a :value.', - 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', - 'required_unless' => 'É obrigatória a indicação de um valor para o campo :attribute a menos que :other esteja presente em :values.', - 'required_with' => 'É obrigatória a indicação de um valor para o campo :attribute quando :values está presente.', - 'required_with_all' => 'É obrigatória a indicação de um valor para o campo :attribute quando um dos :values está presente.', - 'required_without' => 'É obrigatória a indicação de um valor para o campo :attribute quando :values não está presente.', - 'required_without_all' => 'É obrigatória a indicação de um valor para o campo :attribute quando nenhum dos :values está presente.', - 'same' => 'Os campos :attribute e :other deverão conter valores iguais.', - 'size' => - array ( - 'array' => 'O campo :attribute deverá conter :size elementos.', - 'file' => 'O campo :attribute deverá ter o tamanho de :size kilobytes.', - 'numeric' => 'O campo :attribute deverá conter o valor :size.', - 'string' => 'O campo :attribute deverá conter :size caracteres.', - ), - 'starts_with' => 'O campo :attribute tem de começar com um dos valores seguintes: :values', - 'string' => 'O campo :attribute deverá conter texto.', - 'timezone' => 'O campo :attribute deverá ter um fuso horário válido.', - 'unique' => 'O valor indicado para o campo :attribute já se encontra registado.', - 'uploaded' => 'O upload do ficheiro :attribute falhou.', - 'uppercase' => 'The :attribute must be uppercase.', - 'url' => 'O formato do URL indicado para o campo :attribute é inválido.', - 'uuid' => ':Attribute tem de ser um UUID válido.', -); +return [ + 'accepted' => 'O campo :attribute deverá ser aceite.', + 'accepted_if' => 'O :attribute deve ser aceite quando o :other é :value.', + 'active_url' => 'O campo :attribute não contém um URL válido.', + 'after' => 'O campo :attribute deverá conter uma data posterior a :date.', + 'after_or_equal' => 'O campo :attribute deverá conter uma data posterior ou igual a :date.', + 'alpha' => 'O campo :attribute deverá conter apenas letras.', + 'alpha_dash' => 'O campo :attribute deverá conter apenas letras, números e traços.', + 'alpha_num' => 'O campo :attribute deverá conter apenas letras e números .', + 'array' => 'O campo :attribute deverá conter uma coleção de elementos.', + 'attached' => 'Este :attribute já está anexado.', + 'attributes' => [ + 'address' => 'address', + 'age' => 'age', + 'amount' => 'amount', + 'area' => 'area', + 'available' => 'available', + 'birthday' => 'birthday', + 'body' => 'body', + 'city' => 'city', + 'content' => 'content', + 'country' => 'country', + 'created_at' => 'created at', + 'creator' => 'creator', + 'current_password' => 'current password', + 'date' => 'date', + 'date_of_birth' => 'date of birth', + 'day' => 'day', + 'deleted_at' => 'deleted at', + 'description' => 'description', + 'district' => 'district', + 'duration' => 'duration', + 'email' => 'email', + 'excerpt' => 'excerpt', + 'filter' => 'filter', + 'first_name' => 'first name', + 'gender' => 'gender', + 'group' => 'group', + 'hour' => 'hour', + 'image' => 'image', + 'last_name' => 'last name', + 'lesson' => 'lesson', + 'line_address_1' => 'line address 1', + 'line_address_2' => 'line address 2', + 'message' => 'message', + 'middle_name' => 'middle name', + 'minute' => 'minute', + 'mobile' => 'mobile', + 'month' => 'month', + 'name' => 'name', + 'national_code' => 'national code', + 'number' => 'number', + 'password' => 'password', + 'password_confirmation' => 'password confirmation', + 'phone' => 'phone', + 'photo' => 'photo', + 'postal_code' => 'postal code', + 'price' => 'price', + 'province' => 'province', + 'recaptcha_response_field' => 'recaptcha response field', + 'remember' => 'remember', + 'restored_at' => 'restored at', + 'result_text_under_image' => 'result text under image', + 'role' => 'role', + 'second' => 'second', + 'sex' => 'sex', + 'short_text' => 'short text', + 'size' => 'size', + 'state' => 'state', + 'street' => 'street', + 'student' => 'student', + 'subject' => 'subject', + 'teacher' => 'teacher', + 'terms' => 'terms', + 'test_description' => 'test description', + 'test_locale' => 'test locale', + 'test_name' => 'test name', + 'text' => 'text', + 'time' => 'time', + 'title' => 'title', + 'updated_at' => 'updated at', + 'username' => 'username', + 'year' => 'year', + ], + 'before' => 'O campo :attribute deverá conter uma data anterior a :date.', + 'before_or_equal' => 'O Campo :attribute deverá conter uma data anterior ou igual a :date.', + 'between' => [ + 'array' => 'O campo :attribute deverá conter entre :min - :max elementos.', + 'file' => 'O campo :attribute deverá ter um tamanho entre :min - :max kilobytes.', + 'numeric' => 'O campo :attribute deverá ter um valor entre :min - :max.', + 'string' => 'O campo :attribute deverá conter entre :min - :max caracteres.', + ], + 'boolean' => 'O campo :attribute deverá conter o valor verdadeiro ou falso.', + 'confirmed' => 'A confirmação para o campo :attribute não coincide.', + 'current_password' => 'A palavra-passe está incorreta.', + 'date' => 'O campo :attribute não contém uma data válida.', + 'date_equals' => 'O campo :attribute tem de ser uma data igual a :date.', + 'date_format' => 'A data indicada para o campo :attribute não respeita o formato :format.', + 'declined' => 'O :attribute deve ser recusado.', + 'declined_if' => 'O :attribute deve ser recusado quando :other é :value.', + 'different' => 'Os campos :attribute e :other deverão conter valores diferentes.', + 'digits' => 'O campo :attribute deverá conter :digits caracteres.', + 'digits_between' => 'O campo :attribute deverá conter entre :min a :max caracteres.', + 'dimensions' => 'O campo :attribute deverá conter uma dimensão de imagem válida.', + 'distinct' => 'O campo :attribute contém um valor duplicado.', + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', + 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', + 'email' => 'O campo :attribute não contém um endereço de e-mail válido.', + 'ends_with' => 'O campo :attribute deverá terminar com : :values.', + 'enum' => 'O :attribute selecionado é inválido.', + 'exists' => 'O valor selecionado para o campo :attribute é inválido.', + 'file' => 'O campo :attribute deverá conter um ficheiro.', + 'filled' => 'É obrigatória a indicação de um valor para o campo :attribute.', + 'gt' => [ + 'array' => 'O campo :attribute tem de ter mais de :value itens.', + 'file' => 'O campo :attribute tem de ter mais de :value quilobytes.', + 'numeric' => 'O campo :attribute tem de ser maior do que :value.', + 'string' => 'O campo :attribute tem de ter mais de :value caracteres.', + ], + 'gte' => [ + 'array' => 'O campo :attribute tem de ter :value itens ou mais.', + 'file' => 'O campo :attribute tem de ter :value quilobytes ou mais.', + 'numeric' => 'O campo :attribute tem de ser maior ou igual a :value.', + 'string' => 'O campo :attribute tem de ter :value caracteres ou mais.', + ], + 'image' => 'O campo :attribute deverá conter uma imagem.', + 'in' => 'O campo :attribute não contém um valor válido.', + 'in_array' => 'O campo :attribute não existe em :other.', + 'integer' => 'O campo :attribute deverá conter um número inteiro.', + 'ip' => 'O campo :attribute deverá conter um IP válido.', + 'ipv4' => 'O campo :attribute deverá conter um IPv4 válido.', + 'ipv6' => 'O campo :attribute deverá conter um IPv6 válido.', + 'json' => 'O campo :attribute deverá conter um texto JSON válido.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => 'O campo :attribute tem de ter menos de :value itens.', + 'file' => 'O campo :attribute tem de ter menos de :value quilobytes.', + 'numeric' => 'O campo :attribute tem de ser inferior a :value.', + 'string' => 'O campo :attribute tem de ter menos de :value caracteres.', + ], + 'lte' => [ + 'array' => 'O campo :attribute não pode ter mais de :value itens.', + 'file' => 'O campo :attribute tem de ter :value quilobytes ou menos.', + 'numeric' => 'O campo :attribute tem de ser inferior ou igual a :value.', + 'string' => 'O campo :attribute tem de ter :value caracteres ou menos.', + ], + 'mac_address' => 'O :attribute deve ser um endereço MAC válido.', + 'max' => [ + 'array' => 'O campo :attribute não deverá conter mais de :max elementos.', + 'file' => 'O campo :attribute não deverá ter um tamanho superior a :max kilobytes.', + 'numeric' => 'O campo :attribute não deverá conter um valor superior a :max.', + 'string' => 'O campo :attribute não deverá conter mais de :max caracteres.', + ], + 'max_digits' => 'The :attribute must not have more than :max digits.', + 'mimes' => 'O campo :attribute deverá conter um ficheiro do tipo: :values.', + 'mimetypes' => 'O campo :attribute deverá conter um ficheiro do tipo: :values.', + 'min' => [ + 'array' => 'O campo :attribute deverá conter no mínimo :min elementos.', + 'file' => 'O campo :attribute deverá ter no mínimo :min kilobytes.', + 'numeric' => 'O campo :attribute deverá ter um valor superior ou igual a :min.', + 'string' => 'O campo :attribute deverá conter no mínimo :min caracteres.', + ], + 'min_digits' => 'The :attribute must have at least :min digits.', + 'multiple_of' => 'O :attribute deve ser um múltiplo de :value', + 'not_in' => 'O campo :attribute contém um valor inválido.', + 'not_regex' => 'O formato de :attribute não é válido', + 'numeric' => 'O campo :attribute deverá conter um valor numérico.', + 'password' => [ + 'letters' => 'The :attribute must contain at least one letter.', + 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', + 'numbers' => 'The :attribute must contain at least one number.', + 'symbols' => 'The :attribute must contain at least one symbol.', + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', + ], + 'present' => 'O campo :attribute deverá estar presente.', + 'prohibited' => 'O campo :attribute é proibido.', + 'prohibited_if' => 'O campo :attribute é proibido quando :other é :value.', + 'prohibited_unless' => 'O campo :attribute é proibido a menos que :other esteja em :values.', + 'prohibits' => 'O campo :attribute proíbe :other de estar presente.', + 'regex' => 'O formato do valor para o campo :attribute é inválido.', + 'relatable' => 'Este :attribute pode não estar associado a este recurso.', + 'required' => 'É obrigatória a indicação de um valor para o campo :attribute.', + 'required_array_keys' => 'O campo :attribute deve conter entradas para: :values.', + 'required_if' => 'É obrigatória a indicação de um valor para o campo :attribute quando o valor do campo :other é igual a :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', + 'required_unless' => 'É obrigatória a indicação de um valor para o campo :attribute a menos que :other esteja presente em :values.', + 'required_with' => 'É obrigatória a indicação de um valor para o campo :attribute quando :values está presente.', + 'required_with_all' => 'É obrigatória a indicação de um valor para o campo :attribute quando um dos :values está presente.', + 'required_without' => 'É obrigatória a indicação de um valor para o campo :attribute quando :values não está presente.', + 'required_without_all' => 'É obrigatória a indicação de um valor para o campo :attribute quando nenhum dos :values está presente.', + 'same' => 'Os campos :attribute e :other deverão conter valores iguais.', + 'size' => [ + 'array' => 'O campo :attribute deverá conter :size elementos.', + 'file' => 'O campo :attribute deverá ter o tamanho de :size kilobytes.', + 'numeric' => 'O campo :attribute deverá conter o valor :size.', + 'string' => 'O campo :attribute deverá conter :size caracteres.', + ], + 'starts_with' => 'O campo :attribute tem de começar com um dos valores seguintes: :values', + 'string' => 'O campo :attribute deverá conter texto.', + 'timezone' => 'O campo :attribute deverá ter um fuso horário válido.', + 'unique' => 'O valor indicado para o campo :attribute já se encontra registado.', + 'uploaded' => 'O upload do ficheiro :attribute falhou.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'O formato do URL indicado para o campo :attribute é inválido.', + 'uuid' => ':Attribute tem de ser um UUID válido.', +]; diff --git a/resources/lang/sv/Loading.php b/resources/lang/sv/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/sv/Loading.php +++ b/resources/lang/sv/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/sv/auth.php b/resources/lang/sv/auth.php index 2a692ef2..736a79a7 100644 --- a/resources/lang/sv/auth.php +++ b/resources/lang/sv/auth.php @@ -1,6 +1,6 @@ '', - 'throttle' => '', -); +return [ + 'failed' => '', + 'throttle' => '', +]; diff --git a/resources/lang/sv/pagination.php b/resources/lang/sv/pagination.php index 2a085d53..ebc6cbc9 100644 --- a/resources/lang/sv/pagination.php +++ b/resources/lang/sv/pagination.php @@ -1,6 +1,6 @@ '', - 'previous' => '', -); +return [ + 'next' => '', + 'previous' => '', +]; diff --git a/resources/lang/sv/trans.php b/resources/lang/sv/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/sv/trans.php +++ b/resources/lang/sv/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/sv/validation.php b/resources/lang/sv/validation.php index 112371da..08b2102b 100644 --- a/resources/lang/sv/validation.php +++ b/resources/lang/sv/validation.php @@ -1,6 +1,6 @@ '', - 'uploaded' => '', -); +return [ + 'enum' => '', + 'uploaded' => '', +]; diff --git a/resources/lang/tr/Loading.php b/resources/lang/tr/Loading.php index 85e9cebd..f563b9a6 100644 --- a/resources/lang/tr/Loading.php +++ b/resources/lang/tr/Loading.php @@ -1,11 +1,9 @@ - array ( - '' => - array ( - '' => '', - ), - ), -); +return [ + '' => [ + '' => [ + '' => '', + ], + ], +]; diff --git a/resources/lang/tr/auth.php b/resources/lang/tr/auth.php index d4031399..44a9befa 100644 --- a/resources/lang/tr/auth.php +++ b/resources/lang/tr/auth.php @@ -1,7 +1,7 @@ 'Bu kimlik bilgileri kayıtlarımızla eşleşmiyor.', - 'password' => 'Parola geçersiz.', - 'throttle' => 'Çok fazla giriş denemesi. :seconds saniye sonra lütfen tekrar deneyin.', -); +return [ + 'failed' => 'Bu kimlik bilgileri kayıtlarımızla eşleşmiyor.', + 'password' => 'Parola geçersiz.', + 'throttle' => 'Çok fazla giriş denemesi. :seconds saniye sonra lütfen tekrar deneyin.', +]; diff --git a/resources/lang/tr/http-statuses.php b/resources/lang/tr/http-statuses.php index c7bfe9f3..55cc5f57 100644 --- a/resources/lang/tr/http-statuses.php +++ b/resources/lang/tr/http-statuses.php @@ -1,82 +1,82 @@ 'Bilinmeyen Hata', - 'unknownError' => 'Bilinmeyen Hata', - 100 => 'Devam Et', - 101 => 'Protokoller Değiştiriliyor', - 102 => 'İşleniyor', - 200 => 'Tamam', - 201 => 'Oluşturuldu', - 202 => 'Kabul Edilmiş', - 203 => 'Yetkili Olmayan Bilgiler', - 204 => 'İçerik Yok', - 205 => 'İçeriği Sıfırla', - 206 => 'Kısmi İçerik', - 207 => 'Çoklu Durum', - 208 => 'Zaten Bildirildi', - 226 => 'IM Kullanıldı', - 300 => 'Çoklu Seçimler', - 301 => 'Kalıcı Olarak Taşındı', - 302 => 'Bulundu', - 303 => 'Diğerlerini Gör', - 304 => 'Değiştirilmedi', - 305 => 'Proxy Kullan', - 307 => 'Geçici Yönlendirme', - 308 => 'Kalıcı Yönlendirme', - 400 => 'Geçersiz istek', - 401 => 'Yetkisiz', - 402 => 'Ödeme gerekli', - 403 => 'Yasaklı', - 404 => 'Sayfa bulunamadı', - 405 => 'İzin Verilmeyen Yöntem', - 406 => 'Kabul Edilemez', - 407 => 'Proxy Kimlik Doğrulaması Gerekli', - 408 => 'İstek zaman aşımına uğradı', - 409 => 'Çakışma', - 410 => 'Gitmiş', - 411 => 'Uzunluk Gerekli', - 412 => 'Ön Koşul Başarısız', - 413 => 'Veri Çok Büyük', - 414 => 'URI Çok Uzun', - 415 => 'Desteklenmeyen Medya Türü', - 416 => 'Aralık Yetersiz', - 417 => 'Beklenti Başarısız', - 418 => 'Ben bir demliğim', - 419 => 'Oturum süresi doldu', - 421 => 'Yanlış Yönlendirilmiş İstek', - 422 => 'İşlenemeyen Varlık', - 423 => 'Kilitli', - 424 => 'Başarısız Bağımlılık', - 425 => 'Çok erken', - 426 => 'Yükseltme Gerekli', - 428 => 'Ön Koşul Gerekli', - 429 => 'Çok Fazla İstek', - 431 => 'İstek Başlık Alanları Çok Büyük', - 444 => 'Bağlantı Yanıtsız Kapatıldı', - 449 => 'İle Yeniden Dene', - 451 => 'Yasal Sebepler Nedeniyle Kullanılamıyor', - 499 => 'İstemci Kapandı İsteği', - 500 => 'İç Sunucu Hatası', - 501 => 'Uygulanmadı', - 502 => 'Geçersiz Ağ Geçidi', - 503 => 'Bakım Modu', - 504 => 'Ağ Geçidi Zaman Aşımı', - 505 => 'HTTP Sürümü Desteklenmiyor', - 506 => 'Varyant Ayrıca Müzakere Ediyor', - 507 => 'Yetersiz depolama', - 508 => 'Döngü Tespit Edildi', - 509 => 'Bant Genişliği Sınırı Aşıldı', - 510 => 'Genişletilmemiş', - 511 => 'Ağ Kimlik Doğrulaması Gerekli', - 520 => 'Bilinmeyen Hata', - 521 => 'Web Sunucusu Çalışmıyor', - 522 => 'Bağlantı Zaman Aşımına Uğradı', - 523 => 'Kökeni Ulaşılamaz', - 524 => 'Bir Zaman Aşımı Oluştu', - 525 => 'SSL El Sıkışma Başarısız', - 526 => 'Geçersiz SSL Sertifikası', - 527 => 'Railgun Hatası', - 598 => 'Ağ Okuma Zaman Aşımı Hatası', - 599 => 'Ağ Bağlantısı Zaman Aşımı Hatası', -); +return [ + 0 => 'Bilinmeyen Hata', + 'unknownError' => 'Bilinmeyen Hata', + 100 => 'Devam Et', + 101 => 'Protokoller Değiştiriliyor', + 102 => 'İşleniyor', + 200 => 'Tamam', + 201 => 'Oluşturuldu', + 202 => 'Kabul Edilmiş', + 203 => 'Yetkili Olmayan Bilgiler', + 204 => 'İçerik Yok', + 205 => 'İçeriği Sıfırla', + 206 => 'Kısmi İçerik', + 207 => 'Çoklu Durum', + 208 => 'Zaten Bildirildi', + 226 => 'IM Kullanıldı', + 300 => 'Çoklu Seçimler', + 301 => 'Kalıcı Olarak Taşındı', + 302 => 'Bulundu', + 303 => 'Diğerlerini Gör', + 304 => 'Değiştirilmedi', + 305 => 'Proxy Kullan', + 307 => 'Geçici Yönlendirme', + 308 => 'Kalıcı Yönlendirme', + 400 => 'Geçersiz istek', + 401 => 'Yetkisiz', + 402 => 'Ödeme gerekli', + 403 => 'Yasaklı', + 404 => 'Sayfa bulunamadı', + 405 => 'İzin Verilmeyen Yöntem', + 406 => 'Kabul Edilemez', + 407 => 'Proxy Kimlik Doğrulaması Gerekli', + 408 => 'İstek zaman aşımına uğradı', + 409 => 'Çakışma', + 410 => 'Gitmiş', + 411 => 'Uzunluk Gerekli', + 412 => 'Ön Koşul Başarısız', + 413 => 'Veri Çok Büyük', + 414 => 'URI Çok Uzun', + 415 => 'Desteklenmeyen Medya Türü', + 416 => 'Aralık Yetersiz', + 417 => 'Beklenti Başarısız', + 418 => 'Ben bir demliğim', + 419 => 'Oturum süresi doldu', + 421 => 'Yanlış Yönlendirilmiş İstek', + 422 => 'İşlenemeyen Varlık', + 423 => 'Kilitli', + 424 => 'Başarısız Bağımlılık', + 425 => 'Çok erken', + 426 => 'Yükseltme Gerekli', + 428 => 'Ön Koşul Gerekli', + 429 => 'Çok Fazla İstek', + 431 => 'İstek Başlık Alanları Çok Büyük', + 444 => 'Bağlantı Yanıtsız Kapatıldı', + 449 => 'İle Yeniden Dene', + 451 => 'Yasal Sebepler Nedeniyle Kullanılamıyor', + 499 => 'İstemci Kapandı İsteği', + 500 => 'İç Sunucu Hatası', + 501 => 'Uygulanmadı', + 502 => 'Geçersiz Ağ Geçidi', + 503 => 'Bakım Modu', + 504 => 'Ağ Geçidi Zaman Aşımı', + 505 => 'HTTP Sürümü Desteklenmiyor', + 506 => 'Varyant Ayrıca Müzakere Ediyor', + 507 => 'Yetersiz depolama', + 508 => 'Döngü Tespit Edildi', + 509 => 'Bant Genişliği Sınırı Aşıldı', + 510 => 'Genişletilmemiş', + 511 => 'Ağ Kimlik Doğrulaması Gerekli', + 520 => 'Bilinmeyen Hata', + 521 => 'Web Sunucusu Çalışmıyor', + 522 => 'Bağlantı Zaman Aşımına Uğradı', + 523 => 'Kökeni Ulaşılamaz', + 524 => 'Bir Zaman Aşımı Oluştu', + 525 => 'SSL El Sıkışma Başarısız', + 526 => 'Geçersiz SSL Sertifikası', + 527 => 'Railgun Hatası', + 598 => 'Ağ Okuma Zaman Aşımı Hatası', + 599 => 'Ağ Bağlantısı Zaman Aşımı Hatası', +]; diff --git a/resources/lang/tr/pagination.php b/resources/lang/tr/pagination.php index 8c4ff9b2..a9dbac22 100644 --- a/resources/lang/tr/pagination.php +++ b/resources/lang/tr/pagination.php @@ -1,6 +1,6 @@ 'Sonrakiler »', - 'previous' => '« Öncekiler', -); +return [ + 'next' => 'Sonrakiler »', + 'previous' => '« Öncekiler', +]; diff --git a/resources/lang/tr/passwords.php b/resources/lang/tr/passwords.php index 8b1114da..e8296b8f 100644 --- a/resources/lang/tr/passwords.php +++ b/resources/lang/tr/passwords.php @@ -1,9 +1,9 @@ 'Parolanız sıfırlandı!', - 'sent' => 'Parola sıfırlama bağlantınız e-posta ile gönderildi!', - 'throttled' => 'Tekrar denemeden önce lütfen bekleyin.', - 'token' => 'Parola sıfırlama kodu geçersiz.', - 'user' => 'Bu e-posta adresi ile kayıtlı bir üye bulunamadı.', -); +return [ + 'reset' => 'Parolanız sıfırlandı!', + 'sent' => 'Parola sıfırlama bağlantınız e-posta ile gönderildi!', + 'throttled' => 'Tekrar denemeden önce lütfen bekleyin.', + 'token' => 'Parola sıfırlama kodu geçersiz.', + 'user' => 'Bu e-posta adresi ile kayıtlı bir üye bulunamadı.', +]; diff --git a/resources/lang/tr/trans.php b/resources/lang/tr/trans.php index b35f4ca3..47f53745 100644 --- a/resources/lang/tr/trans.php +++ b/resources/lang/tr/trans.php @@ -1,6 +1,6 @@ '', - 'third_match' => '', -); +return [ + 'first_match' => '', + 'third_match' => '', +]; diff --git a/resources/lang/tr/validation.php b/resources/lang/tr/validation.php index f471e8a4..de0f7191 100644 --- a/resources/lang/tr/validation.php +++ b/resources/lang/tr/validation.php @@ -1,218 +1,208 @@ ':Attribute kabul edilmelidir.', - 'accepted_if' => ':Attribute, :other değeri :value ise kabul edilmelidir.', - 'active_url' => ':Attribute geçerli bir URL olmalıdır.', - 'after' => ':Attribute mutlaka :date tarihinden sonra olmalıdır.', - 'after_or_equal' => ':Attribute mutlaka :date tarihinden sonra veya aynı tarihte olmalıdır.', - 'alpha' => ':Attribute sadece harflerden oluşmalıdır.', - 'alpha_dash' => ':Attribute sadece harflerden, rakamlardan ve tirelerden oluşmalıdır.', - 'alpha_num' => ':Attribute sadece harflerden ve rakamlardan oluşmalıdır.', - 'array' => ':Attribute mutlaka bir dizi olmalıdır.', - 'attached' => 'Bu :attribute zaten tanımlı.', - 'attributes' => - array ( - 'address' => 'adres', - 'age' => 'yaş', - 'amount' => 'tutar', - 'area' => 'alan', - 'available' => 'mevcut', - 'birthday' => 'doğum günü', - 'body' => 'gövde', - 'city' => 'şehir', - 'content' => 'i̇çerik', - 'country' => 'ülke', - 'created_at' => 'oluşturulduğunda', - 'creator' => 'yaratıcı', - 'current_password' => 'mevcut şifre', - 'date' => 'tarih', - 'date_of_birth' => 'doğum tarihi', - 'day' => 'gün', - 'deleted_at' => 'silindi', - 'description' => 'açıklama', - 'district' => 'semt', - 'duration' => 'süre', - 'email' => 'e-posta adresi', - 'excerpt' => 'alıntı', - 'filter' => 'filtre', - 'first_name' => 'adı', - 'gender' => 'cinsiyet', - 'group' => 'grup', - 'hour' => 'saat', - 'image' => 'resim', - 'last_name' => 'soyadı', - 'lesson' => 'ders', - 'line_address_1' => 'hat adresi 1', - 'line_address_2' => 'hat adresi 2', - 'message' => 'ileti', - 'middle_name' => 'ikinci ad', - 'minute' => 'dakika', - 'mobile' => 'cep telefonu', - 'month' => 'ay', - 'name' => 'adı', - 'national_code' => 'ulusal kod', - 'number' => 'sayı', - 'password' => 'parola', - 'password_confirmation' => 'parola (tekrar)', - 'phone' => 'telefon', - 'photo' => 'fotoğraf', - 'postal_code' => 'posta kodu', - 'price' => 'fiyat', - 'province' => 'bölge', - 'recaptcha_response_field' => 'recaptcha yanıt alanı', - 'remember' => 'hatırlamak', - 'restored_at' => 'restore', - 'result_text_under_image' => 'resmin altındaki sonuç metni', - 'role' => 'rol', - 'second' => 'saniye', - 'sex' => 'cinsiyet', - 'short_text' => 'kısa metin', - 'size' => 'boyut', - 'state' => 'durum', - 'street' => 'sokak', - 'student' => 'öğrenci', - 'subject' => 'ders', - 'teacher' => 'öğretmen', - 'terms' => 'şartlar', - 'test_description' => 'test açıklaması', - 'test_locale' => 'yerel ayar', - 'test_name' => 'deneme adı', - 'text' => 'metin', - 'time' => 'zaman', - 'title' => 'unvan', - 'updated_at' => 'güncellendi', - 'username' => 'kullanıcı adı', - 'year' => 'yıl', - ), - 'before' => ':Attribute mutlaka :date tarihinden önce olmalıdır.', - 'before_or_equal' => ':Attribute mutlaka :date tarihinden önce veya aynı tarihte olmalıdır.', - 'between' => - array ( - 'array' => ':Attribute mutlaka :min - :max arasında öge içermelidir.', - 'file' => ':Attribute mutlaka :min - :max kilobayt arasında olmalıdır.', - 'numeric' => ':Attribute mutlaka :min - :max arasında olmalıdır.', - 'string' => ':Attribute mutlaka :min - :max karakter arasında olmalıdır.', - ), - 'boolean' => ':Attribute sadece doğru veya yanlış olmalıdır.', - 'confirmed' => ':Attribute tekrarı eşleşmiyor.', - 'current_password' => 'Parola hatalı.', - 'date' => ':Attribute geçerli bir tarih değil.', - 'date_equals' => ':Attribute mutlaka :date ile aynı tarihte olmalıdır.', - 'date_format' => ':Attribute mutlaka :format biçiminde olmalıdır.', - 'declined' => ':Attribute kabul edilmemektedir.', - 'declined_if' => ':Attribute, :other değeri :value iken kabul edilmemektedir.', - 'different' => ':Attribute ile :other mutlaka birbirinden farklı olmalıdır.', - 'digits' => ':Attribute mutlaka :digits basamaklı olmalıdır.', - 'digits_between' => ':Attribute mutlaka en az :min, en fazla :max basamaklı olmalıdır.', - 'dimensions' => ':Attribute geçersiz resim boyutlarına sahip.', - 'distinct' => ':Attribute alanı yinelenen bir değere sahip.', - 'doesnt_end_with' => ':Attribute aşağıdakilerden biriyle bitemez: :values.', - 'doesnt_start_with' => ':Attribute aşağıdakilerden biriyle başlamayabilir: :values.', - 'email' => ':Attribute mutlaka geçerli bir e-posta adresi olmalıdır.', - 'ends_with' => ':Attribute sadece şu değerlerden biriyle bitebilir: :values.', - 'enum' => 'Seçilen :attribute değeri geçersiz.', - 'exists' => 'Seçili :attribute geçersiz.', - 'file' => ':Attribute mutlaka bir dosya olmalıdır.', - 'filled' => ':Attribute mutlaka doldurulmalıdır.', - 'gt' => - array ( - 'array' => ':Attribute mutlaka :value sayısından daha fazla öge içermelidir.', - 'file' => ':Attribute mutlaka :value kilobayt\'tan büyük olmalıdır.', - 'numeric' => ':Attribute mutlaka :value sayısından büyük olmalıdır.', - 'string' => ':Attribute mutlaka :value karakterden uzun olmalıdır.', - ), - 'gte' => - array ( - 'array' => ':Attribute mutlaka :value veya daha fazla öge içermelidir.', - 'file' => ':Attribute mutlaka :value kilobayt\'tan büyük veya eşit olmalıdır.', - 'numeric' => ':Attribute mutlaka :value sayısından büyük veya eşit olmalıdır.', - 'string' => ':Attribute mutlaka :value karakterden uzun veya eşit olmalıdır.', - ), - 'image' => ':Attribute mutlaka bir resim olmalıdır.', - 'in' => 'Seçili :attribute geçersiz.', - 'in_array' => ':Attribute :other içinde mevcut değil.', - 'integer' => ':Attribute mutlaka bir tam sayı olmalıdır.', - 'ip' => ':Attribute mutlaka geçerli bir IP adresi olmalıdır.', - 'ipv4' => ':Attribute mutlaka geçerli bir IPv4 adresi olmalıdır.', - 'ipv6' => ':Attribute mutlaka geçerli bir IPv6 adresi olmalıdır.', - 'json' => ':Attribute mutlaka geçerli bir JSON içeriği olmalıdır.', - 'lowercase' => 'The :attribute must be lowercase.', - 'lt' => - array ( - 'array' => ':Attribute mutlaka :value sayısından daha az öge içermelidir.', - 'file' => ':Attribute mutlaka :value kilobayt\'tan küçük olmalıdır.', - 'numeric' => ':Attribute mutlaka :value sayısından küçük olmalıdır.', - 'string' => ':Attribute mutlaka :value karakterden kısa olmalıdır.', - ), - 'lte' => - array ( - 'array' => ':Attribute mutlaka :value veya daha az öge içermelidir.', - 'file' => ':Attribute mutlaka :value kilobayt\'tan küçük veya eşit olmalıdır.', - 'numeric' => ':Attribute mutlaka :value sayısından küçük veya eşit olmalıdır.', - 'string' => ':Attribute mutlaka :value karakterden kısa veya eşit olmalıdır.', - ), - 'mac_address' => ':Attribute geçerli bir MAC adresi olmalıdır.', - 'max' => - array ( - 'array' => ':Attribute en fazla :max öge içerebilir.', - 'file' => ':Attribute en fazla :max kilobayt olabilir.', - 'numeric' => ':Attribute en fazla :max olabilir.', - 'string' => ':Attribute en fazla :max karakter olabilir.', - ), - 'max_digits' => ':Attribute en fazla :max basamak içermelidir.', - 'mimes' => ':Attribute mutlaka :values biçiminde bir dosya olmalıdır.', - 'mimetypes' => ':Attribute mutlaka :values biçiminde bir dosya olmalıdır.', - 'min' => - array ( - 'array' => ':Attribute en az :min öge içerebilir.', - 'file' => ':Attribute en az :min kilobayt olabilir.', - 'numeric' => ':Attribute en az :min olabilir.', - 'string' => ':Attribute en az :min karakter olabilir.', - ), - 'min_digits' => ':Attribute en az :min basamak içermelidir.', - 'multiple_of' => ':Attribute, :value\'nin katları olmalıdır', - 'not_in' => 'Seçili :attribute geçersiz.', - 'not_regex' => ':Attribute biçimi geçersiz.', - 'numeric' => ':Attribute mutlaka bir sayı olmalıdır.', - 'password' => - array ( - 'letters' => ':Attribute en az bir harf içermelidir.', - 'mixed' => ':Attribute en az bir büyük harf ve bir küçük harf içermelidir.', - 'numbers' => ':Attribute en az bir sayı içermelidir.', - 'symbols' => ':Attribute en az bir sembol içermelidir.', - 'uncompromised' => 'Verilen :attribute bir veri sızıntısında ortaya çıktı. Lütfen farklı bir :attribute seçin.', - ), - 'present' => ':Attribute mutlaka mevcut olmalıdır.', - 'prohibited' => ':Attribute alanı kısıtlanmıştır.', - 'prohibited_if' => ':Other alanının değeri :value ise :attribute alanına veri girişi yapılamaz.', - 'prohibited_unless' => ':Other alanı :value değerlerinden birisi değilse :attribute alanına veri girişi yapılamaz.', - 'prohibits' => ':Attribute alanı :other alanının mevcut olmasını yasaklar.', - 'regex' => ':Attribute biçimi geçersiz.', - 'relatable' => 'Bu :attribute bu kaynakla ilişkili olmayabilir.', - 'required' => ':Attribute mutlaka gereklidir.', - 'required_array_keys' => ':Attribute değeri şu verileri içermelidir: :values.', - 'required_if' => ':Attribute :other :value değerine sahip olduğunda mutlaka gereklidir.', - 'required_if_accepted' => ':Attribute alanı, :other kabul edildiğinde gereklidir.', - 'required_unless' => ':Attribute :other :values değerlerinden birine sahip olmadığında mutlaka gereklidir.', - 'required_with' => ':Attribute :values varken mutlaka gereklidir.', - 'required_with_all' => ':Attribute herhangi bir :values değeri varken mutlaka gereklidir.', - 'required_without' => ':Attribute :values yokken mutlaka gereklidir.', - 'required_without_all' => ':Attribute :values değerlerinden herhangi biri yokken mutlaka gereklidir.', - 'same' => ':Attribute ile :other aynı olmalıdır.', - 'size' => - array ( - 'array' => ':Attribute mutlaka :size ögeye sahip olmalıdır.', - 'file' => ':Attribute mutlaka :size kilobayt olmalıdır.', - 'numeric' => ':Attribute mutlaka :size olmalıdır.', - 'string' => ':Attribute mutlaka :size karakterli olmalıdır.', - ), - 'starts_with' => ':Attribute sadece şu değerlerden biriyle başlayabilir: :values.', - 'string' => ':Attribute mutlaka bir metin olmalıdır.', - 'timezone' => ':Attribute mutlaka geçerli bir saat dilimi olmalıdır.', - 'unique' => ':Attribute zaten alınmış.', - 'uploaded' => ':Attribute yüklemesi başarısız.', - 'uppercase' => 'The :attribute must be uppercase.', - 'url' => ':Attribute biçimi geçersiz.', - 'uuid' => ':Attribute mutlaka geçerli bir UUID olmalıdır.', -); +return [ + 'accepted' => ':Attribute kabul edilmelidir.', + 'accepted_if' => ':Attribute, :other değeri :value ise kabul edilmelidir.', + 'active_url' => ':Attribute geçerli bir URL olmalıdır.', + 'after' => ':Attribute mutlaka :date tarihinden sonra olmalıdır.', + 'after_or_equal' => ':Attribute mutlaka :date tarihinden sonra veya aynı tarihte olmalıdır.', + 'alpha' => ':Attribute sadece harflerden oluşmalıdır.', + 'alpha_dash' => ':Attribute sadece harflerden, rakamlardan ve tirelerden oluşmalıdır.', + 'alpha_num' => ':Attribute sadece harflerden ve rakamlardan oluşmalıdır.', + 'array' => ':Attribute mutlaka bir dizi olmalıdır.', + 'attached' => 'Bu :attribute zaten tanımlı.', + 'attributes' => [ + 'address' => 'adres', + 'age' => 'yaş', + 'amount' => 'tutar', + 'area' => 'alan', + 'available' => 'mevcut', + 'birthday' => 'doğum günü', + 'body' => 'gövde', + 'city' => 'şehir', + 'content' => 'i̇çerik', + 'country' => 'ülke', + 'created_at' => 'oluşturulduğunda', + 'creator' => 'yaratıcı', + 'current_password' => 'mevcut şifre', + 'date' => 'tarih', + 'date_of_birth' => 'doğum tarihi', + 'day' => 'gün', + 'deleted_at' => 'silindi', + 'description' => 'açıklama', + 'district' => 'semt', + 'duration' => 'süre', + 'email' => 'e-posta adresi', + 'excerpt' => 'alıntı', + 'filter' => 'filtre', + 'first_name' => 'adı', + 'gender' => 'cinsiyet', + 'group' => 'grup', + 'hour' => 'saat', + 'image' => 'resim', + 'last_name' => 'soyadı', + 'lesson' => 'ders', + 'line_address_1' => 'hat adresi 1', + 'line_address_2' => 'hat adresi 2', + 'message' => 'ileti', + 'middle_name' => 'ikinci ad', + 'minute' => 'dakika', + 'mobile' => 'cep telefonu', + 'month' => 'ay', + 'name' => 'adı', + 'national_code' => 'ulusal kod', + 'number' => 'sayı', + 'password' => 'parola', + 'password_confirmation' => 'parola (tekrar)', + 'phone' => 'telefon', + 'photo' => 'fotoğraf', + 'postal_code' => 'posta kodu', + 'price' => 'fiyat', + 'province' => 'bölge', + 'recaptcha_response_field' => 'recaptcha yanıt alanı', + 'remember' => 'hatırlamak', + 'restored_at' => 'restore', + 'result_text_under_image' => 'resmin altındaki sonuç metni', + 'role' => 'rol', + 'second' => 'saniye', + 'sex' => 'cinsiyet', + 'short_text' => 'kısa metin', + 'size' => 'boyut', + 'state' => 'durum', + 'street' => 'sokak', + 'student' => 'öğrenci', + 'subject' => 'ders', + 'teacher' => 'öğretmen', + 'terms' => 'şartlar', + 'test_description' => 'test açıklaması', + 'test_locale' => 'yerel ayar', + 'test_name' => 'deneme adı', + 'text' => 'metin', + 'time' => 'zaman', + 'title' => 'unvan', + 'updated_at' => 'güncellendi', + 'username' => 'kullanıcı adı', + 'year' => 'yıl', + ], + 'before' => ':Attribute mutlaka :date tarihinden önce olmalıdır.', + 'before_or_equal' => ':Attribute mutlaka :date tarihinden önce veya aynı tarihte olmalıdır.', + 'between' => [ + 'array' => ':Attribute mutlaka :min - :max arasında öge içermelidir.', + 'file' => ':Attribute mutlaka :min - :max kilobayt arasında olmalıdır.', + 'numeric' => ':Attribute mutlaka :min - :max arasında olmalıdır.', + 'string' => ':Attribute mutlaka :min - :max karakter arasında olmalıdır.', + ], + 'boolean' => ':Attribute sadece doğru veya yanlış olmalıdır.', + 'confirmed' => ':Attribute tekrarı eşleşmiyor.', + 'current_password' => 'Parola hatalı.', + 'date' => ':Attribute geçerli bir tarih değil.', + 'date_equals' => ':Attribute mutlaka :date ile aynı tarihte olmalıdır.', + 'date_format' => ':Attribute mutlaka :format biçiminde olmalıdır.', + 'declined' => ':Attribute kabul edilmemektedir.', + 'declined_if' => ':Attribute, :other değeri :value iken kabul edilmemektedir.', + 'different' => ':Attribute ile :other mutlaka birbirinden farklı olmalıdır.', + 'digits' => ':Attribute mutlaka :digits basamaklı olmalıdır.', + 'digits_between' => ':Attribute mutlaka en az :min, en fazla :max basamaklı olmalıdır.', + 'dimensions' => ':Attribute geçersiz resim boyutlarına sahip.', + 'distinct' => ':Attribute alanı yinelenen bir değere sahip.', + 'doesnt_end_with' => ':Attribute aşağıdakilerden biriyle bitemez: :values.', + 'doesnt_start_with' => ':Attribute aşağıdakilerden biriyle başlamayabilir: :values.', + 'email' => ':Attribute mutlaka geçerli bir e-posta adresi olmalıdır.', + 'ends_with' => ':Attribute sadece şu değerlerden biriyle bitebilir: :values.', + 'enum' => 'Seçilen :attribute değeri geçersiz.', + 'exists' => 'Seçili :attribute geçersiz.', + 'file' => ':Attribute mutlaka bir dosya olmalıdır.', + 'filled' => ':Attribute mutlaka doldurulmalıdır.', + 'gt' => [ + 'array' => ':Attribute mutlaka :value sayısından daha fazla öge içermelidir.', + 'file' => ':Attribute mutlaka :value kilobayt\'tan büyük olmalıdır.', + 'numeric' => ':Attribute mutlaka :value sayısından büyük olmalıdır.', + 'string' => ':Attribute mutlaka :value karakterden uzun olmalıdır.', + ], + 'gte' => [ + 'array' => ':Attribute mutlaka :value veya daha fazla öge içermelidir.', + 'file' => ':Attribute mutlaka :value kilobayt\'tan büyük veya eşit olmalıdır.', + 'numeric' => ':Attribute mutlaka :value sayısından büyük veya eşit olmalıdır.', + 'string' => ':Attribute mutlaka :value karakterden uzun veya eşit olmalıdır.', + ], + 'image' => ':Attribute mutlaka bir resim olmalıdır.', + 'in' => 'Seçili :attribute geçersiz.', + 'in_array' => ':Attribute :other içinde mevcut değil.', + 'integer' => ':Attribute mutlaka bir tam sayı olmalıdır.', + 'ip' => ':Attribute mutlaka geçerli bir IP adresi olmalıdır.', + 'ipv4' => ':Attribute mutlaka geçerli bir IPv4 adresi olmalıdır.', + 'ipv6' => ':Attribute mutlaka geçerli bir IPv6 adresi olmalıdır.', + 'json' => ':Attribute mutlaka geçerli bir JSON içeriği olmalıdır.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => ':Attribute mutlaka :value sayısından daha az öge içermelidir.', + 'file' => ':Attribute mutlaka :value kilobayt\'tan küçük olmalıdır.', + 'numeric' => ':Attribute mutlaka :value sayısından küçük olmalıdır.', + 'string' => ':Attribute mutlaka :value karakterden kısa olmalıdır.', + ], + 'lte' => [ + 'array' => ':Attribute mutlaka :value veya daha az öge içermelidir.', + 'file' => ':Attribute mutlaka :value kilobayt\'tan küçük veya eşit olmalıdır.', + 'numeric' => ':Attribute mutlaka :value sayısından küçük veya eşit olmalıdır.', + 'string' => ':Attribute mutlaka :value karakterden kısa veya eşit olmalıdır.', + ], + 'mac_address' => ':Attribute geçerli bir MAC adresi olmalıdır.', + 'max' => [ + 'array' => ':Attribute en fazla :max öge içerebilir.', + 'file' => ':Attribute en fazla :max kilobayt olabilir.', + 'numeric' => ':Attribute en fazla :max olabilir.', + 'string' => ':Attribute en fazla :max karakter olabilir.', + ], + 'max_digits' => ':Attribute en fazla :max basamak içermelidir.', + 'mimes' => ':Attribute mutlaka :values biçiminde bir dosya olmalıdır.', + 'mimetypes' => ':Attribute mutlaka :values biçiminde bir dosya olmalıdır.', + 'min' => [ + 'array' => ':Attribute en az :min öge içerebilir.', + 'file' => ':Attribute en az :min kilobayt olabilir.', + 'numeric' => ':Attribute en az :min olabilir.', + 'string' => ':Attribute en az :min karakter olabilir.', + ], + 'min_digits' => ':Attribute en az :min basamak içermelidir.', + 'multiple_of' => ':Attribute, :value\'nin katları olmalıdır', + 'not_in' => 'Seçili :attribute geçersiz.', + 'not_regex' => ':Attribute biçimi geçersiz.', + 'numeric' => ':Attribute mutlaka bir sayı olmalıdır.', + 'password' => [ + 'letters' => ':Attribute en az bir harf içermelidir.', + 'mixed' => ':Attribute en az bir büyük harf ve bir küçük harf içermelidir.', + 'numbers' => ':Attribute en az bir sayı içermelidir.', + 'symbols' => ':Attribute en az bir sembol içermelidir.', + 'uncompromised' => 'Verilen :attribute bir veri sızıntısında ortaya çıktı. Lütfen farklı bir :attribute seçin.', + ], + 'present' => ':Attribute mutlaka mevcut olmalıdır.', + 'prohibited' => ':Attribute alanı kısıtlanmıştır.', + 'prohibited_if' => ':Other alanının değeri :value ise :attribute alanına veri girişi yapılamaz.', + 'prohibited_unless' => ':Other alanı :value değerlerinden birisi değilse :attribute alanına veri girişi yapılamaz.', + 'prohibits' => ':Attribute alanı :other alanının mevcut olmasını yasaklar.', + 'regex' => ':Attribute biçimi geçersiz.', + 'relatable' => 'Bu :attribute bu kaynakla ilişkili olmayabilir.', + 'required' => ':Attribute mutlaka gereklidir.', + 'required_array_keys' => ':Attribute değeri şu verileri içermelidir: :values.', + 'required_if' => ':Attribute :other :value değerine sahip olduğunda mutlaka gereklidir.', + 'required_if_accepted' => ':Attribute alanı, :other kabul edildiğinde gereklidir.', + 'required_unless' => ':Attribute :other :values değerlerinden birine sahip olmadığında mutlaka gereklidir.', + 'required_with' => ':Attribute :values varken mutlaka gereklidir.', + 'required_with_all' => ':Attribute herhangi bir :values değeri varken mutlaka gereklidir.', + 'required_without' => ':Attribute :values yokken mutlaka gereklidir.', + 'required_without_all' => ':Attribute :values değerlerinden herhangi biri yokken mutlaka gereklidir.', + 'same' => ':Attribute ile :other aynı olmalıdır.', + 'size' => [ + 'array' => ':Attribute mutlaka :size ögeye sahip olmalıdır.', + 'file' => ':Attribute mutlaka :size kilobayt olmalıdır.', + 'numeric' => ':Attribute mutlaka :size olmalıdır.', + 'string' => ':Attribute mutlaka :size karakterli olmalıdır.', + ], + 'starts_with' => ':Attribute sadece şu değerlerden biriyle başlayabilir: :values.', + 'string' => ':Attribute mutlaka bir metin olmalıdır.', + 'timezone' => ':Attribute mutlaka geçerli bir saat dilimi olmalıdır.', + 'unique' => ':Attribute zaten alınmış.', + 'uploaded' => ':Attribute yüklemesi başarısız.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => ':Attribute biçimi geçersiz.', + 'uuid' => ':Attribute mutlaka geçerli bir UUID olmalıdır.', +]; diff --git a/routes/api.php b/routes/api.php index 01306694..92743f2f 100644 --- a/routes/api.php +++ b/routes/api.php @@ -36,18 +36,18 @@ Route::middleware([]) 'city', ]) ->get() - ->map(fn($meetup) => [ - 'name' => $meetup->name, - 'url' => $meetup->telegram_link ?? $meetup->webpage, - 'top' => $meetup->github_data['top'] ?? null, - 'left' => $meetup->github_data['left'] ?? null, - 'country' => str($meetup->city->country->code)->upper(), - 'state' => $meetup->github_data['state'] ?? null, - 'city' => $meetup->city->name, - 'longitude' => (float) $meetup->city->longitude, - 'latitude' => (float) $meetup->city->latitude, + ->map(fn ($meetup) => [ + 'name' => $meetup->name, + 'url' => $meetup->telegram_link ?? $meetup->webpage, + 'top' => $meetup->github_data['top'] ?? null, + 'left' => $meetup->github_data['left'] ?? null, + 'country' => str($meetup->city->country->code)->upper(), + 'state' => $meetup->github_data['state'] ?? null, + 'city' => $meetup->city->name, + 'longitude' => (float) $meetup->city->longitude, + 'latitude' => (float) $meetup->city->latitude, 'twitter_username' => $meetup->twitter_username, - 'website' => $meetup->webpage, + 'website' => $meetup->webpage, ]); }); Route::get('btc-map-communities', function () { @@ -58,29 +58,29 @@ Route::middleware([]) ]) ->where('community', '=', 'einundzwanzig') ->when(app()->environment('production'), - fn($query) => $query->whereHas('city', - fn($query) => $query + fn ($query) => $query->whereHas('city', + fn ($query) => $query ->whereNotNull('cities.simplified_geojson') ->whereNotNull('cities.population') ->whereNotNull('cities.population_date') )) ->get() - ->map(fn($meetup) => [ - 'id' => $meetup->slug, + ->map(fn ($meetup) => [ + 'id' => $meetup->slug, 'tags' => [ - 'type' => 'community', - 'name' => $meetup->name, - 'continent' => 'europe', - 'icon:square' => $meetup->logoSquare, + 'type' => 'community', + 'name' => $meetup->name, + 'continent' => 'europe', + 'icon:square' => $meetup->logoSquare, //'contact:email' => null, 'contact:twitter' => 'https://twitter.com/'.$meetup->twitter_username, 'contact:website' => $meetup->webpage, - 'contact:nostr' => $meetup->nostr, + 'contact:nostr' => $meetup->nostr, //'tips:lightning_address' => null, - 'organization' => 'einundzwanzig', - 'language' => $meetup->city->country->language_codes[0] ?? 'de', - 'geo_json' => $meetup->city->simplified_geojson, - 'population' => $meetup->city->population, + 'organization' => 'einundzwanzig', + 'language' => $meetup->city->country->language_codes[0] ?? 'de', + 'geo_json' => $meetup->city->simplified_geojson, + 'population' => $meetup->city->population, 'population:date' => $meetup->city->population_date, ], ]) @@ -89,33 +89,33 @@ Route::middleware([]) }); }); -Route::get('/lnurl-auth-callback', function (\Illuminate\Http\Request $request) { +Route::get('/lnurl-auth-callback', function (Request $request) { if (lnurl\auth($request->k1, $request->sig, $request->key)) { // find User by $wallet_public_key $user = User::query() ->whereBlind('public_key', 'public_key_index', $request->key) ->first(); - if (!$user) { + if (! $user) { // create User $user = User::create([ - 'public_key' => $request->key, + 'public_key' => $request->key, 'is_lecturer' => true, - 'name' => $request->key, - 'email' => str($request->key)->substr(-12).'@portal.einundzwanzig.space' + 'name' => $request->key, + 'email' => str($request->key)->substr(-12).'@portal.einundzwanzig.space', ]); $user->ownedTeams() ->save(Team::forceCreate([ - 'user_id' => $user->id, - 'name' => $request->key."'s Team", + 'user_id' => $user->id, + 'name' => $request->key."'s Team", 'personal_team' => true, ])); } // check if $k1 is in the database, if not, add it $loginKey = LoginKey::where('k1', $request->k1) ->first(); - if (!$loginKey) { + if (! $loginKey) { LoginKey::create([ - 'k1' => $request->k1, + 'k1' => $request->k1, 'user_id' => $user->id, ]); } diff --git a/routes/web.php b/routes/web.php index 2da96736..787dc964 100644 --- a/routes/web.php +++ b/routes/web.php @@ -30,7 +30,7 @@ Route::middleware([]) * News * */ Route::middleware([ - 'auth' + 'auth', ]) ->as('news.') ->prefix('/news') @@ -43,7 +43,7 @@ Route::middleware([ * Content Creator * */ Route::middleware([ - 'auth' + 'auth', ]) ->as('contentCreator.') ->prefix('/content-creator') @@ -56,7 +56,7 @@ Route::middleware([ * Cities * */ Route::middleware([ - 'auth' + 'auth', ]) ->as('city.') ->prefix('/city') @@ -101,16 +101,16 @@ Route::get('/auth/twitter/callback', function () { $twitterAccount = \App\Models\TwitterAccount::updateOrCreate([ 'twitter_id' => $twitterUser->id, ], [ - 'twitter_id' => $twitterUser->id, + 'twitter_id' => $twitterUser->id, 'refresh_token' => $twitterUser->refreshToken, - 'nickname' => $twitterUser->nickname, - 'token' => $twitterUser->token, - 'expires_in' => $twitterUser->expiresIn, - 'data' => [], + 'nickname' => $twitterUser->nickname, + 'token' => $twitterUser->token, + 'expires_in' => $twitterUser->expiresIn, + 'data' => [], ]); echo 'Twitter account updated. We can now tweet on: '.$twitterUser->name; - die; + exit; }) ->name('auth.twitter'); @@ -201,7 +201,6 @@ Route::middleware([]) ->name('table.bitcoinEvent'); }); - /* * Meetups * */ @@ -209,7 +208,6 @@ Route::middleware([]) ->as('meetup.') ->prefix('/{country:code}/meetup') ->group(function () { - Route::get('stream-calendar', \App\Http\Controllers\DownloadMeetupCalendar::class) ->name('ics'); @@ -234,7 +232,6 @@ Route::middleware([]) Route::get('/{meetup:slug}', \App\Http\Livewire\Meetup\LandingPage::class) ->name('landing'); - }); /* diff --git a/tests/Feature/PasswordConfirmationTest.php b/tests/Feature/PasswordConfirmationTest.php index a31fbab9..23140949 100644 --- a/tests/Feature/PasswordConfirmationTest.php +++ b/tests/Feature/PasswordConfirmationTest.php @@ -4,7 +4,6 @@ namespace Tests\Feature; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; -use Laravel\Jetstream\Features; use Tests\TestCase; class PasswordConfirmationTest extends TestCase