Commit 4573786b authored by Jens Jacobsen's avatar Jens Jacobsen
Browse files

Fix usage of class names

parent 1b501ea1
Pipeline #951 passed with stages
in 2 minutes and 27 seconds
......@@ -51,8 +51,8 @@ class Archive
}
// Create zip archive
$createMode = ($overwrite ? ZIPARCHIVE::OVERWRITE : ZIPARCHIVE::CREATE);
$zipArchive = new ZipArchive();
$createMode = ($overwrite ? \ZipArchive::OVERWRITE : \ZipArchive::CREATE);
$zipArchive = new \ZipArchive();
if (empty($zipArchive) || !$zipArchive->open($filename, $createMode)) {
throw new \Exception('Could not open ZIP file to write');
}
......@@ -102,7 +102,7 @@ class Archive
}
// Load zip archive
$zipArchive = new ZipArchive();
$zipArchive = new \ZipArchive();
if (empty($zipArchive) || !$zipArchive->open($filename)) {
throw new \Exception('Could not open zip file to read');
}
......@@ -139,7 +139,7 @@ class Archive
}
// Load zip archive
$zipArchive = new ZipArchive();
$zipArchive = new \ZipArchive();
if (empty($zipArchive) || !$zipArchive->open($filename)) {
throw new \Exception('Could not open zip file to read');
}
......@@ -363,16 +363,16 @@ class Archive
$EM_CONF = NULL;
include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ter_fe2') . 'Resources/Private/Php/PHP-Parser/lib/bootstrap.php');
$parser = new PhpParser\Parser(new PhpParser\Lexer);
$parser = new \PhpParser\Parser(new \PhpParser\Lexer);
try {
$statements = $parser->parse($extEmConfCode);
$traverser = new PhpParser\NodeTraverser;
$prettyPrinter = new PhpParser\PrettyPrinter\Standard;
$traverser = new \PhpParser\NodeTraverser;
$prettyPrinter = new \PhpParser\PrettyPrinter\Standard;
// We will need to resolved names
$traverser->addVisitor(new PhpParser\NodeVisitor\NameResolver);
$traverser->addVisitor(new \PhpParser\NodeVisitor\NameResolver);
// Our own node visitor
$traverser->addVisitor(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\T3o\TerFe2\Visitor\ArrayAssurer'));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment