Remove useless concat.
parent
a2b3e89d56
commit
2ae0800cd3
|
@ -526,12 +526,19 @@ EOF;
|
||||||
|
|
||||||
protected function getAutoloadFile($vendorPathToTargetDirCode, $suffix)
|
protected function getAutoloadFile($vendorPathToTargetDirCode, $suffix)
|
||||||
{
|
{
|
||||||
|
$lastChar = $vendorPathToTargetDirCode[strlen($vendorPathToTargetDirCode)-1];
|
||||||
|
if ("'" === $lastChar || '"' === $lastChar) {
|
||||||
|
$vendorPathToTargetDirCode = substr($vendorPathToTargetDirCode, 0, -1).'/autoload_real.php'.$lastChar;
|
||||||
|
} else {
|
||||||
|
$vendorPathToTargetDirCode .= " . '/autoload_real.php'";
|
||||||
|
}
|
||||||
|
|
||||||
return <<<AUTOLOAD
|
return <<<AUTOLOAD
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// autoload.php @generated by Composer
|
// autoload.php @generated by Composer
|
||||||
|
|
||||||
require_once $vendorPathToTargetDirCode . '/autoload_real.php';
|
require_once $vendorPathToTargetDirCode;
|
||||||
|
|
||||||
return ComposerAutoloaderInit$suffix::getLoader();
|
return ComposerAutoloaderInit$suffix::getLoader();
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
// autoload.php @generated by Composer
|
// autoload.php @generated by Composer
|
||||||
|
|
||||||
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
return ComposerAutoloaderInitFilesAutoload::getLoader();
|
return ComposerAutoloaderInitFilesAutoload::getLoader();
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
// autoload.php @generated by Composer
|
// autoload.php @generated by Composer
|
||||||
|
|
||||||
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
return ComposerAutoloaderInitFilesAutoloadOrder::getLoader();
|
return ComposerAutoloaderInitFilesAutoloadOrder::getLoader();
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
// autoload.php @generated by Composer
|
// autoload.php @generated by Composer
|
||||||
|
|
||||||
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
return ComposerAutoloaderInitTargetDir::getLoader();
|
return ComposerAutoloaderInitTargetDir::getLoader();
|
||||||
|
|
Loading…
Reference in New Issue