Skip to content

Commit 526f4b3

Browse files
committed
cosmetics
1 parent 1fe7238 commit 526f4b3

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

Tests/Archive7z/Archive7zTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ protected function setUp()
2020
$this->baseDir = dirname(__DIR__);
2121
$this->tmpDir = $this->baseDir . DIRECTORY_SEPARATOR . 'tmp';
2222
$this->fixturesDir = $this->baseDir . DIRECTORY_SEPARATOR . 'fixtures';
23-
$this->mock = $this->getMock('Archive7z\Archive7z', null, array('fake.7z', $this->cliPath));
23+
24+
$this->mock = new Archive7z('fake.7z', $this->cliPath);
2425
}
2526

2627

src/Archive7z/Archive7z.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function getCli()
151151
* @param string $path
152152
*
153153
* @throws Exception
154-
* @return Archive7z
154+
* @return $this
155155
*/
156156
public function setCli($path)
157157
{
@@ -182,7 +182,7 @@ public function getFilename()
182182
* @param string $filename
183183
*
184184
* @throws Exception
185-
* @return Archive7z
185+
* @return $this
186186
*/
187187
public function setFilename($filename)
188188
{
@@ -215,7 +215,7 @@ public function getOutputDirectory()
215215
* @param string $directory
216216
*
217217
* @throws Exception
218-
* @return Archive7z
218+
* @return $this
219219
*/
220220
public function setOutputDirectory($directory = './')
221221
{
@@ -237,7 +237,7 @@ public function setOutputDirectory($directory = './')
237237

238238
/**
239239
* @param bool $changeSystemLocale
240-
* @return Archive7z
240+
* @return $this
241241
*/
242242
public function setChangeSystemLocale($changeSystemLocale)
243243
{
@@ -267,7 +267,7 @@ public function getPassword()
267267
* @param string $password
268268
*
269269
* @throws Exception
270-
* @return Archive7z
270+
* @return $this
271271
*/
272272
public function setPassword($password)
273273
{
@@ -288,7 +288,7 @@ public function getOverwriteMode()
288288
* @param string $mode
289289
*
290290
* @throws Exception
291-
* @return Archive7z
291+
* @return $this
292292
*/
293293
public function setOverwriteMode($mode = Archive7z::OVERWRITE_MODE_A)
294294
{

src/Archive7z/Entry.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ public function getModified()
206206
}
207207

208208
/**
209+
* return size only for first file of solid block
210+
* @see https://github.com/Gemorroj/Archive7z/issues/5
211+
*
209212
* @return string
210213
*/
211214
public function getPackedSize()

0 commit comments

Comments
 (0)