update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -60,7 +60,13 @@ public function getSize(): ?int
|
||||
*/
|
||||
private function getSizeFromMetadata(): int
|
||||
{
|
||||
foreach ($this->stream->getMetadata('wrapper_data') as $value) {
|
||||
$metadata = $this->stream->getMetadata('wrapper_data');
|
||||
|
||||
if (is_null($metadata)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
foreach ($metadata as $value) {
|
||||
if (substr($value, 0, 15) == 'Content-Length:') {
|
||||
return (int) substr($value, 16);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user