Skip to content

Commit f644536

Browse files
author
Andrey Helldar
committed
Fixed commit merging error
1 parent 0840fe2 commit f644536

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Services/Formatter.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Helldar\PrettyArray\Services;
44

5-
use Helldar\PrettyArray\Exceptions\FileDoesntExistsException;
65
use Helldar\Support\Facades\Arr;
76

87
final class Formatter
@@ -48,22 +47,6 @@ public function raw(array $array, int $pad = 1): string
4847
return $formatted . $this->pad(']', $pad_length - $this->pad_length);
4948
}
5049

51-
/**
52-
* @param string $filename
53-
*
54-
* @throws FileDoesntExistsException
55-
*
56-
* @return array
57-
*/
58-
protected function load(string $filename): array
59-
{
60-
if (! file_exists($filename)) {
61-
throw new FileDoesntExistsException($filename);
62-
}
63-
64-
return require $filename;
65-
}
66-
6750
protected function pad(string $value, int $pad = 1, $type = STR_PAD_LEFT): string
6851
{
6952
$pad += $type === STR_PAD_LEFT

0 commit comments

Comments
 (0)