Code Duplication    Length = 3-3 lines in 2 locations

src/Dropbox/Dropbox.php 2 locations

@@ 1008-1010 (lines=3) @@
1005
        $dropboxFile = $this->makeDropboxFile($dropboxFile, $chunkSize, $offset);
1006
1007
        //Session ID, offset, chunkSize and path cannot be null
1008
        if (is_null($sessionId) || is_null($offset) || is_null($chunkSize)) {
1009
            throw new DropboxClientException("Session ID, offset and chunk size cannot be null");
1010
        }
1011
1012
        $params = [];
1013
@@ 1058-1060 (lines=3) @@
1055
        $dropboxFile = $this->makeDropboxFile($dropboxFile, $remaining, $offset);
1056
1057
        //Session ID, offset, remaining and path cannot be null
1058
        if (is_null($sessionId) || is_null($path) || is_null($offset) || is_null($remaining)) {
1059
            throw new DropboxClientException("Session ID, offset, remaining and path cannot be null");
1060
        }
1061
1062
        $queryParams = [];
1063