classes/Tools/Storage/StorageTool.php
public function processCrop($size, $upload_path, $file, $sizeMeta) {
		$upload_info = wp_upload_dir();
		$subdir = trim(str_replace($upload_info['basedir'], '', $upload_path), '/');
		$upload_path = rtrim(str_replace($subdir, '', $upload_path), '/');

		if($this->client && $this->client->enabled()) {
			$sizeMeta = $this->processFile($upload_path, $subdir.'/'.$file, $sizeMeta);
		}

		return $sizeMeta;
	}
public function processCrop($size, $upload_path, $file, $sizeMeta) {
		$upload_info = wp_upload_dir();
		$subdir = trim(str_replace($upload_info['basedir'], '', $upload_path), '/');
		$upload_path = rtrim(str_replace($subdir, '', $upload_path), '/');

		if($this->client && $this->client->enabled()) {
			$sizeMeta = $this->processFile($upload_path, $subdir.'/'.$file, $sizeMeta);
		}

		return $sizeMeta;
	}
public function processCrop ( $ size , $ upload_path , $ file , $ sizeMeta ) { $ upload_info = wp_upload_dir ( ) ; $ subdir = trim ( str_replace ( $ upload_info [ 'basedir' ] , '' , $ upload_path ) , '/' ) ; $ upload_path = rtrim ( str_replace ( $ subdir , '' , $ upload_path ) , '/' ) ; if ( $ this -> client && $ this -> client -> enabled ( ) ) { $ sizeMeta = $ this -> processFile ( $ upload_path , $ subdir . '/' . $ file , $ sizeMeta ) ; } return $ sizeMeta ; }
Processes a file after a crop has been performed, uploading it to storage if it exists

@param string $size
@param string $upload_path
@param string $file
@param array $sizeMeta

@return array
Processes a file after a crop has been performed uploading it to storage if it exists