summaryrefslogtreecommitdiff
path: root/app/Api/BaseApi.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-25 14:34:46 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-25 14:34:46 -0400
commit922e0fb6de06a98774418612e0b0f75af72b6dbb (patch)
treedff0b7c2c8cd0515b22c8f320cdcf58c47515a98 /app/Api/BaseApi.php
parentfc93203e4db044d37c1686fef0efb1ac1d6ac4b8 (diff)
Rewrite integration tests to run with Docker containers
Diffstat (limited to 'app/Api/BaseApi.php')
-rw-r--r--app/Api/BaseApi.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Api/BaseApi.php b/app/Api/BaseApi.php
index 9f69aa65..8f18802c 100644
--- a/app/Api/BaseApi.php
+++ b/app/Api/BaseApi.php
@@ -71,4 +71,15 @@ abstract class BaseApi extends Base
return $projects;
}
+
+ protected function filterValues(array $values)
+ {
+ foreach ($values as $key => $value) {
+ if (is_null($value)) {
+ unset($values[$key]);
+ }
+ }
+
+ return $values;
+ }
}