diff --git a/app/ExternalFiles/Forms.php b/app/ExternalFiles/Forms.php
index b56e755..73896ec 100644
--- a/app/ExternalFiles/Forms.php
+++ b/app/ExternalFiles/Forms.php
@@ -312,7 +312,7 @@ public function add_urls_via_ajax(): void {
$password = filter_input( INPUT_POST, 'password', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
// get additional fields.
- $additional_fields = isset( $_POST[ 'additional_fields' ] ) ? array_map( 'sanitize_text_field', $_POST[ 'additional_fields' ] ) : array();
+ $additional_fields = isset( $_POST['additional_fields'] ) ? array_map( 'sanitize_text_field', $_POST['additional_fields'] ) : array();
$false = false;
/**
@@ -396,8 +396,7 @@ public function add_urls_via_ajax(): void {
// log this event.
$log->create( __( 'Error occurred during check of URL. The URL has not been added.', 'external-files-in-media-library' ), $url, 'info', 1 );
- }
- else {
+ } else {
/**
* Run additional tasks for single URL after it has been successfully added as external file.
*
diff --git a/app/ExternalFiles/Protocols/Http.php b/app/ExternalFiles/Protocols/Http.php
index a8d38ce..806f326 100644
--- a/app/ExternalFiles/Protocols/Http.php
+++ b/app/ExternalFiles/Protocols/Http.php
@@ -249,7 +249,7 @@ public function get_url_infos(): array {
$tmp_file = $this->get_temp_file( $this->get_url() );
// bail if tmp file could not be loaded.
- if( ! $tmp_file ) {
+ if ( ! $tmp_file ) {
return array();
}
@@ -770,7 +770,7 @@ public function get_temp_file( string $url ): false|string {
if ( is_wp_error( $tmp_file ) ) {
// file is available.
/* translators: %1$s by the error in JSON-format. */
- Log::get_instance()->create( sprintf( __( 'Temp file could not be created because of the following error: %1$s', 'external-files-in-media-library' ), '' . wp_strip_all_tags( wp_json_encode( $tmp_file) ) . '
' ), esc_url( $this->get_url() ), 'error', 0 );
+ Log::get_instance()->create( sprintf( __( 'Temp file could not be created because of the following error: %1$s', 'external-files-in-media-library' ), '' . wp_strip_all_tags( wp_json_encode( $tmp_file ) ) . '
' ), esc_url( $this->get_url() ), 'error', 0 );
// return empty array as we got not the file.
return false;
diff --git a/app/ExternalFiles/Queue.php b/app/ExternalFiles/Queue.php
index 9c1457c..0c440c2 100644
--- a/app/ExternalFiles/Queue.php
+++ b/app/ExternalFiles/Queue.php
@@ -705,7 +705,7 @@ public function delete_entry_by_request(): void {
*/
public function add_field_in_form( array $fields ): array {
// bail if queue is disabled.
- if( 'eml_disable_check' === get_option( 'eml_queue_interval' ) ) {
+ if ( 'eml_disable_check' === get_option( 'eml_queue_interval' ) ) {
return $fields;
}
@@ -725,7 +725,7 @@ public function add_field_in_form( array $fields ): array {
* @return bool
*/
public function add_urls_to_queue( bool $return_value, array $config ): bool {
- if( empty( $config['add_to_queue'] ) ) {
+ if ( empty( $config['add_to_queue'] ) ) {
return $return_value;
}
diff --git a/app/ThirdParty/WooCommerce.php b/app/ThirdParty/WooCommerce.php
index fb92f8e..c6c191e 100644
--- a/app/ThirdParty/WooCommerce.php
+++ b/app/ThirdParty/WooCommerce.php
@@ -86,7 +86,7 @@ public function init(): void {
*/
public function init_woocommerce(): void {
// get settings object.
- $settings_obj = Settings::get_instance();
+ $settings_obj = Settings::get_instance();
// add settings tab for WooCommerce.
$woocommerce_settings_tab = $settings_obj->add_tab( 'woocommerce' );