Skip to content

Commit d5d2c30

Browse files
authored
Merge pull request #55 from one2tek/1.x-2.x-syntax-error-unexpected-)
[1.x | 2.x] Fix syntax error unexpected ')
2 parents 7ed1c8d + e5fdaed commit d5d2c30

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Controllers/LaravelController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ protected function parseFilters(array $filters, $or = false, $defaultOperator =
274274
throw new LarapiException('Filter is not well formed.');
275275
}
276276

277-
if (!in_array($operator, $allowedOperators, )) {
277+
if (!in_array($operator, $allowedOperators)) {
278278
throw new LarapiException('Operator '. $operator. ' is not supported.');
279279
}
280280

@@ -445,4 +445,4 @@ private function validateResourceOptions(array $data)
445445
throw new LarapiException('Cannot use page option without limit option.');
446446
}
447447
}
448-
}
448+
}

src/Database/EloquentBuilderTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,4 @@ private function hasCustomMethod($type, $key)
308308

309309
return false;
310310
}
311-
}
311+
}

0 commit comments

Comments
 (0)