mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-17 13:08:16 +01:00
Keep conditions on one line
This commit is contained in:
parent
6ddb7fb23e
commit
114514291e
@ -33,9 +33,7 @@ class Json extends Source
|
|||||||
*/
|
*/
|
||||||
public function matches(): bool
|
public function matches(): bool
|
||||||
{
|
{
|
||||||
return is_string($this->source)
|
return is_string($this->source) && !is_file($this->source) && !$this->isEndpoint($this->source);
|
||||||
&& !is_file($this->source)
|
|
||||||
&& !$this->isEndpoint($this->source);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user