mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Run PHP-CS-FIXER to make sure
code is consisted with PSR-1 + PSR-2
This commit is contained in:
1 parent
c9d3448571
commit
35680bbae9
37 files changed
+928
-753
No files matched your search
@@ -15,7 +15,7 @@ class GZIP extends Compression
|
||||
}
|
||||
|
||||
/**
|
||||
* Compress
|
||||
* Compress.
|
||||
*
|
||||
* We use gzencode over gzcompress for better support of the first format among other tools.
|
||||
* (http://stackoverflow.com/a/621987/2299554)
|
||||
@@ -23,6 +23,7 @@ class GZIP extends Compression
|
||||
* @see http://php.net/manual/en/function.gzencode.php
|
||||
*
|
||||
* @param string $data
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function compress(string $data):string
|
||||
@@ -31,13 +32,14 @@ class GZIP extends Compression
|
||||
}
|
||||
|
||||
/**
|
||||
* Decompress
|
||||
* Decompress.
|
||||
*
|
||||
* @param string $data
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function decompress(string $data):string
|
||||
{
|
||||
return gzdecode($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ namespace Storage\Compression;
|
||||
abstract class Compression
|
||||
{
|
||||
/**
|
||||
* Return the name of compression algorithm
|
||||
* Return the name of compression algorithm.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -13,13 +13,15 @@ abstract class Compression
|
||||
|
||||
/**
|
||||
* @param $data
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
abstract public function compress(string $data);
|
||||
|
||||
/**
|
||||
* @param $data
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
abstract public function decompress(string $data);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user