Skip to content

Commit

Permalink
Change parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Apr 20, 2021
1 parent cc0bc91 commit 3e650f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/JsonApi/Hydrator/AbstractCreateHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf
{
$domainObject = $this->hydrateForCreate($request, $exceptionFactory, $domainObject);

$this->validateDomainObject($domainObject, $request, $exceptionFactory);
$this->validateDomainObject($request, $exceptionFactory, $domainObject);

return $domainObject;
}
Expand All @@ -34,9 +34,9 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf
* @param mixed $domainObject
*/
protected function validateDomainObject(
$domainObject,
JsonApiRequestInterface $request,
ExceptionFactoryInterface $exceptionFactory
ExceptionFactoryInterface $exceptionFactory,
$domainObject
): void {
}
}
6 changes: 3 additions & 3 deletions src/JsonApi/Hydrator/AbstractHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf
$domainObject = $this->hydrateForUpdate($request, $exceptionFactory, $domainObject);
}

$this->validateDomainObject($domainObject, $request, $exceptionFactory);
$this->validateDomainObject($request, $exceptionFactory, $domainObject);

return $domainObject;
}
Expand All @@ -58,9 +58,9 @@ public function hydrateRelationship(
* @param mixed $domainObject
*/
protected function validateDomainObject(
$domainObject,
JsonApiRequestInterface $request,
ExceptionFactoryInterface $exceptionFactory
ExceptionFactoryInterface $exceptionFactory,
$domainObject
): void {
}
}
6 changes: 3 additions & 3 deletions src/JsonApi/Hydrator/AbstractUpdateHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf
{
$domainObject = $this->hydrateForUpdate($request, $exceptionFactory, $domainObject);

$this->validateDomainObject($domainObject, $request, $exceptionFactory);
$this->validateDomainObject($request, $exceptionFactory, $domainObject);

return $domainObject;
}
Expand All @@ -50,9 +50,9 @@ public function hydrateRelationship(
* @param mixed $domainObject
*/
protected function validateDomainObject(
$domainObject,
JsonApiRequestInterface $request,
ExceptionFactoryInterface $exceptionFactory
ExceptionFactoryInterface $exceptionFactory,
$domainObject
): void {
}
}

0 comments on commit 3e650f6

Please sign in to comment.