Skip to content

Commit 70910e6

Browse files
committed
use setupBoolProperty for offline & autoload
1 parent 5216939 commit 70910e6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/AbraFlexi/RO.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,17 +501,15 @@ public function setUp(array $options = []): bool
501501

502502
$this->setupProperty($options, 'filter');
503503

504-
if (\array_key_exists('offline', $options)) {
505-
$this->offline = (bool) $options['offline'];
506-
}
504+
$this->setupBoolProperty($options, 'offline');
507505

508506
if (\array_key_exists('ignore404', $options)) {
509507
$this->ignore404($options['ignore404']);
510508
}
511509

512510
$this->setupProperty($options, 'throwException', 'ABRAFLEXI_EXCEPTIONS');
513511
$this->setupBoolProperty($options, 'debug');
514-
$this->setupProperty($options, 'autoload');
512+
$this->setupBoolProperty($options, 'autoload');
515513

516514
if (isset($options['evidence'])) {
517515
$this->setEvidence($options['evidence']);

0 commit comments

Comments
 (0)