Skip to content

Commit 7f4973c

Browse files
committed
Fix code style
1 parent 8db97e5 commit 7f4973c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Contao/Widgets/MultiColumnWizard.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ function ($value) {
995995
$arrHiddenHeader,
996996
$onlyRows
997997
);
998-
} elseif ($this->columnTemplate != '') {
998+
} elseif ($this->columnTemplate !== '') {
999999
$strOutput = $this->generateTemplateOutput(
10001000
$arrUnique,
10011001
$arrDatepicker,
@@ -1440,7 +1440,7 @@ protected function generateTable(
14401440

14411441
$return = '';
14421442

1443-
if ($onlyRows == false) {
1443+
if ($onlyRows === false) {
14441444
// Generate header fields if not all are hidden.
14451445
if (\count($this->columnFields) !== \count($arrHiddenHeader)) {
14461446
foreach ($this->columnFields as $strKey => $arrField) {
@@ -1498,7 +1498,7 @@ protected function generateTable(
14981498
$this->strId
14991499
);
15001500

1501-
if ($this->columnTemplate == '' && isset($arrHeaderItems) && \is_array($arrHeaderItems)) {
1501+
if ($this->columnTemplate === '' && isset($arrHeaderItems) && \is_array($arrHeaderItems)) {
15021502
$return .= \sprintf('<thead><tr>%s<th></th></tr></thead>', \implode("\n ", $arrHeaderItems));
15031503
}
15041504

@@ -1510,29 +1510,29 @@ protected function generateTable(
15101510
foreach ($arrItems as $k => $arrValue) {
15111511
$return .= \sprintf('<tr data-rowId="%s">', $k);
15121512
foreach ($arrValue as $itemValue) {
1513-
if ($itemValue['hide'] == true) {
1513+
if ($itemValue['hide'] === true) {
15141514
$itemValue['tl_class'] .= ' hidden';
15151515
}
15161516

15171517
$return .= '<td'
1518-
. ($itemValue['valign'] != '' ? ' valign="' . $itemValue['valign'] . '"' : '')
1519-
. ($itemValue['tl_class'] != '' ? ' class="' . $itemValue['tl_class'] . '"' : '')
1518+
. ($itemValue['valign'] !== '' ? ' valign="' . $itemValue['valign'] . '"' : '')
1519+
. ($itemValue['tl_class'] !== '' ? ' class="' . $itemValue['tl_class'] . '"' : '')
15201520
. '>'
15211521
. $itemValue['entry']
15221522
. '</td>';
15231523
}
15241524

15251525
// insert buttons at the very end
15261526
$return .= '<td class="operations col_last"'
1527-
. (($this->buttonPos != '') ? ' valign="' . $this->buttonPos . '" ' : '')
1527+
. (($this->buttonPos !== '') ? ' valign="' . $this->buttonPos . '" ' : '')
15281528
. '>'
15291529
. $strHidden;
15301530
$return .= $this->generateButtonString($k);
15311531
$return .= '</td>';
15321532
$return .= '</tr>';
15331533
}
15341534

1535-
if ($onlyRows == false) {
1535+
if ($onlyRows === false) {
15361536
$return .= '</tbody></table>';
15371537
$return .= $this->generateScriptBlock($this->strId, $this->maxCount, $this->minCount);
15381538
} else {

0 commit comments

Comments
 (0)