Skip to content

Commit

Permalink
Fixed commit merging error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Jan 25, 2020
1 parent 0840fe2 commit f644536
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Services/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Helldar\PrettyArray\Services;

use Helldar\PrettyArray\Exceptions\FileDoesntExistsException;
use Helldar\Support\Facades\Arr;

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

/**
* @param string $filename
*
* @throws FileDoesntExistsException
*
* @return array
*/
protected function load(string $filename): array
{
if (! file_exists($filename)) {
throw new FileDoesntExistsException($filename);
}

return require $filename;
}

protected function pad(string $value, int $pad = 1, $type = STR_PAD_LEFT): string
{
$pad += $type === STR_PAD_LEFT
Expand Down

0 comments on commit f644536

Please sign in to comment.