File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Helldar \PrettyArray \Services ;
4
4
5
- use Helldar \PrettyArray \Exceptions \FileDoesntExistsException ;
6
5
use Helldar \Support \Facades \Arr ;
7
6
8
7
final class Formatter
@@ -48,22 +47,6 @@ public function raw(array $array, int $pad = 1): string
48
47
return $ formatted . $ this ->pad ('] ' , $ pad_length - $ this ->pad_length );
49
48
}
50
49
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
-
67
50
protected function pad (string $ value , int $ pad = 1 , $ type = STR_PAD_LEFT ): string
68
51
{
69
52
$ pad += $ type === STR_PAD_LEFT
You can’t perform that action at this time.
0 commit comments