Skip to content

Commit 253f9f5

Browse files
committed
chore: clean up double parentheses
1 parent 60eb3df commit 253f9f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ protected function shouldUpdate($row): bool
769769
{
770770
$id = $this->getIdValue($row);
771771

772-
return ! (in_array($id, [null, [], ''], true));
772+
return ! in_array($id, [null, [], ''], true);
773773
}
774774

775775
/**

system/View/Cell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function render(string $library, $params = null, int $ttl = 0, ?string $c
125125
public function prepareParams($params)
126126
{
127127
if (
128-
(in_array($params, [null, '', []], true))
128+
in_array($params, [null, '', []], true)
129129
|| (! is_string($params) && ! is_array($params))
130130
) {
131131
return [];

0 commit comments

Comments
 (0)