Skip to content

Commit ae6d0a6

Browse files
committed
Reuse has_stdin() from framework
1 parent d174717 commit ae6d0a6

File tree

8 files changed

+5
-416
lines changed

8 files changed

+5
-416
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"wp-cli/wp-cli": "^2.5"
15+
"wp-cli/wp-cli": "^2.10"
1616
},
1717
"require-dev": {
1818
"wp-cli/entity-command": "^1.3 || ^2",

phpunit.xml.dist

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Cache/NonExistentKeyException.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/Cache/RecursiveDataStructureTraverser.php

Lines changed: 0 additions & 182 deletions
This file was deleted.

src/Cache/Utils.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Cache_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use WP_CLI\Cache\RecursiveDataStructureTraverser;
3+
use WP_CLI\Traverser\RecursiveDataStructureTraverser;
44
use WP_CLI\Utils;
55

66
/**
@@ -531,7 +531,7 @@ function ( $key ) {
531531
if ( 'delete' === $action ) {
532532
$patch_value = null;
533533
} else {
534-
$stdin_value = WP_CLI\Cache\Utils::has_stdin()
534+
$stdin_value = Utils\has_stdin()
535535
? trim( WP_CLI::get_value_from_arg_or_stdin( $args, -1 ) )
536536
: null;
537537

src/Transient_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use WP_CLI\Cache\RecursiveDataStructureTraverser;
3+
use WP_CLI\Traverser\RecursiveDataStructureTraverser;
44
use WP_CLI\Utils;
55

66
/**
@@ -524,7 +524,7 @@ function ( $key ) {
524524
if ( 'delete' === $action ) {
525525
$patch_value = null;
526526
} else {
527-
$stdin_value = WP_CLI\Cache\Utils::has_stdin()
527+
$stdin_value = Utils\has_stdin()
528528
? trim( WP_CLI::get_value_from_arg_or_stdin( $args, -1 ) )
529529
: null;
530530

0 commit comments

Comments
 (0)