Skip to content

Commit 683ce97

Browse files
Fix linting issues using phpcbf
1 parent b262935 commit 683ce97

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+25
-55
lines changed

php/cache/class-cache-point.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ public function init() {
287287
$this->registered_cache_points[ $post->post_title ] = $post;
288288
}
289289
do_action( 'cloudinary_cache_init_cache_points' );
290-
291290
}
292291

293292
/**
@@ -526,7 +525,7 @@ public function get_cache_items( $cache_point_id_url, $id_only = false ) {
526525
do {
527526
$found = $posts->get_posts();
528527
$items = array_merge( $items, $found );
529-
$params['paged'] ++;
528+
++$params['paged'];
530529
$posts = new \WP_Query( $params );
531530
} while ( $posts->have_posts() );
532531
}
@@ -884,7 +883,7 @@ public function query_cached_items( $urls ) {
884883
$found_posts[ $url ] = $meta[ self::META_KEYS['cached_urls'] ][ $url ];
885884
}
886885
}
887-
$params['paged'] ++;
886+
++$params['paged'];
888887
$posts = new \WP_Query( $params );
889888
} while ( $posts->have_posts() );
890889

php/class-cache.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,6 @@ protected function get_plugins_table() {
615615
'title' => __( 'Plugin', 'cloudinary' ),
616616
'root_paths' => $rows,
617617
);
618-
619618
}
620619

621620
/**
@@ -987,7 +986,7 @@ public function add_content_cache_paths() {
987986
if ( ! is_admin() ) {
988987
// Exclude content replacement in admin.
989988
$this->add_cache_paths( 'cache_content', 'content_files', 'cache_all_content' );
990-
};
989+
}
991990
}
992991

993992
/**

php/class-delivery-feature.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ public function register_assets() {
157157
* Enqueue Assets.
158158
*/
159159
public function enqueue_assets() {
160-
161160
}
162161

163162
/**

php/class-delivery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ protected function filter_unknown_urls( $urls ) {
19581958
return $urls;
19591959
}
19601960

1961-
$known_lookup = array_flip( $known_keys );
1961+
$known_lookup = array_flip( $known_keys );
19621962
$potential_unknown = array_diff( $urls, $known_keys );
19631963

19641964
if ( empty( $potential_unknown ) ) {

php/class-extensions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function get_active_count_text() {
115115
$active = 0;
116116
foreach ( $this->settings->get_value( $this->settings_slug ) as $value ) {
117117
if ( 'on' === $value ) {
118-
$active ++;
118+
++$active;
119119
}
120120
}
121121

php/class-sync.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,8 @@ public function maybe_cleanup_errored() {
11081108
wp_redirect(
11091109
add_query_arg(
11101110
array(
1111-
'page' => 'cloudinary',
1112-
'action' => 'cleaned_up',
1111+
'page' => 'cloudinary',
1112+
'action' => 'cleaned_up',
11131113
),
11141114
admin_url( 'admin.php' )
11151115
)

php/class-url.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public function init_settings() {
7878
* Set up the object.
7979
*/
8080
public function setup() {
81-
8281
}
8382

8483
/**

php/component/class-config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ interface Config {
1616
* Retrive config from class.
1717
*/
1818
public function get_config();
19-
2019
}

php/component/class-notice.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ interface Notice {
1818
* @return array
1919
*/
2020
public function get_notices();
21-
2221
}

php/component/class-setup.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ interface Setup {
1616
* Setup the object.
1717
*/
1818
public function setup(); // phpcs:ignore
19-
2019
}

0 commit comments

Comments
 (0)