| Conditions | 3 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 15 | public function __construct()  | 
            ||
| 16 |     { | 
            ||
| 17 |         if (!defined('SS_ANALYTICS_KEY') || !file_exists(SS_ANALYTICS_KEY)) { | 
            ||
| 18 |             throw new LogicException('No analytics API set up'); | 
            ||
| 19 | }  | 
            ||
| 20 | |||
| 21 | $client = new Google_Client();  | 
            ||
| 22 | $client->setAuthConfig(SS_ANALYTICS_KEY);  | 
            ||
| 23 | $client->addScope(Google_Service_Analytics::ANALYTICS_READONLY);  | 
            ||
| 24 | |||
| 25 | $this->setClient($client);  | 
            ||
| 26 | }  | 
            ||
| 44 |