Skip to content

Commit 4221bde

Browse files
minor fix
1 parent 8f531ba commit 4221bde

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Adapter/Vimeo/VimeoServiceAdapter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ private function getVideoIdByPattern($url, $pattern)
214214
$match = array();
215215
preg_match($pattern, $url, $match);
216216
$videoId = $match[2];
217-
if (empty($videoId)) {
218-
$videoId = $match[1];
219-
}
220217

221218
return $videoId;
222219
}
@@ -234,6 +231,7 @@ private function getVideoDataFromServiceApi()
234231
throw new ServiceApiNotAvailable('Vimeo Service Adapter could not reach Vimeo API Service. Check if your server has file_get_contents() function available.');
235232
}
236233
$hash = unserialize($contents);
234+
237235
return reset($hash);
238236
}
239237
}

0 commit comments

Comments
 (0)