Updated Rector to commit 226f3f5019fc58cc5aacdcc3625b8b8c6dabdbb8

226f3f5019 [Printer] Clean up nl usage on surplus tag check (#3307)
This commit is contained in:
Tomas Votruba 2023-01-25 23:59:13 +00:00
parent c466aa15a9
commit 599b96e995
5 changed files with 16 additions and 16 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'fe326cb516b16c678b3d31cef2b014fbbd384351';
public const PACKAGE_VERSION = '226f3f5019fc58cc5aacdcc3625b8b8c6dabdbb8';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-01-26 05:12:34';
public const RELEASE_DATE = '2023-01-26 06:53:54';
/**
* @var int
*/

View File

@ -430,17 +430,17 @@ final class BetterStandardPrinter extends Standard implements NodePrinterInterfa
if (!$node instanceof InlineHTML) {
return $content;
}
if (\substr_compare($content, '<?php ' . $this->nl, -\strlen('<?php ' . $this->nl)) === 0) {
$content = \substr($content, 0, -7);
if (\substr_compare($content, "<?php \n", -\strlen("<?php \n")) === 0) {
return \substr($content, 0, -7);
}
if (\substr_compare($content, '<?php ', -\strlen('<?php ')) === 0) {
return \substr($content, 0, -6);
}
return \str_replace('<?php <?php ', '<?php ', $content);
return $content;
}
private function cleanSurplusTag(string $content) : string
{
if (\strncmp($content, '<?php' . $this->nl . $this->nl . '?>', \strlen('<?php' . $this->nl . $this->nl . '?>')) === 0) {
if (\strncmp($content, "<?php\n\n?>", \strlen("<?php\n\n?>")) === 0) {
return \substr($content, 10);
}
return $content;

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit27cb57ca73dfd9924421802c0884235a::getLoader();
return ComposerAutoloaderInit088888ce9686ce0c1c41719c3185c710::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit27cb57ca73dfd9924421802c0884235a
class ComposerAutoloaderInit088888ce9686ce0c1c41719c3185c710
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit27cb57ca73dfd9924421802c0884235a
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit27cb57ca73dfd9924421802c0884235a', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit088888ce9686ce0c1c41719c3185c710', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit27cb57ca73dfd9924421802c0884235a', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit088888ce9686ce0c1c41719c3185c710', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit27cb57ca73dfd9924421802c0884235a::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit088888ce9686ce0c1c41719c3185c710::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit27cb57ca73dfd9924421802c0884235a::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit088888ce9686ce0c1c41719c3185c710::$files;
$requireFile = static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit27cb57ca73dfd9924421802c0884235a
class ComposerStaticInit088888ce9686ce0c1c41719c3185c710
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3075,9 +3075,9 @@ class ComposerStaticInit27cb57ca73dfd9924421802c0884235a
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit27cb57ca73dfd9924421802c0884235a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit27cb57ca73dfd9924421802c0884235a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit27cb57ca73dfd9924421802c0884235a::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit088888ce9686ce0c1c41719c3185c710::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit088888ce9686ce0c1c41719c3185c710::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit088888ce9686ce0c1c41719c3185c710::$classMap;
}, null, ClassLoader::class);
}