@@ -74,6 +74,18 @@ public static function getNameAsReferencedInClassFromUse(File $phpcsFile, int $u
7474 return NamespaceHelper::getUnqualifiedNameFromFullyQualifiedName ($ name );
7575 }
7676
77+ /**
78+ * @deprecated
79+ * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
80+ * @param \PHP_CodeSniffer\Files\File $phpcsFile
81+ * @param int $openTagPointer
82+ * @return array<int, array<string, \SlevomatCodingStandard\Helpers\UseStatement>>
83+ */
84+ public static function getUseStatements (File $ phpcsFile , int $ openTagPointer ): array
85+ {
86+ return self ::getFileUseStatements ($ phpcsFile );
87+ }
88+
7789 public static function getFullyQualifiedTypeNameFromUse (File $ phpcsFile , int $ usePointer ): string
7890 {
7991 $ tokens = $ phpcsFile ->getTokens ();
@@ -89,17 +101,6 @@ public static function getFullyQualifiedTypeNameFromUse(File $phpcsFile, int $us
89101 return NamespaceHelper::normalizeToCanonicalName ($ name );
90102 }
91103
92- /**
93- * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
94- * @param \PHP_CodeSniffer\Files\File $phpcsFile
95- * @param int $openTagPointer
96- * @return array<int, array<string, \SlevomatCodingStandard\Helpers\UseStatement>>
97- */
98- public static function getUseStatements (File $ phpcsFile , int $ openTagPointer ): array
99- {
100- return self ::getFileUseStatements ($ phpcsFile );
101- }
102-
103104 /**
104105 * @param \PHP_CodeSniffer\Files\File $phpcsFile
105106 * @param int $pointer
0 commit comments