@@ -51,7 +51,7 @@ private function isNotEmpty(string $data): bool
5151 */
5252 private function isUsefulSubpathSegment (string $ segment ): bool
5353 {
54- return false === in_array ($ segment , ['' , '. ' , '.. ' ], true );
54+ return false === \ in_array ($ segment , ['' , '. ' , '.. ' ], true );
5555 }
5656
5757 /**
@@ -62,7 +62,7 @@ private function getNormalizerForNamespace(?string $type): Closure
6262 if (null !== $ type ) {
6363 $ type = strtolower ($ type );
6464 }
65- if (in_array ($ type , ['bitbucket ' , 'deb ' , 'github ' , 'golang ' , 'hex ' , 'rpm ' ], true )) {
65+ if (\ in_array ($ type , ['bitbucket ' , 'deb ' , 'github ' , 'golang ' , 'hex ' , 'rpm ' ], true )) {
6666 return static function (string $ data ): string {
6767 return strtolower ($ data );
6868 };
@@ -92,7 +92,7 @@ private function normalizeNameForType(string $name, ?string $type): string
9292 $ name = str_replace ('_ ' , '- ' , $ name );
9393 }
9494
95- if (in_array ($ type , ['bitbucket ' , 'deb ' , 'github ' , 'golang ' , 'hex ' , 'npm ' , 'pypi ' ], true )) {
95+ if (\ in_array ($ type , ['bitbucket ' , 'deb ' , 'github ' , 'golang ' , 'hex ' , 'npm ' , 'pypi ' ], true )) {
9696 $ name = strtolower ($ name );
9797 }
9898
0 commit comments