Skip to content

Commit

Permalink
Consistant implode usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredthelead committed Sep 19, 2024
1 parent ad3acd0 commit 6757b0e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Locale/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ public static function convertPhpToIsoFormat($format)
}
}

return implode($converted);
return implode('', $converted);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Pdf/Element/String.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public static function unescape($str)
}
}

return implode($outEntries);
return implode('', $outEntries);
}

}
2 changes: 1 addition & 1 deletion library/Zend/Pdf/Element/String/Binary.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function unescape($inStr)
$chunks[] = '0';
}

return pack('H*' , implode($chunks));
return pack('H*' , implode('', $chunks));
}


Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Search/Lucene/Document/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,6 @@ public function getHtmlBody()
$outputFragments[] = $this->_doc->saveXML($bodyNodes->item($count));
}

return implode($outputFragments);
return implode('', $outputFragments);
}
}
2 changes: 1 addition & 1 deletion library/Zend/Validate/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected function _createMessage($messageKey, $value)
} elseif (is_array($value)) {
$value = $this->_implodeRecursive($value);
} else {
$value = implode((array) $value);
$value = implode('', (array) $value);
}

if ($this->getObscureValue()) {
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Validate/Hostname.php
Original file line number Diff line number Diff line change
Expand Up @@ -2421,6 +2421,6 @@ protected function decodePunycode($encoded)
}
}

return implode($decoded);
return implode('', $decoded);
}
}

0 comments on commit 6757b0e

Please sign in to comment.