@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * Returns an instance of the Archiver |
48 | 48 | * |
49 | - * @return ZipArchive |
|
49 | + * @return string |
|
50 | 50 | */ |
51 | 51 | public function getArchiver() |
52 | 52 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * Sets the archive file name |
80 | 80 | * |
81 | 81 | * @param string $name |
82 | - * @return \mithra62\Compress |
|
82 | + * @return Compress |
|
83 | 83 | */ |
84 | 84 | public function setArchiveName($name) |
85 | 85 | { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * Starts the process of creating an archive |
102 | 102 | * |
103 | 103 | * @param string $name |
104 | - * @return \mithra62\Compress |
|
104 | + * @return Compress |
|
105 | 105 | */ |
106 | 106 | public function create($name) |
107 | 107 | { |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * |
116 | 116 | * @param string $path |
117 | 117 | * @param string $relative |
118 | - * @return \mithra62\Compress |
|
118 | + * @return Compress |
|
119 | 119 | */ |
120 | 120 | public function add($path, $relative) |
121 | 121 | { |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * Sets whether the original file should be removed once compressed |
199 | 199 | * |
200 | 200 | * @param bool $flag |
201 | - * @return \mithra62\Compress |
|
201 | + * @return Compress |
|
202 | 202 | */ |
203 | 203 | public function setKeepOriginal($flag = true) |
204 | 204 | { |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * Returns whether the original file should be kept once compressed |
211 | 211 | * |
212 | - * @return \mithra62\bool |
|
212 | + * @return boolean |
|
213 | 213 | */ |
214 | 214 | public function getKeepOriginal() |
215 | 215 | { |
@@ -148,11 +148,11 @@ discard block |
||
148 | 148 | throw new CompressException('__exception_compress_file_value_empty'); |
149 | 149 | } |
150 | 150 | |
151 | - if (! file_exists($file)) { |
|
151 | + if (!file_exists($file)) { |
|
152 | 152 | throw new CompressException('__exception_compress_file_not_exist'); |
153 | 153 | } |
154 | 154 | |
155 | - if (! is_readable($file)) { |
|
155 | + if (!is_readable($file)) { |
|
156 | 156 | throw new CompressException('__exception_compress_file_not_readable'); |
157 | 157 | } |
158 | 158 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | |
175 | 175 | $zip->close(); |
176 | 176 | |
177 | - if (! $this->getKeepOriginal() && file_exists($file)) { |
|
177 | + if (!$this->getKeepOriginal() && file_exists($file)) { |
|
178 | 178 | unlink($file); |
179 | 179 | } |
180 | 180 |