Fix PSR-12 compliance in ServiceOptions

- Use 'elseif' construct for PSR-12 compliance

Change-Id: I06d16b473b256d3f9c50645ec79d04b9629ea5e7
This commit is contained in:
Doğu Abaris 2024-07-06 02:28:09 +02:00 committed by Abaris
parent a2136eb96b
commit 3e495f35c4

View file

@ -50,7 +50,7 @@ class ServiceOptions {
$this->options[$key] = $source->get( $key );
continue 2;
}
} else {
} elseif ( is_array( $source ) ) {
if ( array_key_exists( $key, $source ) ) {
$this->options[$key] = $source[$key];
continue 2;