Last active
November 12, 2019 22:07
-
-
Save SignpostMarv/35ebb5220b76b115539b38d06d6d1dc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) src\JsonSchema\Constraints\CollectionConstraint.php ([33mno_superfluous_phpdoc_tags, phpdoc_align[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -57,10 +57,9 @@[39m | |
/** | |
* Validates the items | |
* | |
[31m- * @param array $value[39m | |
[31m- * @param \stdClass $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param string $i[39m | |
[32m+ * @param array $value[39m | |
[32m+ * @param \stdClass $schema[39m | |
[32m+ * @param string $i[39m | |
*/ | |
protected function validateItems(&$value, $schema = null, JsonPointer $path = null, $i = null) | |
{ | |
[33m ----------- end diff -----------[39m | |
2) src\JsonSchema\Constraints\Constraint.php ([33mno_superfluous_phpdoc_tags, phpdoc_trim, phpdoc_align[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -56,10 +56,9 @@[39m | |
/** | |
* Validates an array | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param mixed $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param mixed $i[39m | |
*/ | |
protected function checkArray(&$value, $schema = null, JsonPointer $path = null, $i = null) | |
{ | |
[36m@@ -72,12 +71,11 @@[39m | |
/** | |
* Validates an object | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param mixed $properties[39m | |
[31m- * @param mixed $additionalProperties[39m | |
[31m- * @param mixed $patternProperties[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param mixed $properties[39m | |
[32m+ * @param mixed $additionalProperties[39m | |
[32m+ * @param mixed $patternProperties[39m | |
*/ | |
protected function checkObject(&$value, $schema = null, JsonPointer $path = null, $properties = null, | |
$additionalProperties = null, $patternProperties = null, $appliedDefaults = array()) | |
[36m@@ -91,10 +89,9 @@[39m | |
/** | |
* Validates the type of a property | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param mixed $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param mixed $i[39m | |
*/ | |
protected function checkType(&$value, $schema = null, JsonPointer $path = null, $i = null) | |
{ | |
[36m@@ -107,10 +104,9 @@[39m | |
/** | |
* Checks a undefined element | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param mixed $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param mixed $i[39m | |
*/ | |
protected function checkUndefined(&$value, $schema = null, JsonPointer $path = null, $i = null, $fromDefault = false) | |
{ | |
[36m@@ -124,10 +120,9 @@[39m | |
/** | |
* Checks a string element | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param mixed $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param mixed $i[39m | |
*/ | |
protected function checkString($value, $schema = null, JsonPointer $path = null, $i = null) | |
{ | |
[36m@@ -156,10 +151,9 @@[39m | |
/** | |
* Checks a enum element | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param mixed $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param mixed $i[39m | |
*/ | |
protected function checkEnum($value, $schema = null, JsonPointer $path = null, $i = null) | |
{ | |
[36m@@ -172,10 +166,9 @@[39m | |
/** | |
* Checks a const element | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param mixed $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param mixed $i[39m | |
*/ | |
protected function checkConst($value, $schema = null, JsonPointer $path = null, $i = null) | |
{ | |
[36m@@ -188,10 +181,9 @@[39m | |
/** | |
* Checks format of an element | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param mixed $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param mixed $i[39m | |
*/ | |
protected function checkFormat($value, $schema = null, JsonPointer $path = null, $i = null) | |
{ | |
[36m@@ -212,8 +204,6 @@[39m | |
} | |
/** | |
[31m- * @param JsonPointer $pointer[39m | |
[31m- *[39m | |
* @return string property path | |
*/ | |
protected function convertJsonPointerIntoPropertyPath(JsonPointer $pointer) | |
[33m ----------- end diff -----------[39m | |
3) src\JsonSchema\Constraints\ConstraintInterface.php ([33mno_superfluous_phpdoc_tags, phpdoc_trim, phpdoc_align[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -28,8 +28,6 @@[39m | |
/** | |
* adds errors to this validator | |
[31m- *[39m | |
[31m- * @param array $errors[39m | |
*/ | |
public function addErrors(array $errors); | |
[36m@@ -54,10 +52,9 @@[39m | |
* | |
* @abstract | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer|null $path[39m | |
[31m- * @param mixed $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param mixed $i[39m | |
* | |
* @throws \JsonSchema\Exception\ExceptionInterface | |
*/ | |
[33m ----------- end diff -----------[39m | |
4) src\JsonSchema\Constraints\Factory.php ([33mno_superfluous_phpdoc_tags, phpdoc_trim[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -211,8 +211,6 @@[39m | |
/** | |
* Set the error context | |
[31m- *[39m | |
[31m- * @param string $validationContext[39m | |
*/ | |
public function setErrorContext($errorContext) | |
{ | |
[33m ----------- end diff -----------[39m | |
5) src\JsonSchema\Constraints\UndefinedConstraint.php ([33mno_superfluous_phpdoc_tags, phpdoc_align[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -55,10 +55,9 @@[39m | |
/** | |
* Validates the value against the types | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer $path[39m | |
[31m- * @param string $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param string $i[39m | |
*/ | |
public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = null) | |
{ | |
[36m@@ -106,10 +105,9 @@[39m | |
/** | |
* Validates common properties | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer $path[39m | |
[31m- * @param string $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param string $i[39m | |
*/ | |
protected function validateCommonProperties(&$value, $schema = null, JsonPointer $path, $i = '') | |
{ | |
[36m@@ -302,10 +300,9 @@[39m | |
/** | |
* Validate allOf, anyOf, and oneOf properties | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $schema[39m | |
[31m- * @param JsonPointer $path[39m | |
[31m- * @param string $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $schema[39m | |
[32m+ * @param string $i[39m | |
*/ | |
protected function validateOfProperties(&$value, $schema, JsonPointer $path, $i = '') | |
{ | |
[36m@@ -377,10 +374,9 @@[39m | |
/** | |
* Validate dependencies | |
* | |
[31m- * @param mixed $value[39m | |
[31m- * @param mixed $dependencies[39m | |
[31m- * @param JsonPointer $path[39m | |
[31m- * @param string $i[39m | |
[32m+ * @param mixed $value[39m | |
[32m+ * @param mixed $dependencies[39m | |
[32m+ * @param string $i[39m | |
*/ | |
protected function validateDependencies($value, $dependencies, JsonPointer $path, $i = '') | |
{ | |
[33m ----------- end diff -----------[39m | |
6) src\JsonSchema\Entity\JsonPointer.php ([33mno_superfluous_phpdoc_tags, phpdoc_trim[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -113,8 +113,6 @@[39m | |
} | |
/** | |
[31m- * @param array $propertyPaths[39m | |
[31m- *[39m | |
* @return JsonPointer | |
*/ | |
public function withPropertyPaths(array $propertyPaths) | |
[33m ----------- end diff -----------[39m | |
7) src\JsonSchema\Uri\Retrievers\PredefinedArray.php ([33mno_superfluous_phpdoc_tags[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -28,7 +28,6 @@[39m | |
/** | |
* Constructor | |
* | |
[31m- * @param array $schemas[39m | |
* @param string $contentType | |
*/ | |
public function __construct(array $schemas, $contentType = Validator::SCHEMA_MEDIA_TYPE) | |
[33m ----------- end diff -----------[39m | |
8) src\JsonSchema\Uri\UriResolver.php ([33mno_superfluous_phpdoc_tags, phpdoc_trim_consecutive_blank_line_separation[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -51,8 +51,6 @@[39m | |
/** | |
* Builds a URI based on n array with the main components | |
* | |
[31m- * @param array $components[39m | |
[31m- *[39m | |
* @return string | |
*/ | |
public function generate(array $components) | |
[33m ----------- end diff -----------[39m | |
9) src\JsonSchema\Uri\UriRetriever.php ([33mno_superfluous_phpdoc_tags, phpdoc_trim_consecutive_blank_line_separation[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -221,8 +221,6 @@[39m | |
/** | |
* Set the URI Retriever | |
* | |
[31m- * @param UriRetrieverInterface $uriRetriever[39m | |
[31m- *[39m | |
* @return $this for chaining | |
*/ | |
public function setUriRetriever(UriRetrieverInterface $uriRetriever) | |
[36m@@ -265,8 +263,6 @@[39m | |
/** | |
* Builds a URI based on n array with the main components | |
[31m- *[39m | |
[31m- * @param array $components[39m | |
* | |
* @return string | |
*/ | |
[33m ----------- end diff -----------[39m | |
10) tests\Constraints\TypeTest.php ([33mno_superfluous_phpdoc_tags, phpdoc_align[39m) | |
[33m ---------- begin diff ----------[39m | |
[31m--- Original[39m | |
[32m+++ New[39m | |
[36m@@ -69,8 +69,7 @@[39m | |
/** | |
* Helper to assert an error message | |
* | |
[31m- * @param string $expected[39m | |
[31m- * @param TypeConstraint $actual[39m | |
[32m+ * @param string $expected[39m | |
*/ | |
private function assertTypeConstraintError($expected, TypeConstraint $actual) | |
{ | |
[33m ----------- end diff -----------[39m | |
Checked all files in 0.650 seconds, 12.000 MB memory used |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment