File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function __construct(Adapter $adapter)
2222 }
2323
2424 foreach ($ html ->getElementsByTagName ('meta ' ) as $ meta ) {
25- $ name = trim (strtolower ($ meta ->getAttribute ('name ' )));
25+ $ name = trim (strtolower ($ meta ->getAttribute ('name ' ) ?: $ meta -> getAttribute ( ' property ' ) ));
2626 $ value = $ meta ->getAttribute ('content ' ) ?: $ meta ->getAttribute ('value ' );
2727
2828 if (empty ($ name ) || empty ($ value )) {
@@ -131,14 +131,14 @@ public function getImagesUrls()
131131 */
132132 public function getWidth ()
133133 {
134- return $ this ->bag ->get ('player:width ' );
134+ return ( int ) $ this ->bag ->get ('player:width ' );
135135 }
136136
137137 /**
138138 * {@inheritdoc}
139139 */
140140 public function getHeight ()
141141 {
142- return $ this ->bag ->get ('player:height ' );
142+ return ( int ) $ this ->bag ->get ('player:height ' );
143143 }
144144}
You can’t perform that action at this time.
0 commit comments