Skip to content

Commit 7b975b5

Browse files
committed
SCA: simplify some ifs in favour of null coalescing operator
1 parent a6a781c commit 7b975b5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Helper/Table.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,7 @@ public function setColumnStyle($columnIndex, $name)
180180
*/
181181
public function getColumnStyle($columnIndex)
182182
{
183-
if (isset($this->columnStyles[$columnIndex])) {
184-
return $this->columnStyles[$columnIndex];
185-
}
186-
187-
return $this->getStyle();
183+
return $this->columnStyles[$columnIndex] ?? $this->getStyle();
188184
}
189185

190186
/**

0 commit comments

Comments
 (0)