Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid74 committed Jan 4, 2024
1 parent 503e122 commit f9ad787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,15 +499,15 @@ public static function printVar($mixVar, string $sTitle = ''): void
* @param string|null $filename The name of the file in which the replacement is being performed.
* @param string|null $searchString The search string.
* @param string|null $replaceString The replacement string.
* @param string $enc The encoding.
* @param string|null $enc The encoding.
*
* @return array Returns an array where the first element (result) is true if the replacement is completed or
* no replacement is required, false if an error occurred, and the second element (description) is details.
*
* Возвращает массив, где первый элемент (result) - true, если замена выполнена или замена не требуется,
* false если произошла ошибка, а второй элемент (description) - подробности.
*/
public static function replaceStringInFile(?string $filename, ?string $searchString, ?string $replaceString = '', $enc = ''): array
public static function replaceStringInFile(?string $filename, ?string $searchString, ?string $replaceString = '', ?string $enc = ''): array
{
try {
// Checking an empty file name
Expand Down

0 comments on commit f9ad787

Please sign in to comment.