From e36be67c703262f1583ed9b05bf2f857839adbac Mon Sep 17 00:00:00 2001 From: Shlee Date: Sat, 14 May 2022 19:12:07 +0930 Subject: [PATCH] unwanted semicolons --- app/Http/Controllers/SettingsController.php | 4 ++-- app/Services/HashidService.php | 2 +- resources/assets/js/components/ComposeModal.vue | 4 ++-- resources/assets/js/components/Direct.vue | 2 +- resources/assets/js/lib/argon.js | 2 +- resources/lang/cs/helpcenter.php | 4 ++-- resources/views/admin/profiles/home.blade.php | 2 +- resources/views/settings/privacy/blocked-instances.blade.php | 4 ++-- resources/views/settings/security/2fa/edit.blade.php | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 318b75919..1e1a1e996 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -208,7 +208,7 @@ class SettingsController extends Controller $opencollective = Str::startsWith($opencollective, 'opencollective.com/') ? e($opencollective) : null; if(empty($patreon) && empty($liberapay) && empty($opencollective)) { - return redirect(route('settings'))->with('error', 'An error occured. Please try again later.');; + return redirect(route('settings'))->with('error', 'An error occured. Please try again later.'); } $res = [ @@ -251,7 +251,7 @@ class SettingsController extends Controller } else { Redis::zrem('pf:tl:replies', $pid); } - return redirect(route('settings'))->with('status', 'Timeline settings successfully updated!');; + return redirect(route('settings'))->with('status', 'Timeline settings successfully updated!'); } public function mediaSettings(Request $request) diff --git a/app/Services/HashidService.php b/app/Services/HashidService.php index 81c15c24a..aa1211af2 100644 --- a/app/Services/HashidService.php +++ b/app/Services/HashidService.php @@ -22,7 +22,7 @@ class HashidService { while($id) { $id = ($id - ($r = $id % $base)) / $base; $shortcode = $cmap[$r] . $shortcode; - }; + } return $shortcode; }); } diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index a51c911ea..d6157bb2c 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -1503,7 +1503,7 @@ export default { }, locationSearch(input) { - if (input.length < 1) { return []; }; + if (input.length < 1) { return []; } let results = []; return axios.get('/api/compose/v0/search/location', { params: { @@ -1650,7 +1650,7 @@ export default { }, tagSearch(input) { - if (input.length < 1) { return []; }; + if (input.length < 1) { return []; } let self = this; let results = []; return axios.get('/api/compose/v0/search/tag', { diff --git a/resources/assets/js/components/Direct.vue b/resources/assets/js/components/Direct.vue index f0901ed03..258bc5f37 100644 --- a/resources/assets/js/components/Direct.vue +++ b/resources/assets/js/components/Direct.vue @@ -305,7 +305,7 @@ export default { }, composeSearch(input) { - if (input.length < 1) { return []; }; + if (input.length < 1) { return []; } let self = this; let results = []; return axios.post('/api/direct/lookup', { diff --git a/resources/assets/js/lib/argon.js b/resources/assets/js/lib/argon.js index c6e407276..0b7057f86 100644 --- a/resources/assets/js/lib/argon.js +++ b/resources/assets/js/lib/argon.js @@ -880,7 +880,7 @@ var UsersChart = (function() { $chart.data('chart', usersChart); - }; + } // Events diff --git a/resources/lang/cs/helpcenter.php b/resources/lang/cs/helpcenter.php index bf82ab782..29dbc5aec 100644 --- a/resources/lang/cs/helpcenter.php +++ b/resources/lang/cs/helpcenter.php @@ -21,8 +21,8 @@ return [ 'blockingAccounts' => 'Blokování účtů', 'safetyTips' => 'Tipy pro bezpečnost', 'reportSomething' => 'Nahlašování', - 'dataPolicy' => 'Politika dat' + 'dataPolicy' => 'Politika dat', 'taggingPeople' => 'Označování lidí' -]; +] diff --git a/resources/views/admin/profiles/home.blade.php b/resources/views/admin/profiles/home.blade.php index 2f5998250..3835de44a 100644 --- a/resources/views/admin/profiles/home.blade.php +++ b/resources/views/admin/profiles/home.blade.php @@ -261,7 +261,7 @@ } if($(this).hasClass('row-check-all')) { return; - }; + } if(el.checked == true) { $(this).parents().eq(2).addClass('user-row-active'); $('.bulk-actions').removeClass('d-none'); diff --git a/resources/views/settings/privacy/blocked-instances.blade.php b/resources/views/settings/privacy/blocked-instances.blade.php index d7e6679f0..61e551738 100644 --- a/resources/views/settings/privacy/blocked-instances.blade.php +++ b/resources/views/settings/privacy/blocked-instances.blade.php @@ -68,7 +68,7 @@ swal.stopLoading(); swal.close(); return; - }; + } let msg = 'The URL you have entered is not valid, please try again.' try { let validator = new URL(val); @@ -77,7 +77,7 @@ swal.close(); swal('Invalid URL', msg, 'error'); return; - }; + } axios.post(window.location.href, { domain: validator.href }).then(res => { diff --git a/resources/views/settings/security/2fa/edit.blade.php b/resources/views/settings/security/2fa/edit.blade.php index 803e43b2a..a55ea1842 100644 --- a/resources/views/settings/security/2fa/edit.blade.php +++ b/resources/views/settings/security/2fa/edit.blade.php @@ -82,7 +82,7 @@ $(document).ready(function() { }) } }); - }; + } }); }); });