@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * You should have received a copy of the GNU General Public License |
| 14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 | */ |
| 16 | -declare(strict_types=1); |
|
| 16 | +declare(strict_types = 1); |
|
| 17 | 17 | |
| 18 | 18 | namespace Fisharebest\Webtrees\Http\Controllers; |
| 19 | 19 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | <?php use Fisharebest\Webtrees\Theme; ?> |
| 4 | 4 | <?php use Fisharebest\Webtrees\View; ?> |
| 5 | 5 | |
| 6 | -<form method="post" action="<?= e(Html::url('module.php' ,['mod' => 'individuals', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> |
|
| 6 | +<form method="post" action="<?= e(Html::url('module.php', ['mod' => 'individuals', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> |
|
| 7 | 7 | <input type="search" name="sb_indi_name" id="sb_indi_name" placeholder="<?= I18N::translate('Search') ?>"> |
| 8 | 8 | <p> |
| 9 | 9 | <?php foreach ($initials as $letter => $count): ?> |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * You should have received a copy of the GNU General Public License |
| 14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 | */ |
| 16 | -declare(strict_types=1); |
|
| 16 | +declare(strict_types = 1); |
|
| 17 | 17 | |
| 18 | 18 | namespace Fisharebest\Webtrees\Http\Controllers; |
| 19 | 19 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | <?php use Fisharebest\Webtrees\Theme; ?> |
| 4 | 4 | <?php use Fisharebest\Webtrees\View; ?> |
| 5 | 5 | |
| 6 | -<form method="post" action="<?= e(Html::url('module.php' ,['mod' => 'families', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> |
|
| 6 | +<form method="post" action="<?= e(Html::url('module.php', ['mod' => 'families', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> |
|
| 7 | 7 | <input type="search" name="sb_fam_name" id="sb_fam_name" placeholder="<?= I18N::translate('Search') ?>"> |
| 8 | 8 | <p> |
| 9 | 9 | <?php foreach ($initials as $letter => $count): ?> |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * You should have received a copy of the GNU General Public License |
| 14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 | */ |
| 16 | -declare(strict_types=1); |
|
| 16 | +declare(strict_types = 1); |
|
| 17 | 17 | |
| 18 | 18 | namespace Fisharebest\Webtrees\Http\Controllers; |
| 19 | 19 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * You should have received a copy of the GNU General Public License |
| 14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 | */ |
| 16 | -declare(strict_types=1); |
|
| 16 | +declare(strict_types = 1); |
|
| 17 | 17 | |
| 18 | 18 | namespace Fisharebest\Webtrees\Http\Middleware; |
| 19 | 19 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * You should have received a copy of the GNU General Public License |
| 14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 | */ |
| 16 | -declare(strict_types=1); |
|
| 16 | +declare(strict_types = 1); |
|
| 17 | 17 | |
| 18 | 18 | namespace Fisharebest\Webtrees\Http\Middleware; |
| 19 | 19 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * You should have received a copy of the GNU General Public License |
| 14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 | */ |
| 16 | -declare(strict_types=1); |
|
| 16 | +declare(strict_types = 1); |
|
| 17 | 17 | |
| 18 | 18 | namespace Fisharebest\Webtrees\Http\Controllers; |
| 19 | 19 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | * You should have received a copy of the GNU General Public License |
| 14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 | */ |
| 16 | -declare(strict_types=1); |
|
| 16 | +declare(strict_types = 1); |
|
| 17 | 17 | |
| 18 | 18 | namespace Fisharebest\Webtrees\Http\Controllers; |
| 19 | 19 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $this->checkModuleIsActive($tree, 'descendancy_chart'); |
| 104 | 104 | |
| 105 | - $xref = $request->get('xref'); |
|
| 105 | + $xref = $request->get('xref'); |
|
| 106 | 106 | $individual = Individual::getInstance($xref, $tree); |
| 107 | 107 | |
| 108 | 108 | $this->checkIndividualAccess($individual); |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | $descendants = $this->descendants($individual, $generations, []); |
| 121 | 121 | |
| 122 | - switch($chart_style) { |
|
| 122 | + switch ($chart_style) { |
|
| 123 | 123 | case self::CHART_STYLE_LIST: |
| 124 | 124 | default: |
| 125 | 125 | return $this->descendantsList($individual, $generations); |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | * @return Response |
| 340 | 340 | */ |
| 341 | 341 | private function descendantsFamilies(array $descendants): Response { |
| 342 | - $families = []; |
|
| 342 | + $families = []; |
|
| 343 | 343 | foreach ($descendants as $individual) { |
| 344 | 344 | foreach ($individual->getChildFamilies() as $family) { |
| 345 | 345 | $families[$family->getXref()] = $family; |