Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Please also have a look at our
### Changed

- Use more native type declarations and strict mode
(#641, #772, #774, #778, #804, #841)
(#641, #772, #774, #778, #804, #841, #783)
- Add visibility to all class/interface constants (#469)

### Deprecated
Expand Down
16 changes: 6 additions & 10 deletions src/OutputFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,23 +243,19 @@ public function __call(string $sMethodName, array $aArguments)
}

/**
* @param int $iNumber
*
* @return self
* @return $this fluent interface
*/
public function indentWithTabs($iNumber = 1)
public function indentWithTabs(int $numberOfTabs = 1): self
{
return $this->setIndentation(\str_repeat("\t", $iNumber));
return $this->setIndentation(\str_repeat("\t", $numberOfTabs));
}

/**
* @param int $iNumber
*
* @return self
* @return $this fluent interface
*/
public function indentWithSpaces($iNumber = 2)
public function indentWithSpaces(int $numberOfSpaces = 2): self
{
return $this->setIndentation(\str_repeat(' ', $iNumber));
return $this->setIndentation(\str_repeat(' ', $numberOfSpaces));
}

/**
Expand Down