Skip to content

Commit

Permalink
Improve internal codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Oct 14, 2024
1 parent e3e2135 commit 0d47043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"ext-xdebug": "*",
"friendsofphp/php-cs-fixer": "^3.64.0",
"phpbench/phpbench": "^1.3.1",
"phpstan/phpstan": "^1.12.5",
"phpstan/phpstan": "^1.12.6",
"phpstan/phpstan-deprecation-rules": "^1.2.1",
"phpstan/phpstan-phpunit": "^1.4.0",
"phpstan/phpstan-strict-rules": "^1.6.1",
"phpunit/phpunit": "^10.5.16 || ^11.4.0",
"phpunit/phpunit": "^10.5.16 || ^11.4.1",
"symfony/var-dumper": "^6.4.8 || ^7.1.5"
},
"autoload": {
Expand Down
5 changes: 2 additions & 3 deletions src/JsonConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ private function __construct(int $flags, int $depth, int $indentSize, Closure $f
$this->formatter = $formatter;
$this->chunkSize = $chunkSize;

// Initialize private properties used for conversion.
// To optimize the process, we pre-calculate properties
// and closure needed to speed up encoding
// Initialize settings and closure to use for conversion.
// To speed up the process we pre-calculate them
$this->indentation = str_repeat(' ', $this->indentSize);
$start = '[';
$end = ']';
Expand Down

0 comments on commit 0d47043

Please sign in to comment.