Skip to content

Commit

Permalink
Updated Rector to commit 00b6703cdc1c7dde6a568b1121fb7ba5c2dc06a7
Browse files Browse the repository at this point in the history
rectorphp/rector-src@00b6703 make the link clickable (#3457)
  • Loading branch information
TomasVotruba committed Mar 5, 2023
1 parent c3c4fb3 commit b1ccc29
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '0.15.20';
public const PACKAGE_VERSION = '00b6703cdc1c7dde6a568b1121fb7ba5c2dc06a7';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-03-04 10:11:40';
public const RELEASE_DATE = '2023-03-05 20:02:36';
/**
* @var int
*/
Expand Down
9 changes: 7 additions & 2 deletions src/Console/Command/SetupCICommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ protected function execute(InputInterface $input, OutputInterface $output) : int
$this->symfonyStyle->note('The "rector.yaml" workflow was added');
$this->symfonyStyle->newLine();
$this->symfonyStyle->title('2 steps more to run you Github Action:');
$this->symfonyStyle->writeln('1) Generate new Github Token here:' . \PHP_EOL . 'https://github.com/settings/tokens/new');
$this->symfonyStyle->writeln('1) Generate new Github Token here:' . \PHP_EOL . $this->createClickableLink('https://github.com/settings/tokens/new'));
$this->symfonyStyle->newLine();
$this->symfonyStyle->writeln('2) Add it to your repository secrets under "GITHUB_TOKE" name:' . \PHP_EOL . \sprintf('https://github.com/%s/settings/secrets/actions/new', $currentRepository));
$repositoryUrl = \sprintf('https://github.com/%s/settings/secrets/actions/new', $currentRepository);
$this->symfonyStyle->writeln('2) Add it to your repository secrets under "GITHUB_TOKE" name:' . \PHP_EOL . $this->createClickableLink($repositoryUrl));
$this->symfonyStyle->newLine();
return Command::SUCCESS;
}
Expand All @@ -91,4 +92,8 @@ private function resolveCurrentRepositoryName(string $currentDirectory) : ?strin
$match = Strings::match($output, self::GITHUB_REPOSITORY_REGEX);
return $match['repository_name'] ?? null;
}
private function createClickableLink(string $url) : string
{
return \sprintf('<href=%s>%s</>', $url, $url);
}
}
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInite5ade87cb10db67b50ce4d9f0db1f410::getLoader();
return ComposerAutoloaderInitae2ccdec9e1c7461e5c0c857085843f0::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInite5ade87cb10db67b50ce4d9f0db1f410
class ComposerAutoloaderInitae2ccdec9e1c7461e5c0c857085843f0
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInite5ade87cb10db67b50ce4d9f0db1f410', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitae2ccdec9e1c7461e5c0c857085843f0', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInite5ade87cb10db67b50ce4d9f0db1f410', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitae2ccdec9e1c7461e5c0c857085843f0', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInite5ade87cb10db67b50ce4d9f0db1f410::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitae2ccdec9e1c7461e5c0c857085843f0::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInite5ade87cb10db67b50ce4d9f0db1f410::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitae2ccdec9e1c7461e5c0c857085843f0::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInite5ade87cb10db67b50ce4d9f0db1f410
class ComposerStaticInitae2ccdec9e1c7461e5c0c857085843f0
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -3133,9 +3133,9 @@ class ComposerStaticInite5ade87cb10db67b50ce4d9f0db1f410
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInite5ade87cb10db67b50ce4d9f0db1f410::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite5ade87cb10db67b50ce4d9f0db1f410::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite5ade87cb10db67b50ce4d9f0db1f410::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitae2ccdec9e1c7461e5c0c857085843f0::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitae2ccdec9e1c7461e5c0c857085843f0::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitae2ccdec9e1c7461e5c0c857085843f0::$classMap;

}, null, ClassLoader::class);
}
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -664,17 +664,17 @@
},
{
"name": "nikic\/php-parser",
"version": "v4.15.3",
"version_normalized": "4.15.3.0",
"version": "v4.15.4",
"version_normalized": "4.15.4.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/nikic\/PHP-Parser.git",
"reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039"
"reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/nikic\/PHP-Parser\/zipball\/570e980a201d8ed0236b0a62ddf2c9cbb2034039",
"reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039",
"url": "https:\/\/api.github.com\/repos\/nikic\/PHP-Parser\/zipball\/6bb5176bc4af8bcb7d926f88718db9b96a2d4290",
"reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290",
"shasum": ""
},
"require": {
Expand All @@ -685,7 +685,7 @@
"ircmaxell\/php-yacc": "^0.0.7",
"phpunit\/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
},
"time": "2023-01-16T22:05:37+00:00",
"time": "2023-03-05T19:49:14+00:00",
"bin": [
"bin\/php-parse"
],
Expand Down Expand Up @@ -734,7 +734,7 @@
],
"support": {
"issues": "https:\/\/github.com\/nikic\/PHP-Parser\/issues",
"source": "https:\/\/github.com\/nikic\/PHP-Parser\/tree\/v4.15.3"
"source": "https:\/\/github.com\/nikic\/PHP-Parser\/tree\/v4.15.4"
},
"install-path": "..\/nikic\/php-parser"
},
Expand Down
Loading

0 comments on commit b1ccc29

Please sign in to comment.