summaryrefslogtreecommitdiff
path: root/server/vendor/php-opencloud/common/src/Common/Api/AbstractApi.php
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-28 12:17:43 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-28 12:17:43 +0200
commit53f65de9d4163c9c095f2b8e87baca648c3645bd (patch)
tree37f167f38b25aa50bd7dd1429438c0245a280a28 /server/vendor/php-opencloud/common/src/Common/Api/AbstractApi.php
parent60cfe3ebc039df8d6a468a43a59e7fd8c2a16956 (diff)
parent804fa322d841d73ee7592885ec500dc94e91b9e6 (diff)
Test
Diffstat (limited to 'server/vendor/php-opencloud/common/src/Common/Api/AbstractApi.php')
-rwxr-xr-xserver/vendor/php-opencloud/common/src/Common/Api/AbstractApi.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/vendor/php-opencloud/common/src/Common/Api/AbstractApi.php b/server/vendor/php-opencloud/common/src/Common/Api/AbstractApi.php
index beee5e8..09988fd 100755
--- a/server/vendor/php-opencloud/common/src/Common/Api/AbstractApi.php
+++ b/server/vendor/php-opencloud/common/src/Common/Api/AbstractApi.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types = 1);
namespace OpenCloud\Common\Api;
@@ -6,27 +6,27 @@ abstract class AbstractApi implements ApiInterface
{
protected $params;
- protected function isRequired(array $param)
+ protected function isRequired(array $param): array
{
return array_merge($param, ['required' => true]);
}
- protected function notRequired(array $param)
+ protected function notRequired(array $param): array
{
return array_merge($param, ['required' => false]);
}
- protected function query(array $param)
+ protected function query(array $param): array
{
return array_merge($param, ['location' => AbstractParams::QUERY]);
}
- protected function url(array $param)
+ protected function url(array $param): array
{
return array_merge($param, ['location' => AbstractParams::URL]);
}
- public function documented(array $param)
+ public function documented(array $param): array
{
return array_merge($param, ['required' => true]);
}