Code Duplication    Length = 3-3 lines in 2 locations

src/Dropbox/Dropbox.php 2 locations

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