mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
Updated Rector to commit 1d2d51e20ce11d0f603e42bd8869c1ab6d2a52cc
1d2d51e20c
[Nette] Replace deprecated Json::FORCE_ARRAY and Json::PRETTY on Nette\Utils\Json usage (#5814)
This commit is contained in:
parent
9427cdb84c
commit
67791a9582
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
|
@ -1866,12 +1866,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
|
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
|
||||||
"reference": "b07f94616b26cb8e65a404dea6c3c5c816857977"
|
"reference": "2c5c9ef22368595b309e62438883445b78b0077f"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/b07f94616b26cb8e65a404dea6c3c5c816857977",
|
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/2c5c9ef22368595b309e62438883445b78b0077f",
|
||||||
"reference": "b07f94616b26cb8e65a404dea6c3c5c816857977",
|
"reference": "2c5c9ef22368595b309e62438883445b78b0077f",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -1900,7 +1900,7 @@
|
||||||
"tomasvotruba\/class-leak": "^0.2.6",
|
"tomasvotruba\/class-leak": "^0.2.6",
|
||||||
"tracy\/tracy": "^2.10"
|
"tracy\/tracy": "^2.10"
|
||||||
},
|
},
|
||||||
"time": "2024-04-05T18:03:05+00:00",
|
"time": "2024-04-09T20:56:14+00:00",
|
||||||
"default-branch": true,
|
"default-branch": true,
|
||||||
"type": "rector-extension",
|
"type": "rector-extension",
|
||||||
"extra": {
|
"extra": {
|
||||||
|
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
||||||
*/
|
*/
|
||||||
final class GeneratedConfig
|
final class GeneratedConfig
|
||||||
{
|
{
|
||||||
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main b3da143'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 05e44cf'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main a620d41'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main b07f946'));
|
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main b3da143'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 05e44cf'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main a620d41'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 2c5c9ef'));
|
||||||
private function __construct()
|
private function __construct()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,14 +83,15 @@ final class TemplateGuesser
|
||||||
$bundle = $this->resolveBundle($class, $namespace);
|
$bundle = $this->resolveBundle($class, $namespace);
|
||||||
$controller = $this->resolveController($class);
|
$controller = $this->resolveController($class);
|
||||||
$action = Strings::replace($method, self::ACTION_MATCH_REGEX, '');
|
$action = Strings::replace($method, self::ACTION_MATCH_REGEX, '');
|
||||||
|
$action = Strings::replace($action, self::SMALL_LETTER_BIG_LETTER_REGEX, '1_\\2');
|
||||||
$fullPath = '';
|
$fullPath = '';
|
||||||
if ($bundle !== '') {
|
if ($bundle !== '') {
|
||||||
$fullPath .= $bundle . '/';
|
$fullPath .= $bundle . '/';
|
||||||
}
|
}
|
||||||
if ($controller !== '') {
|
if ($controller !== '') {
|
||||||
$fullPath .= $controller . '/';
|
$fullPath .= \strtolower($controller) . '/';
|
||||||
}
|
}
|
||||||
return $fullPath . $action . '.html.twig';
|
return $fullPath . \strtolower($action) . '.html.twig';
|
||||||
}
|
}
|
||||||
private function resolveBundle(string $class, string $namespace) : string
|
private function resolveBundle(string $class, string $namespace) : string
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user