mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-10-01 09:04:07 +02:00
phpstan fixes
This commit is contained in:
parent
6fe667eaca
commit
5d37f6813d
10 changed files with 24 additions and 86 deletions
|
|
@ -146,7 +146,7 @@ final class Parser {
|
|||
// A line = explode statement may not fill all array elements
|
||||
// properly. May happen when accessing non Windows Fileservers
|
||||
$words = explode(':', $line, 2);
|
||||
$name = isset($words[0]) ? $words[0] : '';
|
||||
$name = $words[0];
|
||||
$value = isset($words[1]) ? $words[1] : '';
|
||||
$value = trim($value);
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ final class Parser {
|
|||
}
|
||||
return [
|
||||
'mtime' => (int)strtotime($data['write_time']),
|
||||
'mode' => hexdec(substr($data['attributes'], $attributeStart + 1, -1)),
|
||||
'mode' => (int)hexdec(substr($data['attributes'], $attributeStart + 1, -1)),
|
||||
'size' => isset($data['stream']) ? (int)(explode(' ', $data['stream'])[1]) : 0
|
||||
];
|
||||
}
|
||||
|
|
@ -255,7 +255,7 @@ final class Parser {
|
|||
}
|
||||
|
||||
if (substr($mask, 0, 2) === '0x') {
|
||||
$maskInt = hexdec($mask);
|
||||
$maskInt = (int)hexdec($mask);
|
||||
} else {
|
||||
$maskInt = 0;
|
||||
foreach (explode('|', $mask) as $maskString) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue