Skip to content

Commit

Permalink
Fix CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 3, 2017
1 parent 9f4a02f commit d529f23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/MediaEmbed/Data/stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
'website' => 'https://www.facebook.com',
'url-match' => [
'https://www.facebook.com/[0-9a-z-_.]+/videos/([0-9]+)/',
'https://www.facebook.com/[0-9a-zA-Z-_.]+/videos/(?:vb.\d+)/(\d+)/',
'https://www.facebook.com/[0-9a-zA-Z-_.]+/videos/(?:vl.\d+)/(\d+)/'
'https://www.facebook.com/[0-9a-zA-Z-_.]+/videos/(?:vb.\d+)/(\d+)/',
'https://www.facebook.com/[0-9a-zA-Z-_.]+/videos/(?:vl.\d+)/(\d+)/'
],
'embed-src' => '//www.facebook.com/video/embed?video_id=$2',
'embed-width' => '480',
Expand Down
6 changes: 3 additions & 3 deletions src/MediaEmbed/Object/MediaObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ public function stub($property = null, $value = null) {
if ($value === null) {
return isset($this->_stub[$property]) ? $this->_stub[$property] : null;
}
if(!empty($property) && !empty($value)){
$this->_stub[$property] = $value;
}
if (!empty($property) && !empty($value)) {
$this->_stub[$property] = $value;
}
return $this;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/MediaEmbed/MediaEmbedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class MediaEmbedTest extends \PHPUnit_Framework_TestCase {
'http://youtu.be/MKlq4gQKtU0' => 'MKlq4gQKtU0',
'https://www.facebook.com/mega90er/videos/1309058692443747/' => '1309058692443747',
'https://www.facebook.com/diginights.HN/videos/1231155290281511/' => '1231155290281511',
'https://www.facebook.com/SkySports/videos/vb.10911153761/10153310275743762/?type=2&theater' => '10153310275743762',
'https://www.facebook.com/demotivateurFood/videos/vl.184872862011827/1034411179983244/?type=1' => '1034411179983244',
'https://www.facebook.com/SkySports/videos/vb.10911153761/10153310275743762/?type=2&theater' => '10153310275743762',
'https://www.facebook.com/demotivateurFood/videos/vl.184872862011827/1034411179983244/?type=1' => '1034411179983244',
// Not yet possible
//'https://www.youtube.com/playlist?list=PLD1FA4687572EDB23' => 'PLD1FA4687572EDB23',

Expand Down

0 comments on commit d529f23

Please sign in to comment.