Conditions | 4 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | private function setUpdateSentinels($connection, $options) |
||
43 | { |
||
44 | if (isset($options['update_sentinels']) |
||
45 | && boolval($options['update_sentinels']) === true |
||
46 | && $connection instanceof SentinelReplication) { |
||
47 | |||
48 | // is not defined on the ConnectionInterface so make sure we've got the right thing. |
||
49 | $connection->setUpdateSentinels(true); |
||
50 | } |
||
51 | } |
||
52 | } |
||
53 |