Code Duplication    Length = 3-3 lines in 2 locations

src/Core/Config.php 2 locations

@@ 368-370 (lines=3) @@
365
     */
366
    public function check()
367
    {
368
        if (is_null($this->getClientId()) && $this->getGrantType() !== self::GRANT_TYPE_BEARER_TOKEN) {
369
            throw new InvalidArgumentException(Message::NO_CLIENT_ID);
370
        }
371
372
        if (is_null($this->getClientSecret()) && $this->getGrantType() !== self::GRANT_TYPE_BEARER_TOKEN) {
373
            throw new InvalidArgumentException(Message::NO_CLIENT_SECRET);
@@ 372-374 (lines=3) @@
369
            throw new InvalidArgumentException(Message::NO_CLIENT_ID);
370
        }
371
372
        if (is_null($this->getClientSecret()) && $this->getGrantType() !== self::GRANT_TYPE_BEARER_TOKEN) {
373
            throw new InvalidArgumentException(Message::NO_CLIENT_SECRET);
374
        }
375
376
        if (is_null($this->getProject())) {
377
            throw new InvalidArgumentException(Message::NO_PROJECT_ID);