Skip to content

Commit

Permalink
rector
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 31, 2023
1 parent 5381c00 commit b9dedc0
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/Aop/Aop/FilterArgAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FilterArgAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Aop\\Annotation\\FilterArg'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Aop\Annotation\FilterArg::class])]
#[Before]
public function parse(JoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Aop/Aop/InjectArgAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class InjectArgAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Aop\\Annotation\\InjectArg'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Aop\Annotation\InjectArg::class])]
#[Around]
public function parse(AroundJoinPoint $joinPoint)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Async/Aop/AsyncAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AsyncAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Async\\Annotation\\Async'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Async\Annotation\Async::class])]
#[Around]
public function parseAsync(AroundJoinPoint $joinPoint)
{
Expand All @@ -39,7 +39,7 @@ public function parseAsync(AroundJoinPoint $joinPoint)
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Async\\Annotation\\Defer'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Async\Annotation\Defer::class])]
#[Around]
public function parseDefer(AroundJoinPoint $joinPoint)
{
Expand All @@ -57,7 +57,7 @@ public function parseDefer(AroundJoinPoint $joinPoint)
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Async\\Annotation\\DeferAsync'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Async\Annotation\DeferAsync::class])]
#[Around]
public function parseDeferAsync(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Aop/CacheEvictAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CacheEvictAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Cache\\Annotation\\CacheEvict'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Cache\Annotation\CacheEvict::class])]
#[Around]
public function parseCacheEvict(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Aop/CachePutAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CachePutAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Cache\\Annotation\\CachePut'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Cache\Annotation\CachePut::class])]
#[Around]
public function parseCachePut(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Aop/CacheableAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CacheableAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Cache\\Annotation\\Cacheable'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Cache\Annotation\Cacheable::class])]
#[Around]
public function parseCacheable(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Components/jwt/src/Aop/JWTValidationAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class JWTValidationAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\JWT\\Annotation\\JWTValidation'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\JWT\Annotation\JWTValidation::class])]
#[Around]
public function around(AroundJoinPoint $joinPoint)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#[Bean(recursion: false)]
class MQTTDataParser implements IParser
{
#[Inject(name: 'BinSoul\\Net\\Mqtt\\DefaultPacketFactory')]
#[Inject(name: \BinSoul\Net\Mqtt\DefaultPacketFactory::class)]
protected DefaultPacketFactory $packetFactory;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Components/pgsql/src/Model/Cli/Model/ModelGenerate.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ModelGenerate extends BaseCommand
*/
#[CommandAction(name: 'pgModel')]
#[Argument(name: 'namespace', type: \Imi\Cli\ArgType::STRING, required: true, comments: '生成的Model所在命名空间')]
#[Argument(name: 'baseClass', type: \Imi\Cli\ArgType::STRING, default: 'Imi\\Pgsql\\Model\\PgModel', comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')]
#[Argument(name: 'baseClass', type: \Imi\Cli\ArgType::STRING, default: \Imi\Pgsql\Model\PgModel::class, comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')]
#[Option(name: 'database', type: \Imi\Cli\ArgType::STRING, comments: '数据库名,不传则取连接池默认配置的库名')]
#[Option(name: 'poolName', type: \Imi\Cli\ArgType::STRING, comments: '连接池名称,不传则取默认连接池')]
#[Option(name: 'prefix', type: \Imi\Cli\ArgType::ARRAY, default: [], comments: '传值则去除该表前缀,以半角逗号分隔多个前缀')]
Expand Down
2 changes: 1 addition & 1 deletion src/Components/rate-limit/src/Aspect/RateLimitAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RateLimitAspect
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\RateLimit\\Annotation\\RateLimit'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\RateLimit\Annotation\RateLimit::class])]
#[Around]
public function parse(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Components/rate-limit/src/Aspect/WorkerLimitAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class WorkerLimitAspect
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\RateLimit\\Annotation\\WorkerLimit'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\RateLimit\Annotation\WorkerLimit::class])]
#[Around]
public function parse(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Db/Aop/TransactionAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TransactionAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Db\\Annotation\\Transaction'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Db\Annotation\Transaction::class])]
#[Around]
public function parseTransaction(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/HttpValidate/Aop/AutoValidationAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AutoValidationAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\HttpValidate\\Annotation\\HttpValidation'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\HttpValidate\Annotation\HttpValidation::class])]
#[Before]
public function validateHttp(JoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lock/Aop/LockAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class LockAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Lock\\Annotation\\Lockable'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Lock\Annotation\Lockable::class])]
#[Around]
public function parseLock(AroundJoinPoint $joinPoint)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Cli/Model/ModelGenerate.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ModelGenerate extends BaseCommand
*/
#[CommandAction(name: 'model', description: '模型生成', dynamicOptions: true)]
#[Argument(name: 'namespace', type: \Imi\Cli\ArgType::STRING, required: true, comments: '生成的Model所在命名空间')]
#[Argument(name: 'baseClass', type: \Imi\Cli\ArgType::STRING, default: 'Imi\\Model\\Model', comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')]
#[Argument(name: 'baseClass', type: \Imi\Cli\ArgType::STRING, default: \Imi\Model\Model::class, comments: '生成的Model所继承的基类,默认\\Imi\\Model\\Model,可选')]
#[Option(name: 'database', type: \Imi\Cli\ArgType::STRING, comments: '数据库名,不传则取连接池默认配置的库名')]
#[Option(name: 'poolName', type: \Imi\Cli\ArgType::STRING, comments: '连接池名称,不传则取默认连接池')]
#[Option(name: 'prefix', type: \Imi\Cli\ArgType::ARRAY_EX, default: [], comments: '传值则去除该表前缀,以半角逗号分隔多个前缀')]
Expand Down
2 changes: 1 addition & 1 deletion src/Pool/Aop/PoolCleanAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PoolCleanAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Pool\\Annotation\\PoolClean'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Pool\Annotation\PoolClean::class])]
#[Before]
public function parse(JoinPoint $joinPoint)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Validate/Aop/AutoValidationAop.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AutoValidationAop
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION_CONSTRUCT, allow: ['Imi\\Validate\\Annotation\\AutoValidation'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION_CONSTRUCT, allow: [\Imi\Validate\Annotation\AutoValidation::class])]
#[After]
public function validateConstruct(JoinPoint $joinPoint)
{
Expand Down Expand Up @@ -70,7 +70,7 @@ public function validateConstruct(JoinPoint $joinPoint)
*
* @return mixed
*/
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: ['Imi\\Validate\\Annotation\\AutoValidation'])]
#[PointCut(type: \Imi\Aop\PointCutType::ANNOTATION, allow: [\Imi\Validate\Annotation\AutoValidation::class])]
#[Around]
public function validateMethod(AroundJoinPoint $joinPoint)
{
Expand Down

0 comments on commit b9dedc0

Please sign in to comment.