Code Duplication    Length = 3-3 lines in 2 locations

src/Dropbox/Dropbox.php 2 locations

@@ 1014-1016 (lines=3) @@
1011
        $dropboxFile = $this->makeDropboxFile($dropboxFile, $chunkSize, $offset);
1012
1013
        //Session ID, offset, chunkSize and path cannot be null
1014
        if (is_null($sessionId) || is_null($offset) || is_null($chunkSize)) {
1015
            throw new DropboxClientException("Session ID, offset and chunk size cannot be null");
1016
        }
1017
1018
        $params = [];
1019
@@ 1064-1066 (lines=3) @@
1061
        $dropboxFile = $this->makeDropboxFile($dropboxFile, $remaining, $offset);
1062
1063
        //Session ID, offset, remaining and path cannot be null
1064
        if (is_null($sessionId) || is_null($path) || is_null($offset) || is_null($remaining)) {
1065
            throw new DropboxClientException("Session ID, offset, remaining and path cannot be null");
1066
        }
1067
1068
        $queryParams = [];
1069