Skip to content

Commit 0c86e75

Browse files
committed
update formatting
1 parent 8b2b78c commit 0c86e75

File tree

4 files changed

+31
-33
lines changed

4 files changed

+31
-33
lines changed

classes/LDtoTutorMigration.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function ld_migrate_all_data_to_tutor() {
8484

8585
if ( isset( $_POST['migrate_type'] ) ) {
8686
$migrate_type = sanitize_text_field( $_POST['migrate_type'] );
87-
$ld_review = ReviewFactory::create( MigrationTypes::LD_TO_TUTOR );
87+
$ld_review = ReviewFactory::create( MigrationTypes::LD_TO_TUTOR );
8888

8989
switch ( $migrate_type ) {
9090
case ContentTypes::COURSE:
@@ -93,9 +93,9 @@ public function ld_migrate_all_data_to_tutor() {
9393
case ContentTypes::ORDERS:
9494
$this->ld_order_migrate();
9595
break;
96-
case ContentTypes::COURSE_REVIEWS:
97-
$ld_review->migrate_reviews();
98-
break;
96+
case ContentTypes::COURSE_REVIEWS:
97+
$ld_review->migrate_reviews();
98+
break;
9999
}
100100

101101
wp_send_json_success();
@@ -138,7 +138,6 @@ public function ld_migrate_course_to_tutor( $return_type = false ) {
138138
}
139139
}
140140
wp_send_json_success();
141-
142141
}
143142

144143
public function attached_prerequisite( $course_id ) {
@@ -674,7 +673,6 @@ public function migrate_course( $course_id, $new_course_id ) {
674673
}
675674
}
676675
}
677-
678676
}
679677
}
680678
}

inc/Factories/ReviewFactory.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@
1919
* Create review migration objects based on migration type.
2020
*/
2121
abstract class ReviewFactory {
22-
/**
23-
* Create review migration objects based on migration type.
24-
*
25-
* @since 2.3.0
26-
*
27-
* @param string $migration_type type of migration (LD to Tutor etc).
28-
*
29-
* @throws InvalidArgumentException
30-
*
31-
* @return Reviews
32-
*/
22+
/**
23+
* Create review migration objects based on migration type.
24+
*
25+
* @since 2.3.0
26+
*
27+
* @param string $migration_type type of migration (LD to Tutor etc).
28+
*
29+
* @throws InvalidArgumentException
30+
*
31+
* @return Reviews
32+
*/
3333
public static function create( string $migration_type ): Reviews {
34-
switch( $migration_type ){
35-
case MigrationTypes::LD_TO_TUTOR:
36-
return new LDReviews();
37-
default:
38-
break;
39-
}
34+
switch ( $migration_type ) {
35+
case MigrationTypes::LD_TO_TUTOR:
36+
return new LDReviews();
37+
default:
38+
break;
39+
}
4040

41-
throw new InvalidArgumentException( __( 'Invalid argument passed', 'tutor-lms-migration-tool' ) );
41+
throw new InvalidArgumentException( __( 'Invalid argument passed', 'tutor-lms-migration-tool' ) );
4242
}
4343
}

inc/Interfaces/Reviews.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111

1212
interface Reviews {
13-
/**
14-
* Migrate course reviews to tutor.
15-
*
16-
* @since 2.3.0
17-
*
18-
* @return void wp_json response
19-
*/
20-
public function migrate_reviews();
21-
}
13+
/**
14+
* Migrate course reviews to tutor.
15+
*
16+
* @since 2.3.0
17+
*
18+
* @return void wp_json response
19+
*/
20+
public function migrate_reviews();
21+
}

inc/LDMigration/Orders/LDOrders.php

Whitespace-only changes.

0 commit comments

Comments
 (0)