From 82ab30faf714bb22d46a2d666474e442481d48be Mon Sep 17 00:00:00 2001 From: Clark Winkelmann Date: Mon, 5 Apr 2021 00:40:30 +0000 Subject: [PATCH] Apply fixes from StyleCI --- extend.php | 2 +- migrations/2016_04_11_182821__create_pages_table.php | 2 +- migrations/2016_08_28_180020_add_is_html.php | 2 +- migrations/2020_02_26_010000_add_is_restricted.php | 2 +- migrations/2020_09_09_173600_increase_char_limit.php | 2 +- src/Access/ScopePageVisibility.php | 2 +- src/Api/Controller/CreatePageController.php | 2 +- src/Api/Controller/DeletePageController.php | 2 +- src/Api/Controller/ListPagesController.php | 2 +- src/Api/Controller/ShowPageController.php | 2 +- src/Api/Controller/UpdatePageController.php | 2 +- src/Api/Serializer/PageSerializer.php | 2 +- src/Command/CreatePage.php | 2 +- src/Command/CreatePageHandler.php | 2 +- src/Command/DeletePage.php | 2 +- src/Command/DeletePageHandler.php | 2 +- src/Command/EditPage.php | 2 +- src/Command/EditPageHandler.php | 2 +- src/Content/AddHomePageId.php | 2 +- src/Content/Page.php | 2 +- src/Page.php | 2 +- src/PageRepository.php | 2 +- src/PageValidator.php | 2 +- src/Providers/PageServiceProvider.php | 11 ++++++++++- src/Providers/SearchServiceProvider.php | 9 +++++++++ src/Search/NoOpGambit.php | 11 ++++++++++- src/Search/PageFilterer.php | 9 +++++++++ src/Search/PageSearcher.php | 2 +- src/Util/Html.php | 2 +- 29 files changed, 63 insertions(+), 27 deletions(-) diff --git a/extend.php b/extend.php index 4271771..ab03d5e 100644 --- a/extend.php +++ b/extend.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/migrations/2016_04_11_182821__create_pages_table.php b/migrations/2016_04_11_182821__create_pages_table.php index 7fd0794..b5eae2c 100644 --- a/migrations/2016_04_11_182821__create_pages_table.php +++ b/migrations/2016_04_11_182821__create_pages_table.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/migrations/2016_08_28_180020_add_is_html.php b/migrations/2016_08_28_180020_add_is_html.php index 41be37b..041bc75 100644 --- a/migrations/2016_08_28_180020_add_is_html.php +++ b/migrations/2016_08_28_180020_add_is_html.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/migrations/2020_02_26_010000_add_is_restricted.php b/migrations/2020_02_26_010000_add_is_restricted.php index 8002835..5d30b41 100644 --- a/migrations/2020_02_26_010000_add_is_restricted.php +++ b/migrations/2020_02_26_010000_add_is_restricted.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/migrations/2020_09_09_173600_increase_char_limit.php b/migrations/2020_09_09_173600_increase_char_limit.php index 7d954c1..f1e0b0c 100644 --- a/migrations/2020_09_09_173600_increase_char_limit.php +++ b/migrations/2020_09_09_173600_increase_char_limit.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Access/ScopePageVisibility.php b/src/Access/ScopePageVisibility.php index 4ef64d5..42bea65 100644 --- a/src/Access/ScopePageVisibility.php +++ b/src/Access/ScopePageVisibility.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Api/Controller/CreatePageController.php b/src/Api/Controller/CreatePageController.php index c7f0e61..2e58a01 100755 --- a/src/Api/Controller/CreatePageController.php +++ b/src/Api/Controller/CreatePageController.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Api/Controller/DeletePageController.php b/src/Api/Controller/DeletePageController.php index 41bf67f..6924188 100755 --- a/src/Api/Controller/DeletePageController.php +++ b/src/Api/Controller/DeletePageController.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Api/Controller/ListPagesController.php b/src/Api/Controller/ListPagesController.php index 891e282..59786d1 100644 --- a/src/Api/Controller/ListPagesController.php +++ b/src/Api/Controller/ListPagesController.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Api/Controller/ShowPageController.php b/src/Api/Controller/ShowPageController.php index f8fa4d4..5ad640e 100644 --- a/src/Api/Controller/ShowPageController.php +++ b/src/Api/Controller/ShowPageController.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Api/Controller/UpdatePageController.php b/src/Api/Controller/UpdatePageController.php index 7719491..67e19e4 100755 --- a/src/Api/Controller/UpdatePageController.php +++ b/src/Api/Controller/UpdatePageController.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Api/Serializer/PageSerializer.php b/src/Api/Serializer/PageSerializer.php index 2cc3ebc..748f6ed 100755 --- a/src/Api/Serializer/PageSerializer.php +++ b/src/Api/Serializer/PageSerializer.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/CreatePage.php b/src/Command/CreatePage.php index 7f12ef1..2e55ce7 100755 --- a/src/Command/CreatePage.php +++ b/src/Command/CreatePage.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/CreatePageHandler.php b/src/Command/CreatePageHandler.php index 3eb967d..0f30702 100755 --- a/src/Command/CreatePageHandler.php +++ b/src/Command/CreatePageHandler.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/DeletePage.php b/src/Command/DeletePage.php index befb5dd..73b6799 100755 --- a/src/Command/DeletePage.php +++ b/src/Command/DeletePage.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/DeletePageHandler.php b/src/Command/DeletePageHandler.php index 7ff9f18..4521f84 100755 --- a/src/Command/DeletePageHandler.php +++ b/src/Command/DeletePageHandler.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/EditPage.php b/src/Command/EditPage.php index 2b776f5..057b2dd 100755 --- a/src/Command/EditPage.php +++ b/src/Command/EditPage.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/EditPageHandler.php b/src/Command/EditPageHandler.php index 2e916e4..d133be2 100755 --- a/src/Command/EditPageHandler.php +++ b/src/Command/EditPageHandler.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Content/AddHomePageId.php b/src/Content/AddHomePageId.php index 8284f6b..a3b4d72 100644 --- a/src/Content/AddHomePageId.php +++ b/src/Content/AddHomePageId.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Content/Page.php b/src/Content/Page.php index 687cf7f..eddd50c 100644 --- a/src/Content/Page.php +++ b/src/Content/Page.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Page.php b/src/Page.php index d4157e8..4597e4f 100755 --- a/src/Page.php +++ b/src/Page.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/PageRepository.php b/src/PageRepository.php index 7a07096..3284554 100755 --- a/src/PageRepository.php +++ b/src/PageRepository.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/PageValidator.php b/src/PageValidator.php index a3bfd50..7a91d6c 100755 --- a/src/PageValidator.php +++ b/src/PageValidator.php @@ -3,7 +3,7 @@ /* * This file is part of fof/pages. * - * Copyright (c) 2019 FriendsOfFlarum. + * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Providers/PageServiceProvider.php b/src/Providers/PageServiceProvider.php index 20da333..bd13d09 100644 --- a/src/Providers/PageServiceProvider.php +++ b/src/Providers/PageServiceProvider.php @@ -1,5 +1,14 @@ container->instance('path.pages', ($this->container->make(Paths::class))->base . DIRECTORY_SEPARATOR . 'pages'); + $this->container->instance('path.pages', ($this->container->make(Paths::class))->base.DIRECTORY_SEPARATOR.'pages'); Page::setFormatter($this->container->make(Formatter::class)); } diff --git a/src/Providers/SearchServiceProvider.php b/src/Providers/SearchServiceProvider.php index 63e9b07..407d4a7 100644 --- a/src/Providers/SearchServiceProvider.php +++ b/src/Providers/SearchServiceProvider.php @@ -1,5 +1,14 @@