Completed
Push — master ( b40ea8...2ebfe4 )
by Jonathan
05:27
created
src/Webtrees/Module/Sosa/Views/SosaListIndiView.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	 */
34 34
     protected function renderContent() { 
35 35
         
36
-        if($this->data->get('has_sosa', false)) {
36
+        if ($this->data->get('has_sosa', false)) {
37 37
             $table_id = $this->data->get('table_id');            
38 38
         ?>   
39 39
         
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 				</thead>
177 177
 			<tbody>
178 178
 			
179
-			<?php foreach($this->data->get('sosa_list') as $sosa => $person) {
179
+			<?php foreach ($this->data->get('sosa_list') as $sosa => $person) {
180 180
 			    /** @var \Fisharebest\Webtrees\Individual $person */
181 181
 			    if ($person->isPendingAddtion()) {
182 182
 			        $class = ' class="new"';
@@ -193,17 +193,17 @@  discard block
 block discarded – undo
193 193
         			<?php list($surn_givn, $givn_surn) = FunctionsPrintLists::sortableNames($person); ?>
194 194
         			<td colspan="2" data-sort="<?= Filter::escapeHtml($givn_surn) ?>">
195 195
         			<?php foreach ($person->getAllNames() as $num=>$name) {
196
-        				if ($name['type']=='NAME') {
197
-        					$title='';
196
+        				if ($name['type'] == 'NAME') {
197
+        					$title = '';
198 198
         				} else {
199
-        					$title='title="'.strip_tags(GedcomTag::getLabel($name['type'], $person)).'"';
199
+        					$title = 'title="'.strip_tags(GedcomTag::getLabel($name['type'], $person)).'"';
200 200
         				}
201
-        				if ($num==$person->getPrimaryName()) {
202
-        					$class=' class="name2"';
203
-        					$sex_image=$person->getSexImage();
201
+        				if ($num == $person->getPrimaryName()) {
202
+        					$class = ' class="name2"';
203
+        					$sex_image = $person->getSexImage();
204 204
         				} else {
205
-        					$class='';
206
-        					$sex_image='';
205
+        					$class = '';
206
+        					$sex_image = '';
207 207
         				} ?>
208 208
         				<a <?= $title.' '.$class; ?> href="<?= $person->getHtmlUrl() ?>">
209 209
         					<?= \Fisharebest\Webtrees\Functions\FunctionsPrint::highlightSearchHits($name['full']) ?>
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
         			<?php } ?>
263 263
         			</td>
264 264
         			<?php if (ModuleManager::getInstance()->isOperational(Constants::MODULE_MAJ_ISSOURCED_NAME)) {
265
-        			    if($person->isDead()) {
265
+        			    if ($person->isDead()) {
266 266
         			        $isDSourced = $dperson->isDeathSourced(); ?>
267 267
 				   	<td data-sort=<?= $isDSourced ?>><?= FunctionsPrint::formatIsSourcedIcon('E', $isDSourced, 'DEAT', 1, 'medium') ?></td>
268 268
 					<?php } else { ?>
@@ -309,10 +309,10 @@  discard block
 block discarded – undo
309 309
 							<?= I18N::translate('Number of Sosa ancestors: %1$s known / %2$s theoretical (%3$s)',
310 310
 							    I18N::number($this->data->get('sosa_count')),
311 311
 							    I18N::number($this->data->get('sosa_theo')), 
312
-							    I18N::percentage($this->data->get('sosa_ratio'),2)
312
+							    I18N::percentage($this->data->get('sosa_ratio'), 2)
313 313
 							    ) ?>
314
-							<?php if($this->data->get('sosa_hidden') > 0) {
315
-							    echo '['. I18N::translate('%s hidden', I18N::number($this->data->get('sosa_hidden'))).']';
314
+							<?php if ($this->data->get('sosa_hidden') > 0) {
315
+							    echo '['.I18N::translate('%s hidden', I18N::number($this->data->get('sosa_hidden'))).']';
316 316
 							} ?>
317 317
 						</div>
318 318
 					</th>
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 								<button type="button" class="ui-state-default btn-toggle-parents">
325 325
 									<?= I18N::translate('Show parents') ?>
326 326
 								</button>
327
-								<button id="btn-toggle-statistics-<?= $table_id ;?>" type="button" class="ui-state-default btn-toggle-statistics">
327
+								<button id="btn-toggle-statistics-<?= $table_id; ?>" type="button" class="ui-state-default btn-toggle-statistics">
328 328
 									<?= I18N::translate('Show statistics charts') ?>
329 329
 								</button>
330 330
 							</div>
Please login to merge, or discard this patch.