mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-22 02:52:23 +00:00
apply rules
This commit is contained in:
parent
cbb50de280
commit
144f8cad12
|
@ -19,7 +19,7 @@ final class SymfonyRouteTagValueNode extends AbstractTagValueNode implements Sho
|
|||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
public $name;
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
|
|
|
@ -14,7 +14,7 @@ final class ImplicitNameResolver
|
|||
*
|
||||
* @var string[]
|
||||
*/
|
||||
public $implicitMap = [
|
||||
private const IMPLICIT_MAP = [
|
||||
'App' => 'Cake\Core\App',
|
||||
'AppController' => 'App\Controller\AppController',
|
||||
'AppHelper' => 'App\View\Helper\AppHelper',
|
||||
|
@ -54,6 +54,6 @@ final class ImplicitNameResolver
|
|||
*/
|
||||
public function resolve(string $shortClass): ?string
|
||||
{
|
||||
return $this->implicitMap[$shortClass] ?? null;
|
||||
return self::IMPLICIT_MAP[$shortClass] ?? null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ final class FunctionToServiceMap
|
|||
/**
|
||||
* @var FunctionToMethodCall[]
|
||||
*/
|
||||
public $functionToMethodCalls = [];
|
||||
private $functionToMethodCalls = [];
|
||||
|
||||
/**
|
||||
* @var ArrayFunctionToMethodCall[]
|
||||
|
|
Loading…
Reference in New Issue
Block a user