Skip to content

Commit 72c22c6

Browse files
committed
Variable renamed.
1 parent 2746832 commit 72c22c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Patch.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ protected function getDataReader(): SelectableReaderInterface
5050

5151
protected function performOperation(int $index)
5252
{
53-
$op = $this->getPatchPointer()->read("/{$index}/op")->getData();
53+
$operation = $this->getPatchPointer()->read("/{$index}/op")->getData();
5454
$path = $this->getPatchPointer()->read("/{$index}/path")->getData();
55-
switch ($op) {
55+
switch ($operation) {
5656
case 'add':
5757
$valueReader = $this->getPatchPointer()->read("/{$index}/value");
5858
$this->getDataPointer()->add($path, $valueReader);
@@ -91,7 +91,7 @@ protected function performOperation(int $index)
9191
break;
9292

9393
default:
94-
throw new \RuntimeException("Unknown operation '{$op}'");
94+
throw new \RuntimeException("Unknown operation '{$operation}'");
9595
}
9696
return $this;
9797
}

0 commit comments

Comments
 (0)