@@ -48,20 +48,10 @@ public function accept()
4848
4949 if ($ this ->disallowedFiles === null ) {
5050 $ this ->disallowedFiles = $ this ->getDisallowedFiles ();
51-
52- // BC-layer.
53- if ($ this ->disallowedFiles === null ) {
54- $ this ->disallowedFiles = $ this ->getBlacklist ();
55- }
5651 }
5752
5853 if ($ this ->allowedFiles === null ) {
5954 $ this ->allowedFiles = $ this ->getAllowedFiles ();
60-
61- // BC-layer.
62- if ($ this ->allowedFiles === null ) {
63- $ this ->allowedFiles = $ this ->getWhitelist ();
64- }
6555 }
6656
6757 $ filePath = Common::realpath ($ this ->current ());
@@ -102,55 +92,21 @@ public function getChildren()
10292 /**
10393 * Get a list of file paths to exclude.
10494 *
105- * @deprecated 3.9.0 Implement the `getDisallowedFiles()` method instead.
106- * The `getDisallowedFiles()` method will be made abstract and therefore required
107- * in v4.0 and this method will be removed.
108- * If both methods are implemented, the new `getDisallowedFiles()` method will take precedence.
95+ * @since 3.9.0 Replaces the `getBlacklist()` method, which was removed in PHPCS 4.0.0.
10996 *
11097 * @return array
11198 */
112- abstract protected function getBlacklist ();
99+ abstract protected function getDisallowedFiles ();
113100
114101
115102 /**
116103 * Get a list of file paths to include.
117104 *
118- * @deprecated 3.9.0 Implement the `getAllowedFiles()` method instead.
119- * The `getAllowedFiles()` method will be made abstract and therefore required
120- * in v4.0 and this method will be removed.
121- * If both methods are implemented, the new `getAllowedFiles()` method will take precedence.
105+ * @since 3.9.0 Replaces the `getWhitelist()` method, which was removed in PHPCS 4.0.0.
122106 *
123107 * @return array
124108 */
125- abstract protected function getWhitelist ();
126-
127-
128- /**
129- * Get a list of file paths to exclude.
130- *
131- * @since 3.9.0 Replaces the deprecated `getBlacklist()` method.
132- *
133- * @return array|null
134- */
135- protected function getDisallowedFiles ()
136- {
137- return null ;
138-
139- }//end getDisallowedFiles()
140-
141-
142- /**
143- * Get a list of file paths to include.
144- *
145- * @since 3.9.0 Replaces the deprecated `getWhitelist()` method.
146- *
147- * @return array|null
148- */
149- protected function getAllowedFiles ()
150- {
151- return null ;
152-
153- }//end getAllowedFiles()
109+ abstract protected function getAllowedFiles ();
154110
155111
156112}//end class
0 commit comments