Skip to content

Commit

Permalink
Merge branch '4.next' into 4.next-documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory authored Sep 26, 2021
2 parents 9e19697 + 7577655 commit 1b06807
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MergeVariablesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function _mergeProperty(string $property, array $parentClasses, array
* @param array $current The current merged value.
* @param array $parent The parent class' value.
* @param bool $isAssoc Whether the merging should be done in associative mode.
* @return mixed The updated value.
* @return array The updated value.
*/
protected function _mergePropertyData(array $current, array $parent, bool $isAssoc)
{
Expand Down
3 changes: 1 addition & 2 deletions Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ public static function wordWrap(string $text, int $width = 72, string $break = "
*/
protected static function _wordWrap(string $text, int $width = 72, string $break = "\n", bool $cut = false): string
{
$parts = [];
if ($cut) {
$parts = [];
while (mb_strlen($text) > 0) {
$part = mb_substr($text, 0, $width);
$parts[] = trim($part);
Expand All @@ -452,7 +452,6 @@ protected static function _wordWrap(string $text, int $width = 72, string $break
return implode($break, $parts);
}

$parts = [];
while (mb_strlen($text) > 0) {
if ($width >= mb_strlen($text)) {
$parts[] = trim($text);
Expand Down

0 comments on commit 1b06807

Please sign in to comment.