Skip to content

Commit

Permalink
Addressed formatting + version code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
kodinkat committed Apr 5, 2024
1 parent 260a7fe commit c79e2d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/connections-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function process_scripts() {
wp_enqueue_script( 'aws-sdk-s3', 'https://sdk.amazonaws.com/js/aws-sdk-2.1583.0.min.js', [ 'jquery' ], '2.1583.0', true );

dt_theme_enqueue_style( 'material-font-icons-local', 'dt-core/dependencies/mdi/css/materialdesignicons.min.css', array() );
wp_enqueue_style( 'material-font-icons', 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css' );
wp_enqueue_style( 'material-font-icons', 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css', array(), '6.6.96' );

wp_enqueue_script( 'dt_media_script', plugin_dir_url( __FILE__ ) . 'js/connections-tab.js', [
'jquery',
Expand Down
6 changes: 3 additions & 3 deletions disciple-tools-media-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function dt_media_connections_obj_upload( $response, $media_connection_id, $key_
$filename = $upload['tmp_name'] ?? '';
$file = fopen( $filename, 'r' );
$part_number = 1;
while (!feof( $file )){
while ( !feof( $file ) ) {
$result = $s3->uploadPart( [
'Bucket' => $bucket,
'Key' => $key_name,
Expand All @@ -149,7 +149,7 @@ function dt_media_connections_obj_upload( $response, $media_connection_id, $key_
}
fclose( $file );

} catch (Exception $e) {
} catch ( Exception $e ) {
$response = false;
$result = $s3->abortMultipartUpload( [
'Bucket' => $bucket,
Expand All @@ -172,7 +172,7 @@ function dt_media_connections_obj_upload( $response, $media_connection_id, $key_
] );
$response = $result['Key'] ?? false;

} catch (Exception $e) {
} catch ( Exception $e ) {
$response = false;
}
}
Expand Down

0 comments on commit c79e2d5

Please sign in to comment.