"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Translation/Extractor/PhpExtractor.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

PhpExtractor.php  (phplist-3.4.5.tgz):PhpExtractor.php  (phplist-3.4.6.tgz)
skipping to change at line 106 skipping to change at line 106
public function setPrefix($prefix) public function setPrefix($prefix)
{ {
$this->prefix = $prefix; $this->prefix = $prefix;
} }
/** /**
* Normalizes a token. * Normalizes a token.
* *
* @param mixed $token * @param mixed $token
* *
* @return string * @return string|null
*/ */
protected function normalizeToken($token) protected function normalizeToken($token)
{ {
if (isset($token[1]) && 'b"' !== $token) { if (isset($token[1]) && 'b"' !== $token) {
return $token[1]; return $token[1];
} }
return $token; return $token;
} }
skipping to change at line 201 skipping to change at line 201
break 2; break 2;
} }
} }
return $message; return $message;
} }
/** /**
* Extracts trans message from PHP tokens. * Extracts trans message from PHP tokens.
* *
* @param array $tokens * @param array $tokens
* @param MessageCatalogue $catalog
*/ */
protected function parseTokens($tokens, MessageCatalogue $catalog) protected function parseTokens($tokens, MessageCatalogue $catalog)
{ {
$tokenIterator = new \ArrayIterator($tokens); $tokenIterator = new \ArrayIterator($tokens);
for ($key = 0; $key < $tokenIterator->count(); ++$key) { for ($key = 0; $key < $tokenIterator->count(); ++$key) {
foreach ($this->sequences as $sequence) { foreach ($this->sequences as $sequence) {
$message = ''; $message = '';
$domain = 'messages'; $domain = 'messages';
$tokenIterator->seek($key); $tokenIterator->seek($key);
skipping to change at line 261 skipping to change at line 260
* @return bool * @return bool
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
*/ */
protected function canBeExtracted($file) protected function canBeExtracted($file)
{ {
return $this->isFile($file) && 'php' === pathinfo($file, PATHINFO_EXTENS ION); return $this->isFile($file) && 'php' === pathinfo($file, PATHINFO_EXTENS ION);
} }
/** /**
* @param string|array $directory * {@inheritdoc}
*
* @return array
*/ */
protected function extractFromDirectory($directory) protected function extractFromDirectory($directory)
{ {
$finder = new Finder(); $finder = new Finder();
return $finder->files()->name('*.php')->in($directory); return $finder->files()->name('*.php')->in($directory);
} }
} }
 End of changes. 3 change blocks. 
6 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)