Skip to content

Commit 324cdf6

Browse files
committed
CS - Remove empty lines
1 parent 3291102 commit 324cdf6

9 files changed

Lines changed: 0 additions & 10 deletions

File tree

classes/class-suggested-tasks.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ public function get_tasks_in_rest_format( array $args = [] ) {
479479

480480
// Get the tasks for each category.
481481
foreach ( $max_items_per_category as $category_slug => $max_items ) {
482-
483482
// Skip excluded providers.
484483
if ( ! empty( $args['exclude_provider'] ) && \in_array( $category_slug, $args['exclude_provider'], true ) ) {
485484
continue;

classes/class-todo.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ public function maybe_change_first_item_points_on_monday() {
7676
* @return void
7777
*/
7878
public function handle_creating_user_task( $post, $request, $creating ) {
79-
8079
if ( ! $creating || ! \has_term( 'user', 'prpl_recommendations_provider', $post->ID ) ) {
8180
return;
8281
}

classes/rest/class-tasks.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public function validate_token( $token ) {
7777
* @return \WP_REST_Response The REST response object containing the recommendations.
7878
*/
7979
public function get_tasks() {
80-
8180
// Collection of task objects.
8281
$tasks = \progress_planner()->get_suggested_tasks_db()->get_tasks_by( [ 'post_status' => [ 'publish', 'trash', 'draft', 'future', 'pending' ] ] );
8382
$tasks_to_return = [];

classes/suggested-tasks/class-tasks-manager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ public function cleanup_pending_tasks() {
301301
* @return void
302302
*/
303303
public function handle_task_unsnooze( $new_status, $old_status, $post ) {
304-
305304
// Early exit if it's not task for which snooze period is over.
306305
if ( 'future' !== $old_status || 'publish' !== $new_status || 'prpl_recommendations' !== get_post_type( $post ) ) {
307306
return;

classes/suggested-tasks/providers/class-email-sending.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ class Email_Sending extends Tasks {
109109
* @return void
110110
*/
111111
public function init() {
112-
113112
// Enqueue the scripts.
114113
\add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
115114

classes/update/class-update-161.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ private function migrate_badges() {
3939
$badges = \progress_planner()->get_settings()->get( 'badges', [] );
4040

4141
foreach ( $badges as $badge_id => $badge ) {
42-
4342
// We are only migrating monthly badges.
4443
if ( 0 !== \strpos( $badge_id, 'monthly-' ) ) {
4544
continue;

classes/utils/class-playground.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ public function inject_playground_js_patch() {
258258
?>
259259
<script>
260260
( function waitForWp() {
261-
262261
if ( ! window.wp || ! wp.api?.models?.Prpl_recommendations ) {
263262
return setTimeout(waitForWp, 50);
264263
}

classes/wp-cli/class-task-command.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ private function delete_task( $task_id, $force ) {
315315
* @return void
316316
*/
317317
public function create( $args, $assoc_args ) {
318-
319318
$task_id = isset( $assoc_args['task_id'] ) ? $assoc_args['task_id'] : '';
320319
$title = isset( $assoc_args['title'] ) ? $assoc_args['title'] : '';
321320
$description = isset( $assoc_args['description'] ) ? $assoc_args['description'] : 'Test description ';

tests/bin/install-wp-tests.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ fi
8080
set -ex
8181

8282
install_wp() {
83-
8483
if [ -d $WP_CORE_DIR ]; then
8584
return;
8685
fi
@@ -170,7 +169,6 @@ create_db() {
170169
}
171170

172171
install_db() {
173-
174172
if [ ${SKIP_DB_CREATE} = "true" ]; then
175173
return 0
176174
fi

0 commit comments

Comments
 (0)