Use triple-equals in a few more places

This commit is contained in:
2022-12-25 13:44:54 +01:00
parent 2174e1d08b
commit 49390c372d
8 changed files with 17 additions and 17 deletions

View File

@@ -81,7 +81,7 @@ class FormView extends SubTemplate
if ($field['type'] != 'checkbox' && isset($field['label']))
echo '
<dt class="cont_', $field_id, isset($field['tab_class']) ? ' target target-' . $field['tab_class'] : '', '"', in_array($field_id, $this->missing) ? ' style="color: red"' : '', '>', $field['label'], '</dt>';
elseif ($field['type'] == 'checkbox' && isset($field['header']))
elseif ($field['type'] === 'checkbox' && isset($field['header']))
echo '
<dt class="cont_', $field_id, isset($field['tab_class']) ? ' target target-' . $field['tab_class'] : '', '"', in_array($field_id, $this->missing) ? ' style="color: red"' : '', '>', $field['header'], '</dt>';

View File

@@ -49,7 +49,7 @@ class TabularData extends SubTemplate
$th['href'] ? '<a href="' . $th['href'] . '">' . $th['label'] . '</a>' : $th['label'];
if ($th['sort_mode'] )
echo ' ', $th['sort_mode'] == 'up' ? '&uarr;' : '&darr;';
echo ' ', $th['sort_mode'] === 'up' ? '&uarr;' : '&darr;';
echo '</th>';
}

View File

@@ -15,7 +15,7 @@ abstract class Template
public function adopt(Template $template, $position = 'end')
{
// By default, we append it.
if ($position == 'end')
if ($position === 'end')
$this->_subtemplates[] = $template;
// We can also add it to the beginning of the list, though.
else