@@ -111,11 +111,11 @@ |
||
111 | 111 | public function openFile($filename, array $options = []) |
112 | 112 | { |
113 | 113 | if (!file_exists($filename)) { |
114 | - throw new ZipException("File {$filename} does not exist."); |
|
114 | + throw new ZipException("file {$filename} does not exist."); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | if (!($handle = @fopen($filename, 'rb'))) { |
118 | - throw new ZipException("File {$filename} can't open."); |
|
118 | + throw new ZipException("file {$filename} can't open."); |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | return $this->openFromStream($handle, $options); |
@@ -276,7 +276,7 @@ |
||
276 | 276 | \DIRECTORY_SEPARATOR, |
277 | 277 | array_filter( |
278 | 278 | explode('/', (string) $path), |
279 | - static function ($part) { |
|
279 | + static function($part) { |
|
280 | 280 | return $part !== '.' && $part !== '..'; |
281 | 281 | } |
282 | 282 | ) |