Skip to content

Commit 7132a38

Browse files
committed
fixing phpcs
1 parent 47de97e commit 7132a38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Util/YamlSourceManipulator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ private function updateData(array $newData)
217217
}
218218

219219
// 3b) value DID change
220-
$this->log(sprintf('updating value to {%s}', is_array($newVal) ? '<array>' : $newVal));
220+
$this->log(sprintf('updating value to {%s}', \is_array($newVal) ? '<array>' : $newVal));
221221
$this->changeValueInYaml($newVal);
222222
}
223223

@@ -465,7 +465,7 @@ private function changeValueInYaml($value)
465465
$newPosition = $this->currentPosition + \strlen($newYamlValue);
466466
$isNextContentComment = $this->isPreviousLineComment($newPosition);
467467
if ($isNextContentComment) {
468-
$newPosition++;
468+
++$newPosition;
469469
}
470470

471471
$newContents = substr($this->contents, 0, $this->currentPosition)
@@ -785,7 +785,7 @@ private function findEndPositionOfValue($value, $offset = null)
785785

786786
// a value like "foo:" can simply end a file
787787
// this means the value is null
788-
if ($offset === strlen($this->contents)) {
788+
if ($offset === \strlen($this->contents)) {
789789
return $offset;
790790
}
791791

0 commit comments

Comments
 (0)