Skip to content

Commit

Permalink
feature/compress
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul Mauricio Uñate Castro committed Jul 6, 2024
1 parent 671ff6d commit 0122991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Support/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ public static function convertCase(string $string, int $mode = MB_CASE_FOLD, ?st
/**
* Compresses a string using gzip compression.
*
* @param string $string The string to compress.
* @param int $mode Compression level (1 to 9, defaults to 5).
* @param string $string The string to compress.
* @param int $mode Compression level (1 to 9, defaults to 5).
* @return string|false The compressed string, or false on failure.
*/
public static function compress(string $string, int $mode = 5)
Expand All @@ -364,7 +364,7 @@ public static function compress(string $string, int $mode = 5)
/**
* Decompresses a gzip compressed string.
*
* @param string $compressedString The compressed string.
* @param string $compressedString The compressed string.
* @return string|false The decompressed string, or false on failure.
*/
public static function decompress(string $compressedString)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Stringable.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function convertCase(int $mode = MB_CASE_FOLD, ?string $encoding = 'UTF-8
/**
* Compresses a string using gzip compression.
*
* @param int $mode Compression level (1 to 9, defaults to 5).
* @param int $mode Compression level (1 to 9, defaults to 5).
* @return string|false The compressed string, or false on failure.
*/
public function compress(int $mode = 5)
Expand Down

0 comments on commit 0122991

Please sign in to comment.