mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
17 lines
366 B
PHP
17 lines
366 B
PHP
<?php
|
|
|
|
namespace OCA\Signer\Controller;
|
|
|
|
use OCA\Signer\Exception\SignerException;
|
|
|
|
trait HandleParamsTrait
|
|
{
|
|
protected function checkParams(array $params): void
|
|
{
|
|
foreach ($params as $key => $param) {
|
|
if (empty($param)) {
|
|
throw new SignerException("parameter '{$key}' is required!", 400);
|
|
}
|
|
}
|
|
}
|
|
}
|