Skip to content

Commit e0bf92f

Browse files
committed
format some files
1 parent 737de2f commit e0bf92f

20 files changed

+175
-175
lines changed

components.inc

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

33
return [
4-
'arr-utils',
5-
'collection',
6-
'cli-utils',
7-
'data-parser',
8-
'di',
9-
'file-utils',
10-
'file-parse',
11-
'helper-utils',
12-
'obj-utils',
13-
'php-utils',
14-
'str-utils',
15-
'sys-utils',
4+
'arr-utils',
5+
'collection',
6+
'cli-utils',
7+
'data-parser',
8+
'di',
9+
'file-utils',
10+
'file-parse',
11+
'helper-utils',
12+
'obj-utils',
13+
'php-utils',
14+
'str-utils',
15+
'sys-utils',
1616
];

libs/arr-utils/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
convertWarningsToExceptions="true"
1010
stopOnFailure="false"
1111
>
12-
<testsuites>
13-
<testsuite name="Php Library Test Suite">
14-
<directory>test/</directory>
15-
</testsuite>
16-
</testsuites>
12+
<testsuites>
13+
<testsuite name="Php Library Test Suite">
14+
<directory>test/</directory>
15+
</testsuite>
16+
</testsuites>
1717

18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">src</directory>
21-
</whitelist>
22-
</filter>
18+
<filter>
19+
<whitelist>
20+
<directory suffix=".php">src</directory>
21+
</whitelist>
22+
</filter>
2323
</phpunit>

libs/cli-utils/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
convertWarningsToExceptions="true"
1010
stopOnFailure="false"
1111
>
12-
<testsuites>
13-
<testsuite name="Php Library Test Suite">
14-
<directory>test/</directory>
15-
</testsuite>
16-
</testsuites>
12+
<testsuites>
13+
<testsuite name="Php Library Test Suite">
14+
<directory>test/</directory>
15+
</testsuite>
16+
</testsuites>
1717

18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">src</directory>
21-
</whitelist>
22-
</filter>
18+
<filter>
19+
<whitelist>
20+
<directory suffix=".php">src</directory>
21+
</whitelist>
22+
</filter>
2323
</phpunit>

libs/collection/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
convertWarningsToExceptions="true"
1010
stopOnFailure="false"
1111
>
12-
<testsuites>
13-
<testsuite name="Php Library Test Suite">
14-
<directory>test/</directory>
15-
</testsuite>
16-
</testsuites>
12+
<testsuites>
13+
<testsuite name="Php Library Test Suite">
14+
<directory>test/</directory>
15+
</testsuite>
16+
</testsuites>
1717

18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">src</directory>
21-
</whitelist>
22-
</filter>
18+
<filter>
19+
<whitelist>
20+
<directory suffix=".php">src</directory>
21+
</whitelist>
22+
</filter>
2323
</phpunit>

libs/data-parser/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
stopOnFailure="false"
1111

1212
>
13-
<testsuites>
14-
<testsuite name="Php Library Test Suite">
15-
<directory>test/</directory>
16-
</testsuite>
17-
</testsuites>
13+
<testsuites>
14+
<testsuite name="Php Library Test Suite">
15+
<directory>test/</directory>
16+
</testsuite>
17+
</testsuites>
1818

19-
<filter>
20-
<whitelist>
21-
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">src</directory>
22+
</whitelist>
23+
</filter>
2424
</phpunit>

libs/di/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
convertWarningsToExceptions="true"
1010
stopOnFailure="false"
1111
>
12-
<testsuites>
13-
<testsuite name="Php Library Test Suite">
14-
<directory>test/</directory>
15-
</testsuite>
16-
</testsuites>
12+
<testsuites>
13+
<testsuite name="Php Library Test Suite">
14+
<directory>test/</directory>
15+
</testsuite>
16+
</testsuites>
1717

18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">src</directory>
21-
</whitelist>
22-
</filter>
18+
<filter>
19+
<whitelist>
20+
<directory suffix=".php">src</directory>
21+
</whitelist>
22+
</filter>
2323
</phpunit>

libs/di/test/boot.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
if (0 === strpos($class, 'Toolkit\DI\Example\\')) {
1414
$path = str_replace('\\', '/', substr($class, strlen('Toolkit\DI\Example\\')));
1515
$file = dirname(__DIR__) . "/example/{$path}.php";
16-
} elseif (0 === strpos($class,'Toolkit\DITest\\')) {
16+
} elseif (0 === strpos($class, 'Toolkit\DITest\\')) {
1717
$path = str_replace('\\', '/', substr($class, strlen('Toolkit\DITest\\')));
1818
$file = __DIR__ . "/{$path}.php";
19-
} elseif (0 === strpos($class,'Toolkit\DI\\')) {
19+
} elseif (0 === strpos($class, 'Toolkit\DI\\')) {
2020
$path = str_replace('\\', '/', substr($class, strlen('Toolkit\DI\\')));
2121
$file = dirname(__DIR__) . "/src/{$path}.php";
2222
}

libs/file-parse/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
convertWarningsToExceptions="true"
1010
stopOnFailure="false"
1111
>
12-
<testsuites>
13-
<testsuite name="Php Library Test Suite">
14-
<directory>test</directory>
15-
</testsuite>
16-
</testsuites>
12+
<testsuites>
13+
<testsuite name="Php Library Test Suite">
14+
<directory>test</directory>
15+
</testsuite>
16+
</testsuites>
1717

18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">src</directory>
21-
</whitelist>
22-
</filter>
18+
<filter>
19+
<whitelist>
20+
<directory suffix=".php">src</directory>
21+
</whitelist>
22+
</filter>
2323
</phpunit>

libs/file-parse/src/IniParser.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ class IniParser extends BaseParser
1616
{
1717
/**
1818
* parse INI
19-
* @param string $string Waiting for the parse data
20-
* @param bool $enhancement 启用增强功能,支持通过关键字 继承、导入、参考
19+
* @param string $string Waiting for the parse data
20+
* @param bool $enhancement 启用增强功能,支持通过关键字 继承、导入、参考
2121
* @param callable $pathHandler When the second param is true, this param is valid.
22-
* @param string $fileDir When the second param is true, this param is valid.
22+
* @param string $fileDir When the second param is true, this param is valid.
2323
* @return array
2424
* @throws \InvalidArgumentException
2525
* @throws \UnexpectedValueException

libs/file-parse/src/JsonParser.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class JsonParser extends BaseParser
1818
{
1919
/**
2020
* parse JSON
21-
* @param string $string Waiting for the parse data
22-
* @param bool $enhancement 启用增强功能,支持通过关键字 继承、导入、参考
21+
* @param string $string Waiting for the parse data
22+
* @param bool $enhancement 启用增强功能,支持通过关键字 继承、导入、参考
2323
* @param callable $pathHandler When the second param is true, this param is valid.
24-
* @param string $fileDir When the second param is true, this param is valid.
24+
* @param string $fileDir When the second param is true, this param is valid.
2525
* @return array
2626
* @throws \InvalidArgumentException
2727
* @throws \UnexpectedValueException

libs/file-parse/src/YmlParser.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class YmlParser extends BaseParser
1818
{
1919
/**
2020
* parse YAML
21-
* @param string $string Waiting for the parse data
22-
* @param bool $enhancement 启用增强功能,支持通过关键字 继承、导入、参考
21+
* @param string $string Waiting for the parse data
22+
* @param bool $enhancement 启用增强功能,支持通过关键字 继承、导入、参考
2323
* @param callable $pathHandler When the second param is true, this param is valid.
24-
* @param string $fileDir When the second param is true, this param is valid.
24+
* @param string $fileDir When the second param is true, this param is valid.
2525
* @return array
2626
* @throws \InvalidArgumentException
2727
* @throws \UnexpectedValueException

libs/file-utils/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
stopOnFailure="false"
1111

1212
>
13-
<testsuites>
14-
<testsuite name="Php Library Test Suite">
15-
<directory>test</directory>
16-
</testsuite>
17-
</testsuites>
13+
<testsuites>
14+
<testsuite name="Php Library Test Suite">
15+
<directory>test</directory>
16+
</testsuite>
17+
</testsuites>
1818

19-
<filter>
20-
<whitelist>
21-
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">src</directory>
22+
</whitelist>
23+
</filter>
2424
</phpunit>

libs/helper-utils/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
stopOnFailure="false"
1111

1212
>
13-
<testsuites>
14-
<testsuite name="Php Library Test Suite">
15-
<directory>test</directory>
16-
</testsuite>
17-
</testsuites>
13+
<testsuites>
14+
<testsuite name="Php Library Test Suite">
15+
<directory>test</directory>
16+
</testsuite>
17+
</testsuites>
1818

19-
<filter>
20-
<whitelist>
21-
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">src</directory>
22+
</whitelist>
23+
</filter>
2424
</phpunit>

libs/obj-utils/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
stopOnFailure="false"
1111

1212
>
13-
<testsuites>
14-
<testsuite name="Php Library Test Suite">
15-
<directory>test/</directory>
16-
</testsuite>
17-
</testsuites>
13+
<testsuites>
14+
<testsuite name="Php Library Test Suite">
15+
<directory>test/</directory>
16+
</testsuite>
17+
</testsuites>
1818

19-
<filter>
20-
<whitelist>
21-
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">src</directory>
22+
</whitelist>
23+
</filter>
2424
</phpunit>

libs/php-utils/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
stopOnFailure="false"
1111

1212
>
13-
<testsuites>
14-
<testsuite name="Php Library Test Suite">
15-
<directory>test/</directory>
16-
</testsuite>
17-
</testsuites>
13+
<testsuites>
14+
<testsuite name="Php Library Test Suite">
15+
<directory>test/</directory>
16+
</testsuite>
17+
</testsuites>
1818

19-
<filter>
20-
<whitelist>
21-
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">src</directory>
22+
</whitelist>
23+
</filter>
2424
</phpunit>

libs/str-utils/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
stopOnFailure="false"
1111

1212
>
13-
<testsuites>
14-
<testsuite name="Php Library Test Suite">
15-
<directory>test/</directory>
16-
</testsuite>
17-
</testsuites>
13+
<testsuites>
14+
<testsuite name="Php Library Test Suite">
15+
<directory>test/</directory>
16+
</testsuite>
17+
</testsuites>
1818

19-
<filter>
20-
<whitelist>
21-
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">src</directory>
22+
</whitelist>
23+
</filter>
2424
</phpunit>

libs/sys-utils/phpunit.xml.dist

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
stopOnFailure="false"
1111

1212
>
13-
<testsuites>
14-
<testsuite name="Php Library Test Suite">
15-
<directory>test/</directory>
16-
</testsuite>
17-
</testsuites>
13+
<testsuites>
14+
<testsuite name="Php Library Test Suite">
15+
<directory>test/</directory>
16+
</testsuite>
17+
</testsuites>
1818

19-
<filter>
20-
<whitelist>
21-
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">src</directory>
22+
</whitelist>
23+
</filter>
2424
</phpunit>

0 commit comments

Comments
 (0)