| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 27 | protected static function resolveConnection($connection): ConnectionInterface  | 
            ||
| 28 |     { | 
            ||
| 29 |         if ($connection instanceof ConnectionInterface) { | 
            ||
| 30 | return $connection;  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 |         if ($connection === null) { | 
            ||
| 34 | $connection = HubSpot::getInstance()->getSettings()->getDefaultConnection();  | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 37 | return HubSpot::getInstance()->getConnections()->getIntegration($connection);  | 
            ||
| 38 | }  | 
            ||
| 39 | }  | 
            ||
| 40 |