| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 20 | public static function create($authConfigFile, $applicationName) |
|
| 16 | { |
||
| 17 | 20 | self::checkAuthConfigFile($authConfigFile); |
|
| 18 | |||
| 19 | 20 | $client = new static(); |
|
| 20 | 20 | $client->setAuthConfig($authConfigFile); |
|
| 21 | 20 | $client->setApplicationName($applicationName); |
|
| 22 | 20 | $client->setScopes(\Google_Service_Sheets::SPREADSHEETS); |
|
| 23 | |||
| 24 | 20 | return $client; |
|
| 25 | } |
||
| 26 | |||
| 40 |