refactor src/Symfony/Component/Translation/Loader/MoFileLoader.php
This commit is contained in:
parent
5fff62644f
commit
4aecda3a93
@ -90,18 +90,13 @@ class MoFileLoader extends ArrayLoader implements LoaderInterface
|
|||||||
throw new \InvalidArgumentException("MO stream content has an invalid format.");
|
throw new \InvalidArgumentException("MO stream content has an invalid format.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$header = array(
|
$formatRevision = $this->readLong($stream, $isBigEndian);
|
||||||
'formatRevision' => null,
|
$count = $this->readLong($stream, $isBigEndian);
|
||||||
'count' => null,
|
$offsetId = $this->readLong($stream, $isBigEndian);
|
||||||
'offsetId' => null,
|
$offsetTranslated = $this->readLong($stream, $isBigEndian);
|
||||||
'offsetTranslated' => null,
|
$sizeHashes = $this->readLong($stream, $isBigEndian);
|
||||||
'sizeHashes' => null,
|
$offsetHashes = $this->readLong($stream, $isBigEndian);
|
||||||
'offsetHashes' => null,
|
|
||||||
);
|
|
||||||
foreach ($header as &$value) {
|
|
||||||
$value = $this->readLong($stream, $isBigEndian);
|
|
||||||
}
|
|
||||||
extract($header);
|
|
||||||
$messages = array();
|
$messages = array();
|
||||||
|
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i = 0; $i < $count; $i++) {
|
||||||
|
Reference in New Issue
Block a user