@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Alchemy\Zippy\Exception\IOException; |
| 16 | 16 | use Alchemy\Zippy\Exception\InvalidArgumentException; |
| 17 | 17 | use Alchemy\Zippy\Resource\ResourceLocator; |
| 18 | -use Alchemy\Zippy\Resource\TargetLocator; |
|
| 19 | 18 | use Symfony\Component\Filesystem\Filesystem; |
| 20 | 19 | use Symfony\Component\Filesystem\Exception\IOException as SfIOException; |
| 21 | 20 | |
@@ -34,8 +34,7 @@ |
||
| 34 | 34 | public function getContentsAsStream() |
| 35 | 35 | { |
| 36 | 36 | $stream = is_resource($this->resource->getOriginal()) ? |
| 37 | - $this->resource->getOriginal() : |
|
| 38 | - @fopen($this->resource->getOriginal(), 'rb'); |
|
| 37 | + $this->resource->getOriginal() : @fopen($this->resource->getOriginal(), 'rb'); |
|
| 39 | 38 | |
| 40 | 39 | return $stream; |
| 41 | 40 | } |
@@ -21,10 +21,10 @@ |
||
| 21 | 21 | { |
| 22 | 22 | $this->client = $client; |
| 23 | 23 | |
| 24 | - if (! $this->client) { |
|
| 24 | + if (!$this->client) { |
|
| 25 | 25 | $this->client = new Client(); |
| 26 | 26 | |
| 27 | - $this->client->getEventDispatcher()->addListener('request.error', function (Event $event) { |
|
| 27 | + $this->client->getEventDispatcher()->addListener('request.error', function(Event $event) { |
|
| 28 | 28 | // override guzzle default behavior of throwing exceptions |
| 29 | 29 | // when 4xx & 5xx responses are encountered |
| 30 | 30 | $event->stopPropagation(); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | public function getContentsAsStream() |
| 52 | 52 | { |
| 53 | - if (! $this->stream) { |
|
| 53 | + if (!$this->stream) { |
|
| 54 | 54 | $this->stream = $this->buildRequest()->send()->getBody(false); |
| 55 | 55 | } |
| 56 | 56 | |