Skip to content

Commit 63205b0

Browse files
committed
CS fixes
1 parent 98ee705 commit 63205b0

16 files changed

+8
-34
lines changed

examples/download.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
$extractor->addFile('http://get.symfony.com/Symfony_Standard_Vendors_2.5.3.tgz');
1111

1212
@mkdir(__DIR__ . '/download');
13-
$extractor->downloadPreferredFileAndExtract(__DIR__ . '/download');
13+
$extractor->downloadPreferredFileAndExtract(__DIR__ . '/download');

examples/format_chooser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111

1212
$preferredFile = $extractor->getPreferredFile();
1313

14-
echo $preferredFile->getPath() . "\n";
14+
echo $preferredFile->getPath() . "\n";

src/Distill/Distill.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class Distill
4747
*/
4848
protected $files;
4949

50-
5150
/**
5251
* Constructor.
5352
* @param ExtractorInterface $extractor
@@ -115,7 +114,6 @@ public function downloadPreferredFile($destination)
115114
return file_put_contents($destination, $response->getBody()) !== false;
116115
}
117116

118-
119117
public function downloadPreferredFileAndExtract($destination)
120118
{
121119
$preferredFile = $this->getPreferredFile();
@@ -140,4 +138,4 @@ public function extract(File $file, $path)
140138
return $this->extractor->extract($file, $path);
141139
}
142140

143-
}
141+
}

src/Distill/Exception/ExtensionNotSupportedException.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ public function __construct($extension, $code = 0, Exception $previous = null)
2222
parent::__construct($message, $code, $previous);
2323
}
2424

25-
26-
}
25+
}

src/Distill/Extractor/Extractor.php

-1
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,4 @@ public function extract(File $file, $path)
7777
return $success;
7878
}
7979

80-
8180
}

src/Distill/File.php

-1
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,4 @@ public function getFormat()
8585
return $this->format;
8686
}
8787

88-
8988
}

src/Distill/Format/FormatGuesserInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface FormatGuesserInterface
1818

1919
/**
2020
* Guesses the file format based on features of the path (e.g. extension)
21-
* @param string $path File path
21+
* @param string $path File path
2222
* @throws ExtensionNotSupportedException
2323
*
2424
* @return FormatInterface File format

src/Distill/Format/Phar.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Distill\Format;
1313

14-
1514
class Phar implements FormatInterface
1615
{
1716

src/Distill/Format/TarBz2.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Distill\Format;
1313

14-
1514
class TarBz2 implements FormatInterface
1615
{
1716

src/Distill/Format/X7z.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Distill\Format;
1313

14-
1514
class X7z implements FormatInterface
1615
{
1716

src/Distill/Format/Z.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Distill\Format;
1313

14-
1514
class Z implements FormatInterface
1615
{
1716

src/Distill/Strategy/MinimumSize.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function getName()
2222
}
2323

2424
/**
25-
* @param File[] $files
25+
* @param File[] $files
2626
* @return mixed
2727
*/
2828
public function getPreferredFile(array $files)

src/Distill/Strategy/StrategyInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface StrategyInterface
1919
public function getName();
2020

2121
/**
22-
* @param File[] $files
22+
* @param File[] $files
2323
* @return mixed
2424
*/
2525
public function getPreferredFile(array $files);

src/Distill/Strategy/UncompressionSpeed.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function getName()
2222
}
2323

2424
/**
25-
* @param File[] $files
25+
* @param File[] $files
2626
* @return mixed
2727
*/
2828
public function getPreferredFile(array $files)

test.php

-14
This file was deleted.

tests/Distill/Tests/Extractor/Adapter/AbstractAdapterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Distill\Tests;
44

5-
use Distill\Extractor\Adapter\ZipAdapter;
65
use Distill\File;
76
use Distill\Format\Zip;
87
use Symfony\Component\Finder\Finder;
@@ -15,7 +14,6 @@ abstract class AbstractAdapterTest extends \PHPUnit_Framework_TestCase
1514

1615
protected $filesPath;
1716

18-
1917
public function setUp()
2018
{
2119
$this->adapter = new Zip();
@@ -52,5 +50,4 @@ protected function getDirectoryHash($directory)
5250
return hash_final($hash);
5351
}
5452

55-
5653
}

0 commit comments

Comments
 (0)