Skip to content

Commit

Permalink
formar some codes. use phpunit 7.5 for run ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Aug 7, 2019
1 parent 51c05ec commit 6be6009
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ before_script:
- composer require php-coveralls/php-coveralls:^2.1.0

script:
- phpunit --coverage-clover clover.xml
# - phpunit --coverage-clover clover.xml
- php vendor/bin/phpunit --coverage-clover clover.xml

after_success:
- vendor/bin/php-coveralls --coverage_clover=clover.xml --json_path=coveralls-upload.json -v
3 changes: 2 additions & 1 deletion src/Component/ConsoleRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

namespace Inhere\Console\Component;

use Inhere\Console\Component\Formatter\FormatterInterface;
use Inhere\Console\Contract\FormatterInterface;

/**
* Class ConsoleRenderer
*
* @package Inhere\Console\Component
*/
class ConsoleRenderer
Expand Down
4 changes: 2 additions & 2 deletions src/Component/Interact/Checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Inhere\Console\Component\Interact;

use function array_filter;
use function explode;
use Inhere\Console\Component\InteractMessage;
use Inhere\Console\Console;
use Inhere\Console\Util\Show;
use function array_filter;
use function explode;
use function is_array;
use function str_replace;
use function strpos;
Expand Down
4 changes: 2 additions & 2 deletions src/Component/Interact/Choose.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Inhere\Console\Component\Interact;

use function array_key_exists;
use function explode;
use Inhere\Console\Component\InteractMessage;
use Inhere\Console\Console;
use Inhere\Console\Util\Show;
use function array_key_exists;
use function explode;
use function is_array;
use function trim;

Expand Down
6 changes: 3 additions & 3 deletions src/Component/Interact/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Inhere\Console\Component\Interact;

use Inhere\Console\Component\InteractMessage;
use RuntimeException;
use Toolkit\Sys\Sys;
use function addslashes;
use function escapeshellarg;
use function file_put_contents;
use Inhere\Console\Component\InteractMessage;
use function rtrim;
use RuntimeException;
use function shell_exec;
use function sprintf;
use Toolkit\Sys\Sys;
use function unlink;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Progress/DynamicText.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Generator;
use Inhere\Console\Component\NotifyMessage;
use Inhere\Console\Console;
use function printf;
use Toolkit\Cli\Cli;
use function printf;

/**
* Class DynamicText
Expand Down
4 changes: 2 additions & 2 deletions src/Component/Progress/SimpleBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Inhere\Console\Component\Progress;

use function array_merge;
use function ceil;
use Generator;
use Inhere\Console\Component\NotifyMessage;
use Inhere\Console\Console;
use Toolkit\Cli\Cli;
use function array_merge;
use function ceil;

/**
* Class SimpleBar
Expand Down
4 changes: 2 additions & 2 deletions src/Component/Style/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

namespace Inhere\Console\Component\Style;

use InvalidArgumentException;
use RuntimeException;
use function array_key_exists;
use function array_keys;
use function count;
use function explode;
use function implode;
use InvalidArgumentException;
use RuntimeException;
use function str_replace;

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Style/Style.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@

namespace Inhere\Console\Component\Style;

use InvalidArgumentException;
use Toolkit\Cli\Cli;
use Toolkit\Cli\ColorTag;
use function array_key_exists;
use function array_keys;
use function array_merge;
use function array_values;
use InvalidArgumentException;
use function is_array;
use function is_object;
use function sprintf;
use function str_replace;
use function strpos;
use Toolkit\Cli\Cli;
use Toolkit\Cli\ColorTag;

/**
* Class Style
Expand Down
6 changes: 2 additions & 4 deletions src/Component/Symbol/ArtFont.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@

namespace Inhere\Console\Component\Symbol;

use Inhere\Console\Console;
use Toolkit\Cli\ColorTag;
use function dirname;
use function file_get_contents;
use function in_array;
use Inhere\Console\Console;
use Inhere\Console\Util\Helper;
use Inhere\Console\Util\Show;
use function is_file;
use Toolkit\Cli\ColorTag;

/**
* Class ArtFont art fonts Manager
Expand Down
2 changes: 1 addition & 1 deletion src/IO/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
use Inhere\Console\Console;
use Inhere\Console\Traits\FormatOutputAwareTrait;
use Inhere\Console\Util\Show;
use Toolkit\Cli\Cli;
use const STDERR;
use const STDOUT;
use Toolkit\Cli\Cli;

/**
* Class Output
Expand Down

0 comments on commit 6be6009

Please sign in to comment.