Code Duplication    Length = 3-3 lines in 2 locations

src/Dropbox/Dropbox.php 2 locations

@@ 970-972 (lines=3) @@
967
        $dropboxFile = $this->makeDropboxFile($dropboxFile, $chunkSize, $offset);
968
969
        //Session ID, offset, chunkSize and path cannot be null
970
        if (is_null($sessionId) || is_null($offset) || is_null($chunkSize)) {
971
            throw new DropboxClientException("Session ID, offset and chunk size cannot be null");
972
        }
973
974
        $params = [];
975
@@ 1020-1022 (lines=3) @@
1017
        $dropboxFile = $this->makeDropboxFile($dropboxFile, $remaining, $offset);
1018
1019
        //Session ID, offset, remaining and path cannot be null
1020
        if (is_null($sessionId) || is_null($path) || is_null($offset) || is_null($remaining)) {
1021
            throw new DropboxClientException("Session ID, offset, remaining and path cannot be null");
1022
        }
1023
1024
        $queryParams = [];
1025