Skip to content

[CLEANUP] Avoid Hungarian notation in OutputFormat (part 6) #1118

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

Merged
merged 1 commit into from
Mar 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/OutputFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,28 +99,28 @@ class OutputFormat
*
* @var string
*/
private $sSpaceBeforeListArgumentSeparator = '';
private $spaceBeforeListArgumentSeparator = '';

/**
* Keys are separators (e.g. `,`). Values are the space sequence to insert, or an empty string.
*
* @var array<non-empty-string, string>
*/
private $aSpaceBeforeListArgumentSeparators = [];
private $spaceBeforeListArgumentSeparators = [];

/**
* This is what’s inserted after the separator in value lists, by default.
*
* @var string
*/
private $sSpaceAfterListArgumentSeparator = '';
private $spaceAfterListArgumentSeparator = '';

/**
* Keys are separators (e.g. `,`). Values are the space sequence to insert, or an empty string.
*
* @var array<non-empty-string, string>
*/
private $aSpaceAfterListArgumentSeparators = [];
private $spaceAfterListArgumentSeparators = [];

/**
* @var string
Expand Down Expand Up @@ -457,15 +457,15 @@ public function setSpaceAfterSelectorSeparator(string $whitespace): self
*/
public function getSpaceBeforeListArgumentSeparator(): string
{
return $this->sSpaceBeforeListArgumentSeparator;
return $this->spaceBeforeListArgumentSeparator;
}

/**
* @return $this fluent interface
*/
public function setSpaceBeforeListArgumentSeparator(string $whitespace): self
{
$this->sSpaceBeforeListArgumentSeparator = $whitespace;
$this->spaceBeforeListArgumentSeparator = $whitespace;

return $this;
}
Expand All @@ -477,7 +477,7 @@ public function setSpaceBeforeListArgumentSeparator(string $whitespace): self
*/
public function getSpaceBeforeListArgumentSeparators(): array
{
return $this->aSpaceBeforeListArgumentSeparators;
return $this->spaceBeforeListArgumentSeparators;
}

/**
Expand All @@ -487,7 +487,7 @@ public function getSpaceBeforeListArgumentSeparators(): array
*/
public function setSpaceBeforeListArgumentSeparators(array $separatorSpaces): self
{
$this->aSpaceBeforeListArgumentSeparators = $separatorSpaces;
$this->spaceBeforeListArgumentSeparators = $separatorSpaces;

return $this;
}
Expand All @@ -497,15 +497,15 @@ public function setSpaceBeforeListArgumentSeparators(array $separatorSpaces): se
*/
public function getSpaceAfterListArgumentSeparator(): string
{
return $this->sSpaceAfterListArgumentSeparator;
return $this->spaceAfterListArgumentSeparator;
}

/**
* @return $this fluent interface
*/
public function setSpaceAfterListArgumentSeparator(string $whitespace): self
{
$this->sSpaceAfterListArgumentSeparator = $whitespace;
$this->spaceAfterListArgumentSeparator = $whitespace;

return $this;
}
Expand All @@ -517,7 +517,7 @@ public function setSpaceAfterListArgumentSeparator(string $whitespace): self
*/
public function getSpaceAfterListArgumentSeparators(): array
{
return $this->aSpaceAfterListArgumentSeparators;
return $this->spaceAfterListArgumentSeparators;
}

/**
Expand All @@ -527,7 +527,7 @@ public function getSpaceAfterListArgumentSeparators(): array
*/
public function setSpaceAfterListArgumentSeparators(array $separatorSpaces): self
{
$this->aSpaceAfterListArgumentSeparators = $separatorSpaces;
$this->spaceAfterListArgumentSeparators = $separatorSpaces;

return $this;
}
Expand Down