Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SignpostMarv/35ebb5220b76b115539b38d06d6d1dc2 to your computer and use it in GitHub Desktop.
Save SignpostMarv/35ebb5220b76b115539b38d06d6d1dc2 to your computer and use it in GitHub Desktop.
1) src\JsonSchema\Constraints\CollectionConstraint.php (no_superfluous_phpdoc_tags, phpdoc_align)
 ---------- begin diff ----------
--- Original
+++ New
@@ -57,10 +57,9 @@
/**
* Validates the items
*
- * @param array $value
- * @param \stdClass $schema
- * @param JsonPointer|null $path
- * @param string $i
+ * @param array $value
+ * @param \stdClass $schema
+ * @param string $i
*/
protected function validateItems(&$value, $schema = null, JsonPointer $path = null, $i = null)
{
 ----------- end diff -----------
2) src\JsonSchema\Constraints\Constraint.php (no_superfluous_phpdoc_tags, phpdoc_trim, phpdoc_align)
 ---------- begin diff ----------
--- Original
+++ New
@@ -56,10 +56,9 @@
/**
* Validates an array
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param mixed $i
*/
protected function checkArray(&$value, $schema = null, JsonPointer $path = null, $i = null)
{
@@ -72,12 +71,11 @@
/**
* Validates an object
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $properties
- * @param mixed $additionalProperties
- * @param mixed $patternProperties
+ * @param mixed $value
+ * @param mixed $schema
+ * @param mixed $properties
+ * @param mixed $additionalProperties
+ * @param mixed $patternProperties
*/
protected function checkObject(&$value, $schema = null, JsonPointer $path = null, $properties = null,
$additionalProperties = null, $patternProperties = null, $appliedDefaults = array())
@@ -91,10 +89,9 @@
/**
* Validates the type of a property
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param mixed $i
*/
protected function checkType(&$value, $schema = null, JsonPointer $path = null, $i = null)
{
@@ -107,10 +104,9 @@
/**
* Checks a undefined element
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param mixed $i
*/
protected function checkUndefined(&$value, $schema = null, JsonPointer $path = null, $i = null, $fromDefault = false)
{
@@ -124,10 +120,9 @@
/**
* Checks a string element
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param mixed $i
*/
protected function checkString($value, $schema = null, JsonPointer $path = null, $i = null)
{
@@ -156,10 +151,9 @@
/**
* Checks a enum element
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param mixed $i
*/
protected function checkEnum($value, $schema = null, JsonPointer $path = null, $i = null)
{
@@ -172,10 +166,9 @@
/**
* Checks a const element
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param mixed $i
*/
protected function checkConst($value, $schema = null, JsonPointer $path = null, $i = null)
{
@@ -188,10 +181,9 @@
/**
* Checks format of an element
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param mixed $i
*/
protected function checkFormat($value, $schema = null, JsonPointer $path = null, $i = null)
{
@@ -212,8 +204,6 @@
}
/**
- * @param JsonPointer $pointer
- *
* @return string property path
*/
protected function convertJsonPointerIntoPropertyPath(JsonPointer $pointer)
 ----------- end diff -----------
3) src\JsonSchema\Constraints\ConstraintInterface.php (no_superfluous_phpdoc_tags, phpdoc_trim, phpdoc_align)
 ---------- begin diff ----------
--- Original
+++ New
@@ -28,8 +28,6 @@
/**
* adds errors to this validator
- *
- * @param array $errors
*/
public function addErrors(array $errors);
@@ -54,10 +52,9 @@
*
* @abstract
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param mixed $i
*
* @throws \JsonSchema\Exception\ExceptionInterface
*/
 ----------- end diff -----------
4) src\JsonSchema\Constraints\Factory.php (no_superfluous_phpdoc_tags, phpdoc_trim)
 ---------- begin diff ----------
--- Original
+++ New
@@ -211,8 +211,6 @@
/**
* Set the error context
- *
- * @param string $validationContext
*/
public function setErrorContext($errorContext)
{
 ----------- end diff -----------
5) src\JsonSchema\Constraints\UndefinedConstraint.php (no_superfluous_phpdoc_tags, phpdoc_align)
 ---------- begin diff ----------
--- Original
+++ New
@@ -55,10 +55,9 @@
/**
* Validates the value against the types
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer $path
- * @param string $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param string $i
*/
public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = null)
{
@@ -106,10 +105,9 @@
/**
* Validates common properties
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer $path
- * @param string $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param string $i
*/
protected function validateCommonProperties(&$value, $schema = null, JsonPointer $path, $i = '')
{
@@ -302,10 +300,9 @@
/**
* Validate allOf, anyOf, and oneOf properties
*
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer $path
- * @param string $i
+ * @param mixed $value
+ * @param mixed $schema
+ * @param string $i
*/
protected function validateOfProperties(&$value, $schema, JsonPointer $path, $i = '')
{
@@ -377,10 +374,9 @@
/**
* Validate dependencies
*
- * @param mixed $value
- * @param mixed $dependencies
- * @param JsonPointer $path
- * @param string $i
+ * @param mixed $value
+ * @param mixed $dependencies
+ * @param string $i
*/
protected function validateDependencies($value, $dependencies, JsonPointer $path, $i = '')
{
 ----------- end diff -----------
6) src\JsonSchema\Entity\JsonPointer.php (no_superfluous_phpdoc_tags, phpdoc_trim)
 ---------- begin diff ----------
--- Original
+++ New
@@ -113,8 +113,6 @@
}
/**
- * @param array $propertyPaths
- *
* @return JsonPointer
*/
public function withPropertyPaths(array $propertyPaths)
 ----------- end diff -----------
7) src\JsonSchema\Uri\Retrievers\PredefinedArray.php (no_superfluous_phpdoc_tags)
 ---------- begin diff ----------
--- Original
+++ New
@@ -28,7 +28,6 @@
/**
* Constructor
*
- * @param array $schemas
* @param string $contentType
*/
public function __construct(array $schemas, $contentType = Validator::SCHEMA_MEDIA_TYPE)
 ----------- end diff -----------
8) src\JsonSchema\Uri\UriResolver.php (no_superfluous_phpdoc_tags, phpdoc_trim_consecutive_blank_line_separation)
 ---------- begin diff ----------
--- Original
+++ New
@@ -51,8 +51,6 @@
/**
* Builds a URI based on n array with the main components
*
- * @param array $components
- *
* @return string
*/
public function generate(array $components)
 ----------- end diff -----------
9) src\JsonSchema\Uri\UriRetriever.php (no_superfluous_phpdoc_tags, phpdoc_trim_consecutive_blank_line_separation)
 ---------- begin diff ----------
--- Original
+++ New
@@ -221,8 +221,6 @@
/**
* Set the URI Retriever
*
- * @param UriRetrieverInterface $uriRetriever
- *
* @return $this for chaining
*/
public function setUriRetriever(UriRetrieverInterface $uriRetriever)
@@ -265,8 +263,6 @@
/**
* Builds a URI based on n array with the main components
- *
- * @param array $components
*
* @return string
*/
 ----------- end diff -----------
10) tests\Constraints\TypeTest.php (no_superfluous_phpdoc_tags, phpdoc_align)
 ---------- begin diff ----------
--- Original
+++ New
@@ -69,8 +69,7 @@
/**
* Helper to assert an error message
*
- * @param string $expected
- * @param TypeConstraint $actual
+ * @param string $expected
*/
private function assertTypeConstraintError($expected, TypeConstraint $actual)
{
 ----------- end diff -----------
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