Skip to content

Commit a7048ea

Browse files
committed
chore: run php-cs-fixer for all classes
1 parent 84642f7 commit a7048ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+345
-67
lines changed

src/Arr/ArrObject.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?php declare(strict_types=1);
2+
/**
3+
* This file is part of toolkit/stdlib.
4+
*
5+
* @author https://github.com/inhere
6+
* @link https://github.com/php-toolkit/stdlib
7+
* @license MIT
8+
*/
29

310
namespace Toolkit\Stdlib\Arr;
411

@@ -11,5 +18,4 @@
1118
*/
1219
class ArrObject extends DataObject
1320
{
14-
1521
}

src/Arr/ArrayHelper.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -749,14 +749,14 @@ public static function toString(
749749

750750
if (is_array($value)) {
751751
$string .= $keyStr . 'Array(' . self::toString(
752-
$value,
753-
$length,
754-
$cycles,
755-
$showKey,
756-
$addMark,
757-
$separator,
758-
$string
759-
) . ')' . $separator;
752+
$value,
753+
$length,
754+
$cycles,
755+
$showKey,
756+
$addMark,
757+
$separator,
758+
$string
759+
) . ')' . $separator;
760760
} elseif (is_object($value)) {
761761
$string .= $keyStr . 'Object(' . get_class($value) . ')' . $separator;
762762
} elseif (is_resource($value)) {

src/Arr/ArrayWrap.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?php declare(strict_types=1);
2+
/**
3+
* This file is part of toolkit/stdlib.
4+
*
5+
* @author https://github.com/inhere
6+
* @link https://github.com/php-toolkit/stdlib
7+
* @license MIT
8+
*/
29

310
namespace Toolkit\Stdlib\Arr;
411

@@ -11,5 +18,4 @@
1118
*/
1219
class ArrayWrap extends DataObject
1320
{
14-
1521
}

src/Helper/Assert.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?php declare(strict_types=1);
2+
/**
3+
* This file is part of toolkit/stdlib.
4+
*
5+
* @author https://github.com/inhere
6+
* @link https://github.com/php-toolkit/stdlib
7+
* @license MIT
8+
*/
29

310
namespace Toolkit\Stdlib\Helper;
411

@@ -296,7 +303,7 @@ public static function isFile(string $path, string $errMsg = ''): void
296303
public static function isResource($res, string $errMsg = ''): void
297304
{
298305
if (!is_resource($res)) {
299-
throw static::createEx($errMsg ?: "Excepted an resource");
306+
throw static::createEx($errMsg ?: 'Excepted an resource');
300307
}
301308
}
302309

src/Helper/BasePhpTestCase.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?php declare(strict_types=1);
2+
/**
3+
* This file is part of toolkit/stdlib.
4+
*
5+
* @author https://github.com/inhere
6+
* @link https://github.com/php-toolkit/stdlib
7+
* @license MIT
8+
*/
29

310
namespace Toolkit\Stdlib\Helper;
411

src/Helper/NumHelper.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?php declare(strict_types=1);
2+
/**
3+
* This file is part of toolkit/stdlib.
4+
*
5+
* @author https://github.com/inhere
6+
* @link https://github.com/php-toolkit/stdlib
7+
* @license MIT
8+
*/
29

310
namespace Toolkit\Stdlib\Helper;
411

src/Helper/PhpHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
use function sprintf;
4444
use function stat;
4545
use function strlen;
46-
use function strpos;
4746
use function strtoupper;
4847
use function var_dump;
4948
use function var_export;

src/Helper/Valid.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?php declare(strict_types=1);
2+
/**
3+
* This file is part of toolkit/stdlib.
4+
*
5+
* @author https://github.com/inhere
6+
* @link https://github.com/php-toolkit/stdlib
7+
* @license MIT
8+
*/
29

310
namespace Toolkit\Stdlib\Helper;
411

src/Math.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818
*/
1919
class Math extends NumHelper
2020
{
21-
2221
}

src/Num.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818
*/
1919
class Num extends NumHelper
2020
{
21-
2221
}

0 commit comments

Comments
 (0)