mirror of
https://github.com/halaxa/json-machine.git
synced 2025-01-18 05:28:14 +01:00
make cs-fix
This commit is contained in:
parent
caaa4d7e73
commit
c549c323e5
@ -375,7 +375,7 @@ class Parser implements \IteratorAggregate, PositionAware
|
|||||||
public function getCurrentJsonPointer(): string
|
public function getCurrentJsonPointer(): string
|
||||||
{
|
{
|
||||||
if ($this->currentPath === null) {
|
if ($this->currentPath === null) {
|
||||||
throw new JsonMachineException(__METHOD__ . ' must be called inside a loop');
|
throw new JsonMachineException(__METHOD__.' must be called inside a loop');
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::pathToJsonPointer($this->currentPath);
|
return self::pathToJsonPointer($this->currentPath);
|
||||||
@ -384,7 +384,7 @@ class Parser implements \IteratorAggregate, PositionAware
|
|||||||
public function getMatchedJsonPointer(): string
|
public function getMatchedJsonPointer(): string
|
||||||
{
|
{
|
||||||
if ($this->matchedJsonPointer === null) {
|
if ($this->matchedJsonPointer === null) {
|
||||||
throw new JsonMachineException(__METHOD__ . ' must be called inside a loop');
|
throw new JsonMachineException(__METHOD__.' must be called inside a loop');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->matchedJsonPointer;
|
return $this->matchedJsonPointer;
|
||||||
|
@ -85,7 +85,7 @@ final class ValidJsonPointers
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* https://github.com/symfony/polyfill/blob/v1.24.0/src/Php80/Php80.php
|
* @see https://github.com/symfony/polyfill/blob/v1.24.0/src/Php80/Php80.php
|
||||||
*/
|
*/
|
||||||
public static function str_contains(string $haystack, string $needle): bool
|
public static function str_contains(string $haystack, string $needle): bool
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user