diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-01-30 18:23:20 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-01-30 19:32:49 +0000 |
| commit | a8fbc491176ca9810ef2991e9d3de0b320e31913 (patch) | |
| tree | 993715fa24170d177febdc93a789f0dfb6c95cdb | |
| parent | 8b9cfadb614ce7d48a20883286cecb608bc36fbc (diff) | |
| download | webtrees-a8fbc491176ca9810ef2991e9d3de0b320e31913.tar.gz webtrees-a8fbc491176ca9810ef2991e9d3de0b320e31913.tar.bz2 webtrees-a8fbc491176ca9810ef2991e9d3de0b320e31913.zip | |
Clean up module code
21 files changed, 3 insertions, 60 deletions
diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index bfca1ee860..516d063e2b 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -24,8 +24,6 @@ use Fisharebest\Webtrees\Functions\FunctionsEdit; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\Session; -use Fisharebest\Webtrees\Site; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; use Fisharebest\Webtrees\User; use Symfony\Component\HttpFoundation\RedirectResponse; diff --git a/app/Http/Controllers/AdminSiteController.php b/app/Http/Controllers/AdminSiteController.php index b7c3966496..d9e221c095 100644 --- a/app/Http/Controllers/AdminSiteController.php +++ b/app/Http/Controllers/AdminSiteController.php @@ -19,13 +19,11 @@ namespace Fisharebest\Webtrees\Http\Controllers; use Carbon\Carbon; use Exception; -use Fisharebest\Webtrees\Database; use Fisharebest\Webtrees\File; use Fisharebest\Webtrees\FlashMessages; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Services\DatatablesService; use Fisharebest\Webtrees\Site; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; use Fisharebest\Webtrees\User; use Illuminate\Database\Capsule\Manager as DB; diff --git a/app/Http/Controllers/AdminTreesController.php b/app/Http/Controllers/AdminTreesController.php index d488c1e0c4..891224eccb 100644 --- a/app/Http/Controllers/AdminTreesController.php +++ b/app/Http/Controllers/AdminTreesController.php @@ -36,7 +36,6 @@ use Fisharebest\Webtrees\Services\TimeoutService; use Fisharebest\Webtrees\Site; use Fisharebest\Webtrees\Source; use Fisharebest\Webtrees\SurnameTradition; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; use Fisharebest\Webtrees\User; use Illuminate\Database\Capsule\Manager as DB; diff --git a/app/Http/Controllers/AdminUsersController.php b/app/Http/Controllers/AdminUsersController.php index fa4d65669b..d965db2484 100644 --- a/app/Http/Controllers/AdminUsersController.php +++ b/app/Http/Controllers/AdminUsersController.php @@ -26,7 +26,6 @@ use Fisharebest\Webtrees\Log; use Fisharebest\Webtrees\Mail; use Fisharebest\Webtrees\Services\DatatablesService; use Fisharebest\Webtrees\Site; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; use Fisharebest\Webtrees\User; use Illuminate\Database\Capsule\Manager as DB; diff --git a/app/Http/Controllers/FamilyBookChartController.php b/app/Http/Controllers/FamilyBookChartController.php deleted file mode 100644 index 56065f672d..0000000000 --- a/app/Http/Controllers/FamilyBookChartController.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php -/** - * webtrees: online genealogy - * Copyright (C) 2019 webtrees development team - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -declare(strict_types=1); - -namespace Fisharebest\Webtrees\Http\Controllers; - -use Fisharebest\Webtrees\Auth; -use Fisharebest\Webtrees\Functions\FunctionsPrint; -use Fisharebest\Webtrees\I18N; -use Fisharebest\Webtrees\Individual; -use Fisharebest\Webtrees\Module\FamilyBookChartModule; -use Fisharebest\Webtrees\Theme; -use Fisharebest\Webtrees\Tree; -use stdClass; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; - -/** - * A series of "mini" hourglass charts for the descendants of an individual. - */ -class FamilyBookChartController extends AbstractBaseController -{ -} diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index a1ab426118..06315d5455 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -21,8 +21,6 @@ use Fisharebest\Webtrees\Auth; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Log; use Fisharebest\Webtrees\Session; -use Fisharebest\Webtrees\Site; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\User; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/app/Module/CensusAssistantModule.php b/app/Module/CensusAssistantModule.php index 4293b9a395..dacb79b53f 100644 --- a/app/Module/CensusAssistantModule.php +++ b/app/Module/CensusAssistantModule.php @@ -203,7 +203,7 @@ class CensusAssistantModule extends AbstractModule implements ModuleInterface * Add prefix cell (store XREF and drag/drop) * Add suffix cell (delete button) * - * @param CensusInterface $census + * @param CensusInterface $census§ * * @return string */ diff --git a/app/Services/ModuleService.php b/app/Services/ModuleService.php index 8212782e9a..057103c151 100644 --- a/app/Services/ModuleService.php +++ b/app/Services/ModuleService.php @@ -347,13 +347,13 @@ class ModuleService } /** - * Load a module in a separate scope, to prevent it from modifying local variables. + * Load a module in a static scope, to prevent it from modifying local or object variables. * * @param string $filename * * @return mixed */ - private function load(string $filename) + private static function load(string $filename) { return include $filename; } diff --git a/app/Statistics/Google/ChartBirth.php b/app/Statistics/Google/ChartBirth.php index c64f53deb6..ebf3b7bdd9 100644 --- a/app/Statistics/Google/ChartBirth.php +++ b/app/Statistics/Google/ChartBirth.php @@ -21,7 +21,6 @@ use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; use Fisharebest\Webtrees\Statistics\Helper\Century; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; use Illuminate\Database\Capsule\Manager as DB; diff --git a/app/Statistics/Google/ChartCommonGiven.php b/app/Statistics/Google/ChartCommonGiven.php index 3bc9be1ef6..5b11c4ea9f 100644 --- a/app/Statistics/Google/ChartCommonGiven.php +++ b/app/Statistics/Google/ChartCommonGiven.php @@ -20,7 +20,6 @@ namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; -use Fisharebest\Webtrees\Theme; /** * diff --git a/app/Statistics/Google/ChartCommonSurname.php b/app/Statistics/Google/ChartCommonSurname.php index 1138535a2e..826f42b803 100644 --- a/app/Statistics/Google/ChartCommonSurname.php +++ b/app/Statistics/Google/ChartCommonSurname.php @@ -20,7 +20,6 @@ namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; /** diff --git a/app/Statistics/Google/ChartDeath.php b/app/Statistics/Google/ChartDeath.php index 05ccd2e42c..a516230cbd 100644 --- a/app/Statistics/Google/ChartDeath.php +++ b/app/Statistics/Google/ChartDeath.php @@ -21,7 +21,6 @@ use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\Helper\Century; use Fisharebest\Webtrees\Statistics\AbstractGoogle; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; use Illuminate\Database\Capsule\Manager as DB; diff --git a/app/Statistics/Google/ChartDistribution.php b/app/Statistics/Google/ChartDistribution.php index f8d3285445..2b46fa53a0 100644 --- a/app/Statistics/Google/ChartDistribution.php +++ b/app/Statistics/Google/ChartDistribution.php @@ -24,7 +24,6 @@ use Fisharebest\Webtrees\Statistics\Helper\Country; use Fisharebest\Webtrees\Statistics\AbstractGoogle; use Fisharebest\Webtrees\Statistics\Repository\PlaceRepository; use Fisharebest\Webtrees\Statistics\Repository\IndividualRepository; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; /** diff --git a/app/Statistics/Google/ChartDivorce.php b/app/Statistics/Google/ChartDivorce.php index 9b521acd90..317d77d37d 100644 --- a/app/Statistics/Google/ChartDivorce.php +++ b/app/Statistics/Google/ChartDivorce.php @@ -21,7 +21,6 @@ use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; use Fisharebest\Webtrees\Statistics\Helper\Century; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; use Illuminate\Database\Capsule\Manager as DB; diff --git a/app/Statistics/Google/ChartFamilyLargest.php b/app/Statistics/Google/ChartFamilyLargest.php index 3ca6857350..9abd8273e1 100644 --- a/app/Statistics/Google/ChartFamilyLargest.php +++ b/app/Statistics/Google/ChartFamilyLargest.php @@ -21,7 +21,6 @@ use Fisharebest\Webtrees\Family; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; use Illuminate\Database\Capsule\Manager as DB; diff --git a/app/Statistics/Google/ChartFamilyWithSources.php b/app/Statistics/Google/ChartFamilyWithSources.php index 707d264791..21e06f4aeb 100644 --- a/app/Statistics/Google/ChartFamilyWithSources.php +++ b/app/Statistics/Google/ChartFamilyWithSources.php @@ -20,7 +20,6 @@ namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; -use Fisharebest\Webtrees\Theme; /** * diff --git a/app/Statistics/Google/ChartIndividual.php b/app/Statistics/Google/ChartIndividual.php index 649f7e3ff4..274b152078 100644 --- a/app/Statistics/Google/ChartIndividual.php +++ b/app/Statistics/Google/ChartIndividual.php @@ -20,7 +20,6 @@ namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; -use Fisharebest\Webtrees\Theme; /** * diff --git a/app/Statistics/Google/ChartMarriage.php b/app/Statistics/Google/ChartMarriage.php index 4d42347e07..b69c90d0d2 100644 --- a/app/Statistics/Google/ChartMarriage.php +++ b/app/Statistics/Google/ChartMarriage.php @@ -21,7 +21,6 @@ use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\Helper\Century; use Fisharebest\Webtrees\Statistics\AbstractGoogle; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; use Illuminate\Database\Capsule\Manager as DB; diff --git a/app/Statistics/Google/ChartMedia.php b/app/Statistics/Google/ChartMedia.php index bdc91c855d..ddd97c71e3 100644 --- a/app/Statistics/Google/ChartMedia.php +++ b/app/Statistics/Google/ChartMedia.php @@ -21,7 +21,6 @@ use Fisharebest\Webtrees\GedcomTag; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; -use Fisharebest\Webtrees\Theme; /** * diff --git a/app/Statistics/Google/ChartMortality.php b/app/Statistics/Google/ChartMortality.php index 4ffe363953..839ed6b747 100644 --- a/app/Statistics/Google/ChartMortality.php +++ b/app/Statistics/Google/ChartMortality.php @@ -21,7 +21,6 @@ use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; use Fisharebest\Webtrees\Statistics\Repository\IndividualRepository; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; /** diff --git a/app/Statistics/Google/ChartSex.php b/app/Statistics/Google/ChartSex.php index 719090e4fd..60eb1d5f88 100644 --- a/app/Statistics/Google/ChartSex.php +++ b/app/Statistics/Google/ChartSex.php @@ -21,7 +21,6 @@ use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Statistics\AbstractGoogle; use Fisharebest\Webtrees\Statistics\Repository\IndividualRepository; -use Fisharebest\Webtrees\Theme; use Fisharebest\Webtrees\Tree; /** |
