Skip to content

Commit 92c75ad

Browse files
committed
changes
1 parent 46aac65 commit 92c75ad

File tree

703 files changed

+68278
-175157
lines changed

Some content is hidden

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

703 files changed

+68278
-175157
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"vendor-dir": "lib"
88
},
99
"require": {
10-
"fakerphp/faker": "^1.23"
10+
"fakerphp/faker": "^1.23",
11+
"ramsey/uuid": "^4.7"
1112
},
1213
"autoload": {
1314
"psr-4": {

composer.lock

Lines changed: 257 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/Factories/Job/DummyJobGenerate.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function wp_cli_register_commands() {
3131
public function run( $args, $assoc_args ) {
3232
$start = microtime( true );
3333

34-
$total = isset( $assoc_args['total'] ) && intval( $assoc_args['total'] ) ? intval( $assoc_args['total'] ) : 100;
34+
$total = isset( $assoc_args['total'] ) && intval( $assoc_args['total'] ) ? intval( $assoc_args['total'] ) : 20;
3535
$status = isset( $assoc_args['status'] ) ? sanitize_text_field( $assoc_args['status'] ) : 'publish';
3636
$is_remote = isset( $assoc_args['is-remote'] ) && intval( $assoc_args['is-remote'] ) ? intval( $assoc_args['is-remote'] ) : 0;
3737
$is_featured = isset( $assoc_args['is-featured'] ) && intval( $assoc_args['is-featured'] ) ? intval( $assoc_args['is-featured'] ) : 1;
@@ -75,9 +75,7 @@ public function run( $args, $assoc_args ) {
7575

7676
//$cbxjob['mod_by'] = $job->post_author;
7777
$cbxjob['mod_date'] = date( 'Y-m-d H:i:s' );
78-
7978
$cbxjob['closing_date'] = date( 'Y-m-d H:i:s', strtotime( '+7 days' ) );
80-
8179
$cbxjob['expiry_date'] = date( 'Y-m-d H:i:s', strtotime( '+7 days' ) );
8280

8381

@@ -87,7 +85,7 @@ public function run( $args, $assoc_args ) {
8785

8886
$elapsed = $end - $start;
8987

90-
\WP_CLI::success( "Successfully $total dummy job added. Execution time $elapsed seconds" );
88+
\WP_CLI::success( "Successfully $total dummy job added. Execution time $elapsed seconds" );//todo: translation missing
9189

9290
} //end method run
9391
} //end class DummyJobGenerate

0 commit comments

Comments
 (0)