Skip to content

Commit 8e334c5

Browse files
author
Andrey Helldar
committed
Bump andrey-helldar/support
@see TheDragonCode/support#31
1 parent 2a55e54 commit 8e334c5

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Instead, you may of course manually update your `require-dev` block and run `com
4444
```json
4545
{
4646
"require-dev": {
47-
"andrey-helldar/pretty-array": "^1.0"
47+
"andrey-helldar/pretty-array": "^2.0"
4848
}
4949
}
5050
```

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^7.1.3|^8.0",
18+
"php": "^7.2.5|^8.0",
1919
"ext-dom": "*",
2020
"ext-mbstring": "*",
21-
"andrey-helldar/support": "^1.16.0"
21+
"andrey-helldar/support": "^2.0"
2222
},
2323
"require-dev": {
2424
"phpstan/phpstan": "^0.12.7",
@@ -29,12 +29,12 @@
2929
},
3030
"autoload": {
3131
"psr-4": {
32-
"Helldar\\PrettyArray\\": "src/"
32+
"Helldar\\PrettyArray\\": "src"
3333
}
3434
},
3535
"autoload-dev": {
3636
"psr-4": {
37-
"Tests\\": "tests/"
37+
"Tests\\": "tests"
3838
}
3939
},
4040
"config": {

src/Concerns/HasCases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Helldar\PrettyArray\Concerns;
44

55
use Helldar\PrettyArray\Exceptions\UnknownCaseTypeException;
6-
use Helldar\Support\Facades\Str;
6+
use Helldar\Support\Facades\Helpers\Str;
77

88
trait HasCases
99
{

src/Services/File.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
namespace Helldar\PrettyArray\Services;
44

55
use Helldar\PrettyArray\Exceptions\FileDoesntExistsException;
6-
use Helldar\Support\Facades\File as FileSupport;
7-
use Helldar\Support\Tools\Stub;
6+
use Helldar\Support\Facades\Helpers\Filesystem\File as FileSupport;
7+
use Helldar\Support\Facades\Tools\Stub;
8+
use Helldar\Support\Tools\Stub as StubTool;
89

910
class File
1011
{
@@ -43,7 +44,7 @@ public function loadRaw(string $filename)
4344

4445
public function store(string $path): void
4546
{
46-
$content = Stub::replace(Stub::CONFIG_FILE, [
47+
$content = Stub::replace(StubTool::PHP_ARRAY, [
4748
'{{slot}}' => $this->content,
4849
]);
4950

src/Services/Formatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Helldar\PrettyArray\Concerns\HasCases;
66
use Helldar\PrettyArray\Concerns\HasCastable;
77
use Helldar\PrettyArray\Contracts\Caseable;
8-
use Helldar\Support\Facades\Arr;
8+
use Helldar\Support\Facades\Helpers\Arr;
99

1010
final class Formatter implements Caseable
1111
{
@@ -86,7 +86,7 @@ protected function key($key, int $size = 0)
8686

8787
protected function sizeKeys(array $array): int
8888
{
89-
$sizes = Arr::sizeOfMaxValue(
89+
$sizes = Arr::longestStringLength(
9090
array_keys($array)
9191
);
9292

0 commit comments

Comments
 (0)