Skip to content

Commit

Permalink
Start error messages with a capital letter
Browse files Browse the repository at this point in the history
  • Loading branch information
erayd committed Feb 23, 2017
1 parent decf439 commit e661e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JsonSchema/Constraints/SchemaConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function check(&$element, $schema = null, JsonPointer $path = null, $i =
// schema is defined, assume self::DEFAULT_SCHEMA_SPEC (currently draft-04).
if ($this->factory->getConfig(self::CHECK_MODE_VALIDATE_SCHEMA)) {
if (!$this->getTypeCheck()->isObject($validationSchema)) {
throw new RuntimeException('cannot validate non-object schema');
throw new RuntimeException('Cannot validate non-object schema');
}
if ($this->getTypeCheck()->propertyExists($validationSchema, '$schema')) {
$schemaSpec = $this->getTypeCheck()->propertyGet($validationSchema, '$schema');
Expand Down Expand Up @@ -76,7 +76,7 @@ public function check(&$element, $schema = null, JsonPointer $path = null, $i =
$validator->validate($validationSchema, $schemaStorage->getSchema($schemaSpec));
if (!$validator->isValid()) {
$this->addErrors($validator->getErrors());
$this->addError($path, 'schema is not valid', 'schema');
$this->addError($path, 'Schema is not valid', 'schema');
}
}

Expand Down

0 comments on commit e661e53

Please sign in to comment.