Skip to content

Commit

Permalink
Rename an existing variable to disambiguate its type
Browse files Browse the repository at this point in the history
  • Loading branch information
LinaKind committed Dec 18, 2024
1 parent 23e15c0 commit 85abae7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Serializer/ArticleVoRNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use eLife\ApiSdk\Model\Reference;
use function GuzzleHttp\Promise\promise_for;
use GuzzleHttp\Promise\PromiseInterface;
use phpDocumentor\Reflection\DocBlock\Tags\Var_;

final class ArticleVoRNormalizer extends ArticleVersionNormalizer
{
Expand Down Expand Up @@ -182,7 +183,7 @@ protected function denormalizeArticle(
return $elifeAssessment['scietyUri'] ?? null;
});

$data['elifeAssessment'] = $data['elifeAssessment']
$data['elifeAssessmentArticleSection'] = $data['elifeAssessment']
->then(function (array $elifeAssessment = null) use ($format, $context) {
if (empty($elifeAssessment)) {
return null;
Expand Down Expand Up @@ -320,7 +321,7 @@ protected function denormalizeArticle(
$data['decisionLetter'],
$decisionLetterDescription,
$data['authorResponse'],
$data['elifeAssessment'],
$data['elifeAssessmentArticleSection'],
$elifeAssessmentTitle,
$elifeAssessmentScietyUri,
$data['recommendationsForAuthors'],
Expand Down

0 comments on commit 85abae7

Please sign in to comment.