| @@ -98,15 +98,15 @@ | ||
| 98 | 98 | public function upload_file( $local_file, $remote_file ) { |
| 99 | 99 | |
| 100 | 100 | if ( ! isset( $this->drive['access_token'] ) ) return false; |
| 101 | 101 | |
| 102 | - $file = fopen( $local_file, 'r' ); | |
| 102 | + $file = fopen( $local_file, 'r' ); // phpcs:ignore | |
| 103 | 103 | $file_size = filesize( $local_file ); |
| 104 | 104 | |
| 105 | 105 | fseek( $file, 0 ); |
| 106 | 106 | $response = WPDA_Remote_Call::post( |
| 107 | 107 | 'https://content.dropboxapi.com/2/files/upload', |
| 108 | - fread( $file, $file_size ), | |
| 108 | + fread( $file, $file_size ), // phpcs:ignore | |
| 109 | 109 | false, |
| 110 | 110 | array( |
| 111 | 111 | 'Authorization' => "Bearer {$this->drive['access_token']}", |
| 112 | 112 | 'Content-Type' => 'application/octet-stream', |