Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Riimu committed Nov 29, 2020
1 parent 5754de8 commit f242a0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PHPEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ public function setOption($option, $value)
*/
private function isValidOption($option)
{
if (array_key_exists($option, $this->options)) {
if (\array_key_exists($option, $this->options)) {
return true;
}

foreach ($this->encoders as $encoder) {
if (array_key_exists($option, $encoder->getDefaultOptions())) {
if (\array_key_exists($option, $encoder->getDefaultOptions())) {
return true;
}
}
Expand Down Expand Up @@ -150,7 +150,7 @@ public function getAllOptions(array $overrides = [])
}

foreach ($overrides as $name => $value) {
if (!array_key_exists($name, $options)) {
if (!\array_key_exists($name, $options)) {
throw new InvalidOptionException(sprintf("Invalid encoder option '%s'", $name));
}

Expand Down

0 comments on commit f242a0a

Please sign in to comment.