Skip to content

Commit e5a9fea

Browse files
committed
Fix Scrutinizer issues
1 parent 6b02b1c commit e5a9fea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/CacheKey.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,11 @@ protected function getTypeClause($where) : string
114114
return str_replace(" ", "_", $type);
115115
}
116116

117-
protected function getValuesClause(array $where = null) : string
117+
protected function getValuesClause(array $where = []) : string
118118
{
119-
if (in_array($where["type"], ["NotNull", "Null"])) {
119+
if (! $where
120+
|| in_array($where["type"], ["NotNull", "Null"])
121+
) {
120122
return "";
121123
}
122124

@@ -171,7 +173,7 @@ protected function getWhereClauses(array $wheres = []) : string
171173
$value .= $this->getColumnClauses($where);
172174
$value .= $this->getRawClauses($where);
173175
$value .= $this->getInAndNotInClauses($where);
174-
$value .= $this->getOtherClauses($where, $carry);
176+
$value .= $this->getOtherClauses($where);
175177

176178
return $value;
177179
});

0 commit comments

Comments
 (0)