@@ -27,8 +27,7 @@ |
||
27 | 27 | * THE SOFTWARE. |
28 | 28 | */ |
29 | 29 | |
30 | -class ZipManager implements Countable |
|
31 | -{ |
|
30 | +class ZipManager implements Countable { |
|
32 | 31 | |
33 | 32 | /** |
34 | 33 | * Array of managed zip files |
@@ -60,8 +60,7 @@ |
||
60 | 60 | * |
61 | 61 | * @throws ZipException |
62 | 62 | */ |
63 | - public function __construct(string $zip_file) |
|
64 | - { |
|
63 | + public function __construct(string $zip_file) { |
|
65 | 64 | if (empty($zip_file)) { |
66 | 65 | throw new ZipException(StatusCodes::get(ZipArchive::ER_NOENT)); |
67 | 66 | } |
@@ -23,8 +23,7 @@ |
||
23 | 23 | * THE SOFTWARE. |
24 | 24 | */ |
25 | 25 | |
26 | -trait PathTrait |
|
27 | -{ |
|
26 | +trait PathTrait { |
|
28 | 27 | |
29 | 28 | /** |
30 | 29 | * Current base path |
@@ -23,8 +23,7 @@ |
||
23 | 23 | * THE SOFTWARE. |
24 | 24 | */ |
25 | 25 | |
26 | -trait CommentTrait |
|
27 | -{ |
|
26 | +trait CommentTrait { |
|
28 | 27 | |
29 | 28 | abstract public function getArchive(): ?ZipArchive; |
30 | 29 |
@@ -23,8 +23,7 @@ |
||
23 | 23 | * THE SOFTWARE. |
24 | 24 | */ |
25 | 25 | |
26 | -trait ArchiveTrait |
|
27 | -{ |
|
26 | +trait ArchiveTrait { |
|
28 | 27 | |
29 | 28 | /** |
30 | 29 | * ZipArchive internal pointer |
@@ -22,8 +22,7 @@ |
||
22 | 22 | * THE SOFTWARE. |
23 | 23 | */ |
24 | 24 | |
25 | -trait MaskTrait |
|
26 | -{ |
|
25 | +trait MaskTrait { |
|
27 | 26 | |
28 | 27 | /** |
29 | 28 | * Mask for the extraction folder (if it should be created) |
@@ -23,8 +23,7 @@ |
||
23 | 23 | * THE SOFTWARE. |
24 | 24 | */ |
25 | 25 | |
26 | -trait SkipTrait |
|
27 | -{ |
|
26 | +trait SkipTrait { |
|
28 | 27 | |
29 | 28 | /** |
30 | 29 | * Select files to skip |
@@ -23,8 +23,7 @@ |
||
23 | 23 | * THE SOFTWARE. |
24 | 24 | */ |
25 | 25 | |
26 | -trait PasswordTrait |
|
27 | -{ |
|
26 | +trait PasswordTrait { |
|
28 | 27 | |
29 | 28 | abstract public function getArchive(): ?ZipArchive; |
30 | 29 |
@@ -23,8 +23,7 @@ |
||
23 | 23 | * THE SOFTWARE. |
24 | 24 | */ |
25 | 25 | |
26 | -interface ZipInterface |
|
27 | -{ |
|
26 | +interface ZipInterface { |
|
28 | 27 | |
29 | 28 | public const SKIP_NONE = 'NONE'; |
30 | 29 |