Skip to content

Commit

Permalink
Attempt 4 at making linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchaboryk committed Feb 9, 2024
1 parent ed9a310 commit ddb39f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/system/jooa11y/src/Extension/Jooa11y.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function initJooa11y()

// Get the right locale
$splitLang = explode('-', $getLang);
$lang = $splitLang[0];
$lang = $splitLang[0];
$country = isset($parts[1]) ? $parts[1] : '';

// Sa11y is available in the following languages
Expand Down Expand Up @@ -172,7 +172,7 @@ public function initJooa11y()
$extraProps = [];
foreach ($getExtraProps as $prop) {
$decodedValue = json_decode($prop->value);
if (is_numeric($decodedValue) || is_bool($decodedValue)) {
if (\is_numeric($decodedValue) || \is_bool($decodedValue)) {
$extraProps[$prop->key] = $decodedValue;
} else {
$extraProps[$prop->key] = "{$prop->value}";
Expand Down

0 comments on commit ddb39f3

Please sign in to comment.