Skip to content

Commit 481c31b

Browse files
committed
update some example file
1 parent 02a65c9 commit 481c31b

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

Diff for: .php_cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This file is part of toolkit/cli-utils.
88
@license MIT
99
EOF;
1010

11-
return PhpCsFixer\Config::create()
11+
return (new PhpCsFixer\Config)
1212
->setRiskyAllowed(true)
1313
->setRules([
1414
'@PSR2' => true,

Diff for: composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"name": "toolkit/cli-utils",
33
"type": "library",
4-
"description": "some cli tool library of the php",
4+
"description": "useful cli tool library of the php",
55
"keywords": [
66
"library",
7+
"cli",
78
"tool",
9+
"command-line",
810
"php"
911
],
1012
"homepage": "https://github.com/php-toolkit/cli-utils",

Diff for: example/color.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use Toolkit\Cli\Color;
1111

12-
require dirname(__DIR__) . '/test/boot.php';
12+
require dirname(__DIR__) . '/test/bootstrap.php';
1313

1414
foreach (Color::getStyles() as $style) {
1515
printf(" %s: %s\n", $style, Color::apply($style, 'This is a message'));

Diff for: example/down.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Toolkit\Cli\App;
1111
use Toolkit\Cli\Download;
1212

13-
require dirname(__DIR__) . '/test/boot.php';
13+
require dirname(__DIR__) . '/test/bootstrap.php';
1414

1515
$app = new App();
1616
$url = 'http://no2.php.net/distributions/php-7.2.5.tar.bz2';

Diff for: example/high.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Toolkit\Cli\Cli;
1111
use Toolkit\Cli\Util\Highlighter;
1212

13-
require dirname(__DIR__) . '/test/boot.php';
13+
require dirname(__DIR__) . '/test/bootstrap.php';
1414

1515
echo "Highlight current file content:\n";
1616

Diff for: example/liteApp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Toolkit\Cli\App;
55

66
define('BASE_PATH', dirname(__DIR__));
77

8-
require dirname(__DIR__) . '/test/boot.php';
8+
require dirname(__DIR__) . '/test/bootstrap.php';
99

1010
// create app instance
1111
$app = new App([

0 commit comments

Comments
 (0)