Passed
Branch master (8aad86)
by Eric
03:23
created
src/Compress.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         
Please login to merge, or discard this patch.