@@ -429,7 +429,7 @@ protected function collectRules()
429429 }
430430
431431 $ this ->_usedRules [] = $ rule ;
432- $ fields = array_shift ($ rule );
432+ $ fields = \ array_shift ($ rule );
433433 $ this ->prepareRule ($ rule );
434434
435435 yield $ fields => $ rule ;
@@ -483,7 +483,7 @@ protected function prepareRule(array &$rule)
483483 */
484484 protected function getByWildcard (string $ path , $ default = null )
485485 {
486- list ($ first , $ last ) = explode ('.* ' , $ path , 2 );
486+ list ($ first , $ last ) = \ explode ('.* ' , $ path , 2 );
487487 $ recently = Helper::getValueOfArray ($ this ->data , $ first , $ default );
488488
489489 // 'goods.*'
@@ -495,7 +495,7 @@ protected function getByWildcard(string $path, $default = null)
495495 return $ default ;
496496 }
497497
498- $ last = trim ($ last , '. ' );
498+ $ last = \ trim ($ last , '. ' );
499499 $ result = [];
500500
501501 foreach ($ recently as $ item ) {
@@ -511,7 +511,7 @@ protected function getByWildcard(string $path, $default = null)
511511 */
512512 protected function hasWildcard (string $ path ): bool
513513 {
514- return strpos ($ path , '.* ' ) > 0 ;
514+ return \ strpos ($ path , '.* ' ) > 0 ;
515515 }
516516
517517 /**
@@ -535,7 +535,7 @@ public function hasRule(): bool
535535 */
536536 public function getRules (): array
537537 {
538- return array_merge ($ this ->rules (), $ this ->_rules );
538+ return \ array_merge ($ this ->rules (), $ this ->_rules );
539539 }
540540
541541 /**
0 commit comments