Skip to content
Snippets Groups Projects
Unverified Commit 3153f87f authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

Issue #2998535 by e0ipso: Fix DCS violations

parent 90525cf7
Branches
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ class Request {
* True if it has parameters.
*/
public function hasParams() {
return !(is_null($this->params) || $this->params->_empty());
return !(is_null($this->params) || $this->params->isEmpty());
}
/**
......
......@@ -65,10 +65,10 @@ class RpcResponseFactory extends TransformationBase {
/**
* Sets the schema for the response output.
*
* @param array $result_schema
* @param array|null $result_schema
* The array of the response.
*/
public function setOutputSchema(array $result_schema) {
public function setOutputSchema($result_schema) {
$schema = Json::decode(file_get_contents(__DIR__ . '/response-schema.json'));
$schema['properties']['result'] = $result_schema;
$this->outputValidator = new JsonSchemaValidator(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment