remove unneeded variable and use type casting instead of intval

This commit is contained in:
Robin Appelman 2018-03-28 15:36:54 +02:00
commit 7797d463d7
2 changed files with 2 additions and 3 deletions

View file

@ -139,7 +139,7 @@ class Parser {
return [
'mtime' => strtotime($data['write_time']),
'mode' => hexdec(substr($data['attributes'], strpos($data['attributes'], '('), -1)),
'size' => isset($data['stream']) ? intval(explode(' ', $data['stream'])[1]) : 0
'size' => isset($data['stream']) ? (int)(explode(' ', $data['stream'])[1]) : 0
];
}