Skip to content

Commit

Permalink
Merge pull request #41 from hevertonfreitas/master
Browse files Browse the repository at this point in the history
Syntax error
  • Loading branch information
szajbus committed Jul 3, 2015
2 parents f3d0751 + 8c444f0 commit a5534ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/Behavior/UploadBehavior.php
Expand Up @@ -102,7 +102,7 @@ private function _reset() {

private function _fetchFromUrl($url) {
$path_chunks = explode('/', $url);
$filename_chunks = explode('.', $url)
$filename_chunks = explode('.', $url);

$data = array('remote' => true);
$data['name'] = end($path_chunks);
Expand All @@ -111,7 +111,7 @@ private function _fetchFromUrl($url) {
$httpSocket = new HttpSocket();
$raw = $httpSocket->get($url);
$response = $httpSocket->response;
$content_types = explode(';', $response['header']['Content-Type'])
$content_types = explode(';', $response['header']['Content-Type']);
$data['size'] = strlen($raw);
$data['type'] = reset($content_types);

Expand Down

0 comments on commit a5534ac

Please sign in to comment.