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)
22
22
}
23
23
24
24
foreach ($ html ->getElementsByTagName ('meta ' ) as $ meta ) {
25
- $ name = trim (strtolower ($ meta ->getAttribute ('name ' )));
25
+ $ name = trim (strtolower ($ meta ->getAttribute ('name ' ) ?: $ meta -> getAttribute ( ' property ' ) ));
26
26
$ value = $ meta ->getAttribute ('content ' ) ?: $ meta ->getAttribute ('value ' );
27
27
28
28
if (empty ($ name ) || empty ($ value )) {
@@ -131,14 +131,14 @@ public function getImagesUrls()
131
131
*/
132
132
public function getWidth ()
133
133
{
134
- return $ this ->bag ->get ('player:width ' );
134
+ return ( int ) $ this ->bag ->get ('player:width ' );
135
135
}
136
136
137
137
/**
138
138
* {@inheritdoc}
139
139
*/
140
140
public function getHeight ()
141
141
{
142
- return $ this ->bag ->get ('player:height ' );
142
+ return ( int ) $ this ->bag ->get ('player:height ' );
143
143
}
144
144
}
You can’t perform that action at this time.
0 commit comments