Skip to content

Commit

Permalink
Bump andrey-helldar/support
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Dec 29, 2020
1 parent 2a55e54 commit 8e334c5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Instead, you may of course manually update your `require-dev` block and run `com
```json
{
"require-dev": {
"andrey-helldar/pretty-array": "^1.0"
"andrey-helldar/pretty-array": "^2.0"
}
}
```
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
}
],
"require": {
"php": "^7.1.3|^8.0",
"php": "^7.2.5|^8.0",
"ext-dom": "*",
"ext-mbstring": "*",
"andrey-helldar/support": "^1.16.0"
"andrey-helldar/support": "^2.0"
},
"require-dev": {
"phpstan/phpstan": "^0.12.7",
Expand All @@ -29,12 +29,12 @@
},
"autoload": {
"psr-4": {
"Helldar\\PrettyArray\\": "src/"
"Helldar\\PrettyArray\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
"Tests\\": "tests"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/HasCases.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Helldar\PrettyArray\Concerns;

use Helldar\PrettyArray\Exceptions\UnknownCaseTypeException;
use Helldar\Support\Facades\Str;
use Helldar\Support\Facades\Helpers\Str;

trait HasCases
{
Expand Down
7 changes: 4 additions & 3 deletions src/Services/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Helldar\PrettyArray\Services;

use Helldar\PrettyArray\Exceptions\FileDoesntExistsException;
use Helldar\Support\Facades\File as FileSupport;
use Helldar\Support\Tools\Stub;
use Helldar\Support\Facades\Helpers\Filesystem\File as FileSupport;
use Helldar\Support\Facades\Tools\Stub;
use Helldar\Support\Tools\Stub as StubTool;

class File
{
Expand Down Expand Up @@ -43,7 +44,7 @@ public function loadRaw(string $filename)

public function store(string $path): void
{
$content = Stub::replace(Stub::CONFIG_FILE, [
$content = Stub::replace(StubTool::PHP_ARRAY, [
'{{slot}}' => $this->content,
]);

Expand Down
4 changes: 2 additions & 2 deletions src/Services/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Helldar\PrettyArray\Concerns\HasCases;
use Helldar\PrettyArray\Concerns\HasCastable;
use Helldar\PrettyArray\Contracts\Caseable;
use Helldar\Support\Facades\Arr;
use Helldar\Support\Facades\Helpers\Arr;

final class Formatter implements Caseable
{
Expand Down Expand Up @@ -86,7 +86,7 @@ protected function key($key, int $size = 0)

protected function sizeKeys(array $array): int
{
$sizes = Arr::sizeOfMaxValue(
$sizes = Arr::longestStringLength(
array_keys($array)
);

Expand Down

0 comments on commit 8e334c5

Please sign in to comment.