Skip to content

Commit 6be6009

Browse files
committed
formar some codes. use phpunit 7.5 for run ci test
1 parent 51c05ec commit 6be6009

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ before_script:
1414
- composer require php-coveralls/php-coveralls:^2.1.0
1515

1616
script:
17-
- phpunit --coverage-clover clover.xml
17+
# - phpunit --coverage-clover clover.xml
18+
- php vendor/bin/phpunit --coverage-clover clover.xml
1819

1920
after_success:
2021
- vendor/bin/php-coveralls --coverage_clover=clover.xml --json_path=coveralls-upload.json -v

src/Component/ConsoleRenderer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
namespace Inhere\Console\Component;
1010

11-
use Inhere\Console\Component\Formatter\FormatterInterface;
11+
use Inhere\Console\Contract\FormatterInterface;
1212

1313
/**
1414
* Class ConsoleRenderer
15+
*
1516
* @package Inhere\Console\Component
1617
*/
1718
class ConsoleRenderer

src/Component/Interact/Checkbox.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Inhere\Console\Component\Interact;
44

5-
use function array_filter;
6-
use function explode;
75
use Inhere\Console\Component\InteractMessage;
86
use Inhere\Console\Console;
97
use Inhere\Console\Util\Show;
8+
use function array_filter;
9+
use function explode;
1010
use function is_array;
1111
use function str_replace;
1212
use function strpos;

src/Component/Interact/Choose.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Inhere\Console\Component\Interact;
44

5-
use function array_key_exists;
6-
use function explode;
75
use Inhere\Console\Component\InteractMessage;
86
use Inhere\Console\Console;
97
use Inhere\Console\Util\Show;
8+
use function array_key_exists;
9+
use function explode;
1010
use function is_array;
1111
use function trim;
1212

src/Component/Interact/Password.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
namespace Inhere\Console\Component\Interact;
44

5+
use Inhere\Console\Component\InteractMessage;
6+
use RuntimeException;
7+
use Toolkit\Sys\Sys;
58
use function addslashes;
69
use function escapeshellarg;
710
use function file_put_contents;
8-
use Inhere\Console\Component\InteractMessage;
911
use function rtrim;
10-
use RuntimeException;
1112
use function shell_exec;
1213
use function sprintf;
13-
use Toolkit\Sys\Sys;
1414
use function unlink;
1515

1616
/**

src/Component/Progress/DynamicText.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use Generator;
66
use Inhere\Console\Component\NotifyMessage;
77
use Inhere\Console\Console;
8-
use function printf;
98
use Toolkit\Cli\Cli;
9+
use function printf;
1010

1111
/**
1212
* Class DynamicText

src/Component/Progress/SimpleBar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace Inhere\Console\Component\Progress;
44

5-
use function array_merge;
6-
use function ceil;
75
use Generator;
86
use Inhere\Console\Component\NotifyMessage;
97
use Inhere\Console\Console;
108
use Toolkit\Cli\Cli;
9+
use function array_merge;
10+
use function ceil;
1111

1212
/**
1313
* Class SimpleBar

src/Component/Style/Color.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
namespace Inhere\Console\Component\Style;
77

8+
use InvalidArgumentException;
9+
use RuntimeException;
810
use function array_key_exists;
911
use function array_keys;
1012
use function count;
1113
use function explode;
1214
use function implode;
13-
use InvalidArgumentException;
14-
use RuntimeException;
1515
use function str_replace;
1616

1717
/**

src/Component/Style/Style.php

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

1111
namespace Inhere\Console\Component\Style;
1212

13+
use InvalidArgumentException;
14+
use Toolkit\Cli\Cli;
15+
use Toolkit\Cli\ColorTag;
1316
use function array_key_exists;
1417
use function array_keys;
1518
use function array_merge;
1619
use function array_values;
17-
use InvalidArgumentException;
1820
use function is_array;
1921
use function is_object;
2022
use function sprintf;
2123
use function str_replace;
2224
use function strpos;
23-
use Toolkit\Cli\Cli;
24-
use Toolkit\Cli\ColorTag;
2525

2626
/**
2727
* Class Style

src/Component/Symbol/ArtFont.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88

99
namespace Inhere\Console\Component\Symbol;
1010

11+
use Inhere\Console\Console;
12+
use Toolkit\Cli\ColorTag;
1113
use function dirname;
1214
use function file_get_contents;
1315
use function in_array;
14-
use Inhere\Console\Console;
15-
use Inhere\Console\Util\Helper;
16-
use Inhere\Console\Util\Show;
1716
use function is_file;
18-
use Toolkit\Cli\ColorTag;
1917

2018
/**
2119
* Class ArtFont art fonts Manager

0 commit comments

Comments
 (0)