Apply fixes from StyleCI #16
Annotations
2 warnings
mutation / PHP 8.1-ubuntu-latest:
src/RegisterClientScript.php#L21
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
public array $clientOptions = [];
public string $loadUrl = '';
public string $queryParam = 'query';
- public function registerClientScript() : void
+ protected function registerClientScript() : void
{
$id = $this->options['id'];
if ($this->loadUrl !== '') {
|
mutation / PHP 8.1-ubuntu-latest:
src/RegisterClientScript.php#L35
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
$options = Json::encode($this->clientOptions);
$view = $this->getView();
- SelectizeAsset::register($view);
+
$view->registerJs("jQuery('#{$id}').selectize({$options});");
}
}
|