Code Duplication    Length = 3-3 lines in 2 locations

src/Dropbox/Dropbox.php 2 locations

@@ 1047-1049 (lines=3) @@
1044
        $dropboxFile = $this->makeDropboxFile($dropboxFile, $chunkSize, $offset);
1045
1046
        //Session ID, offset, chunkSize and path cannot be null
1047
        if (is_null($sessionId) || is_null($offset) || is_null($chunkSize)) {
1048
            throw new DropboxClientException("Session ID, offset and chunk size cannot be null");
1049
        }
1050
1051
        $params = [];
1052
@@ 1097-1099 (lines=3) @@
1094
        $dropboxFile = $this->makeDropboxFile($dropboxFile, $remaining, $offset);
1095
1096
        //Session ID, offset, remaining and path cannot be null
1097
        if (is_null($sessionId) || is_null($path) || is_null($offset) || is_null($remaining)) {
1098
            throw new DropboxClientException("Session ID, offset, remaining and path cannot be null");
1099
        }
1100
1101
        $queryParams = [];
1102