Completed
Pull Request — master (#1593)
by Rico
18:25 queued 08:40
created
resources/views/blocks/events-list.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,12 @@
 block discarded – undo
3 3
 
4 4
 <?php if ($summary !== ''): ?>
5 5
 	<span class="details_label"><?= $summary ?></span>
6
-<?php else: ?>
6
+<?php else {
7
+	: ?>
7 8
 	<?php foreach ($facts as $fact): ?>
8
-		<?php $record = $fact->getParent(); ?>
9
+		<?php $record = $fact->getParent();
10
+}
11
+?>
9 12
 		<a href="<?= e($record->url()) ?>" class="list_item name2">
10 13
 			<?= $record->getFullName() ?>
11 14
 		</a>
Please login to merge, or discard this patch.
resources/views/blocks/events-table.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,8 @@  discard block
 block discarded – undo
3 3
 
4 4
 <?php if ($summary !== ''): ?>
5 5
 	<span class="details_label"><?= $summary ?></span>
6
-<?php else: ?>
6
+<?php else {
7
+	: ?>
7 8
 	<table class="table table-sm datatable wt-table-events" data-info="false" data-paging="false"
8 9
 	       data-searching="false" data-sorting="<?= e('[[1, "asc" ]]') ?>">
9 10
 		<thead>
@@ -17,7 +18,9 @@  discard block
 block discarded – undo
17 18
 		<tbody>
18 19
 
19 20
 			<?php foreach ($facts as $fact): ?>
20
-				<?php $record = $fact->getParent(); ?>
21
+				<?php $record = $fact->getParent();
22
+}
23
+?>
21 24
 				<tr>
22 25
 					<td data-sort="<?= e($record->getSortName()) ?>">
23 26
 						<a href="<?= e($record->url()) ?>">
Please login to merge, or discard this patch.
app/Http/Controllers/ReportEngineController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/ListController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/DescendantsChartController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Http/Controllers/ModuleController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 
@@ -43,6 +43,6 @@  discard block
 block discarded – undo
43 43
 			throw new NotFoundHttpException('Not found');
44 44
 		}
45 45
 
46
-		$function = $request->getMethod() ;
46
+		$function = $request->getMethod();
47 47
 	}
48 48
 }
Please login to merge, or discard this patch.
app/Http/Controllers/CompactTreeChartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/AbstractChartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/AncestorsChartController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
 		$this->checkModuleIsActive($tree, 'ancestors_chart');
106 106
 
107
-		$xref         = $request->get('xref');
107
+		$xref = $request->get('xref');
108 108
 		$individual = Individual::getInstance($xref, $tree);
109 109
 
110 110
 		$this->checkIndividualAccess($individual);
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
 		$ancestors = $this->sosaStradonitzAncestors($individual, $generations);
124 124
 
125
-		switch($chart_style) {
125
+		switch ($chart_style) {
126 126
 			case self::CHART_STYLE_LIST:
127 127
 			default:
128 128
 				return $this->ancestorsList($individual, $generations);
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 			}
241 241
 		}
242 242
 
243
-		$html =  FunctionsPrintLists::familyTable($families);
243
+		$html = FunctionsPrintLists::familyTable($families);
244 244
 
245 245
 		return new Response($html);
246 246
 	}
Please login to merge, or discard this patch.