Skip to content

Commit ec24c8d

Browse files
author
Marco Pereirinha
committed
PHPCS fixes
1 parent ebe0cf8 commit ec24c8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

php/connect/class-api.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public function upload_large( $attachment_id, $args ) {
455455
if ( is_wp_error( $result ) ) {
456456
break;
457457
}
458-
$index ++;
458+
++$index;
459459
}
460460
fclose( $src ); //phpcs:ignore
461461
unlink( $temp_file_name ); //phpcs:ignore
@@ -464,7 +464,6 @@ public function upload_large( $attachment_id, $args ) {
464464
}
465465

466466
return $result;
467-
468467
}
469468

470469
/**
@@ -911,7 +910,7 @@ public function get_public_id( $attachment_id, $args = array(), $original_public
911910
)
912911
) {
913912

914-
$parts = explode( '/', $public_id );
913+
$parts = explode( '/', $public_id );
915914
$filename = end( $parts );
916915

917916
/**
@@ -1023,5 +1022,4 @@ private function call( $url, $args = array(), $method = 'get' ) {
10231022

10241023
return $result;
10251024
}
1026-
10271025
}

0 commit comments

Comments
 (0)