@@ -429,7 +429,7 @@ protected function collectRules()
429
429
}
430
430
431
431
$ this ->_usedRules [] = $ rule ;
432
- $ fields = array_shift ($ rule );
432
+ $ fields = \ array_shift ($ rule );
433
433
$ this ->prepareRule ($ rule );
434
434
435
435
yield $ fields => $ rule ;
@@ -483,7 +483,7 @@ protected function prepareRule(array &$rule)
483
483
*/
484
484
protected function getByWildcard (string $ path , $ default = null )
485
485
{
486
- list ($ first , $ last ) = explode ('.* ' , $ path , 2 );
486
+ list ($ first , $ last ) = \ explode ('.* ' , $ path , 2 );
487
487
$ recently = Helper::getValueOfArray ($ this ->data , $ first , $ default );
488
488
489
489
// 'goods.*'
@@ -495,7 +495,7 @@ protected function getByWildcard(string $path, $default = null)
495
495
return $ default ;
496
496
}
497
497
498
- $ last = trim ($ last , '. ' );
498
+ $ last = \ trim ($ last , '. ' );
499
499
$ result = [];
500
500
501
501
foreach ($ recently as $ item ) {
@@ -511,7 +511,7 @@ protected function getByWildcard(string $path, $default = null)
511
511
*/
512
512
protected function hasWildcard (string $ path ): bool
513
513
{
514
- return strpos ($ path , '.* ' ) > 0 ;
514
+ return \ strpos ($ path , '.* ' ) > 0 ;
515
515
}
516
516
517
517
/**
@@ -535,7 +535,7 @@ public function hasRule(): bool
535
535
*/
536
536
public function getRules (): array
537
537
{
538
- return array_merge ($ this ->rules (), $ this ->_rules );
538
+ return \ array_merge ($ this ->rules (), $ this ->_rules );
539
539
}
540
540
541
541
/**
0 commit comments