Skip to content

Commit c785649

Browse files
committed
Removed some form of code duplication shown by scrutinizer
1 parent dbac245 commit c785649

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Builder/Insert.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function __toString() {
208208
* @param bool|int|float|string $value
209209
* @return array
210210
*/
211-
private function addTo($fields, $field, $value) {
211+
private function addTo(array $fields, $field, $value) {
212212
if ($this->isFieldNameValid($field)) {
213213
throw new UnexpectedValueException('Field name is invalid');
214214
}
@@ -224,7 +224,7 @@ private function addTo($fields, $field, $value) {
224224
* @param callable $fn
225225
* @return $this
226226
*/
227-
private function addAllTo($data, $mask, $fn) {
227+
private function addAllTo(array $data, array $mask = null, $fn) {
228228
if($mask !== null) {
229229
$data = array_intersect_key($data, array_combine($mask, $mask));
230230
}

0 commit comments

Comments
 (0)