File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -157,15 +157,15 @@ public function validate_file_folder_sync( $attachment_id ) {
157157 * @return string
158158 */
159159 public function generate_signature ( $ attachment_id ) {
160- $ file_exsts = true ;
160+ $ file_exists = true ;
161161 if ( $ this ->settings ['offload ' ] !== 'cld ' ) {
162162 $ attachment_file = get_attached_file ( $ attachment_id );
163163 if ( ! file_exists ( $ attachment_file ) ) {
164- $ file_exsts = $ attachment_file ;
164+ $ file_exists = $ attachment_file ;
165165 }
166166 }
167167
168- return $ this ->settings ['offload ' ] . $ this ->media ->get_post_meta ( $ attachment_id , Sync::META_KEYS ['public_id ' ], true ) . $ file_exsts ;
168+ return $ this ->settings ['offload ' ] . $ this ->media ->get_post_meta ( $ attachment_id , Sync::META_KEYS ['public_id ' ], true ) . $ file_exists ;
169169 }
170170
171171 /**
@@ -208,7 +208,7 @@ public function sync( $attachment_id ) {
208208 $ this ->remove_local_assets ( $ attachment_id );
209209 }
210210 $ date = get_post_datetime ( $ attachment_id );
211- $ this ->download ->download_asset ( $ attachment_id , $ url , $ date ->format ('Y/m ' ) );
211+ $ this ->download ->download_asset ( $ attachment_id , $ url , $ date ->format ( 'Y/m ' ) );
212212 }
213213
214214 $ this ->sync ->set_signature_item ( $ attachment_id , 'storage ' );
You can’t perform that action at this time.
0 commit comments