Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent unnecessary calls to str_repeat() #65

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jun 18, 2024

No description provided.

$array = $value;
$key = $processed->add($value);
$values = '';
$whitespace = str_repeat(' ', 4 * $indentation);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved this line into the lower if. everything else is cs-fixer doing its thing

@@ -368,11 +369,12 @@ private function exportObject(object $value, RecursionContext $processed, int $i

$processed->add($value);

$array = $this->toArray($value);
$buffer = '';
$whitespace = str_repeat(' ', 4 * $indentation);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@staabm staabm marked this pull request as ready for review June 18, 2024 10:06
@sebastianbergmann sebastianbergmann merged commit 09fec25 into sebastianbergmann:main Jun 18, 2024
5 checks passed
@staabm staabm deleted the un branch June 18, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants